标签:
第一步,在类:syslookup中新建方法
public static client void lookupList(FormStringControl _formStringControl, List _valueList, str _columnLabel = ‘‘) { Args args; FormRun formRun; ; if (_formStringControl && _valueList && _valueList.typeId() == Types::String) { args = new Args(formstr(ScanWorkX_Lookup)); args.parmObject(_valueList); args.parm(_columnLabel); formRun = classFactory.formRunClass(args); _formStringControl.performFormLookup(formRun); } }
第二步
public void lookup() { List valueList = new List(Types::String); ; ...build your valueList here... MyClass::lookupList(this, valueList, "List Title"); super(); }
标签:
原文地址:http://www.cnblogs.com/Tokywu/p/4561234.html