Let's look at this example:


Ex: Imagine a dynamic lookup "edLkpCLIENTES"


[[

NOME codicli ||

]]


By default, when selecting a record searched with a dynamic lookup, the reference field (NAME for example) will be displayed in the "DBEDIT" that originated the search.


Imagine that we are displaying "secondary fields" in the search of this lookup. To display secondary fields you can use the "lkpfilter-searchfield:" attribute or use the function below within the click event of this lookup:


dm_rc.rc_LookUpSearchFilter( Sender, '', '', 'fone1;email;' );


In the example above, in addition to displaying "NAME" in the search, "phone1" and "email" will also be displayed.


Displaying a Secondary Field


You can display one of the secondary fields in place of the primary field, which in this example would be "NAME", using the "getsearchfield" attribute.


Ex: 

[[

NOME codicli ||

getsearchfield:email

]]


When selecting a record during this lookup search, the "email" will be displayed instead of the "NAME".

Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator