PDA

View Full Version : Keylookup documentation



avianmanagement
2020-10-28, 12:46
In the docs for keylookup it says

If you use this function in Web/Mobile clients you should always specify the resultExpr for keyLookup() as a string prefixed with ? so that the parameter can be proxied correctly back to the server without throwing a JavaScript error on the client. e.g. "?lastname".

The examples show

/ Javascript Web Client
cLastname = keylookup("southwind!employees","employeeid",Lianja.get("page1.section1.field3").value, "lastname", "'not found'")

There is no ? in the "lastname" resultExpr in the example.

Am I misunderstanding the ? part

David

yvonne.milne
2020-10-29, 06:03
Hi David,

The example is correct.

The '?' prefix was required in an earlier version prior to data mapping being handled by the server automatically. The instructions to use the '?' prefix have now been removed from the doc.

Regards,

Yvonne

avianmanagement
2020-10-29, 08:39
Hi Yvonne,

Thank you

David