Hi,I have a button in a form which does a lookup and the result is used in a @Prompt. Then two (2) fields are given values. This works just fine in Notes. I need to implement this on a form to be accessed through the web. All help and suggestions are welcome.
Thank you all in advance
A. Daftari
Here is the formula I use in the button in Notes:
luType := “Notes”: “NoCache” ;
luDB :=“data/domain”:“nameslu.nsf” ;
luView := “LookupPeople” ;
luCol := 1;
Lookup := @DbColumn(luType ; luDB ; luView ; luCol ) ;
tmpName := @Prompt([OkCancelList];“Select”;“Select escort name” ; NULL ; Lookup) ;
FIELD VisitorEscort := @DbLookup(luType ; luDB ; luView ; tmpName ; 2);
tmpEscortPhone := @DbLookup(luType ; luDB ; luView ; tmpName ; 3) ;
FIELD EscortPhone := tmpEscortPhone ;
@Command([ViewRefreshFields])