Geopt Lackey
Mensagens: 8700
Registado: quinta 09 dez 2010, 13:38
[GSAK] Macro Custom Fields
Existem variáveis para os evocar?
Para além do canivete suíço do geocaching, este espaço serve para discussão de outros aplicativos de gestão de bases de dados
Geopt Lackey
Mensagens: 8700
Registado: quinta 09 dez 2010, 13:38
Geopt Proud Member
Mensagens: 30152
Registado: domingo 25 abr 2010, 01:07
Localização: Lisboa
%custom_xxxxxx - Get the value of a custom field where xxxxx is the custom field name you want to use. This special tag can be used any place other special tags are used and should enable a quick and easy way to include custom information in many areas of GSAK.Without this special tag you would be restricted to using %macro or %mtag to fetch the corresponding information. Note: This special tag also supports the common format %Custom_xxxx=nn where nn is the first nn characters of the value of the custom field fetched.
%caches_xxxxxx - This special tag is very similar to the %custom_xxxxxxx special tag above but applies to the "Caches" table. Hence giving you access to all the database variables (in the "Caches" table) now and in the future. This tag should be used in preference to fetching the same information via the %macro= special tag as it is much faster.
Note: The special tag %des is provided for backwards compatibility only; use %name instead. Earlier versions of GSAK used the term "cache description" to mean "cache name". However, this caused confusion with the actual cache description. GSAK now uses the terms "cache name" and "cache description", consistent with their intended meanings. Therefore, the special tag for the cache name has been changed to the more mnemonic %name. Although %des still expands to the cache name at this time, there is no guarantee that this will always be the case. You are strongly recommended to use %name in all new applications.
Geopt Lackey
Mensagens: 8700
Registado: quinta 09 dez 2010, 13:38
$result = sqlite("sql","update custom set <custom_field_name> = 'some data' where ccode = " + sqlquote($d_code))
Utilizador a ver este Fórum: Nenhum utilizador registado e 1 visitante