DBLookup and @Prompt in a web form

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])

Subject: DBLookup and @Prompt in a web form

There is no equivalent to OKCancelList on the web; you will need to create a web action that either uses a field on the document to select the value, or raises a new window with a new field to select the value and uses JavaScript to write the value to the existing window.