User
List Lookup / Drop Down
Step 1:Create a method in the form to get the user
list lookup
void userListLookup(FormStringControl control)
{
Args args;
MenuFunction menuFunction;
Object formRun;
;
args = new
Args();
menuFunction = new
MenuFunction(menuitemdisplaystr(WorkflowUserListLookup),
MenuItemType::Display);
args = new
Args(menuFunction.object());
args.caller(element);
args.parm(control.text());
formRun =
ClassFactory::formRunClassOnClient(args);
formRun.init();
formRun.run();
formRun.wait();
if
(formRun.closedOk())
{
control.text(formRun.parmTo());
element.redraw();
}
}
Step 2: Call the method in the lookup event of the
EDT
public void lookup()
{
element.userListLookup(this);
}
Alternative Method: Just select
WorkflowUserListLookup as formhelp on your EDT