Hello,
I added a code like this (on lookup event on control):
DictEnum dictENum;
SysTableLookup lookupTable;
int i;
FormStringControl c;
Query q;
TmpSysTableField tmpSysTableField;
SysDictType sysDictType;
DictRelation dictRelation;
DictField relatedField;
SysFieldGroupLookup sysFieldGroupLookup;
FormRun formRun;
Args args;
str saveTxt;
c = element.control(parameterValue.id());
saveTxt = c.text();
dictENum = new dictENum(enumName2Id('NoYesCombo'));
lookupTable = SysTableLookup::newParameters(tableNum(TmpSysTableField), c);
lookupTable.setLabel("@SYS131692");
lookupTable.addLookupfield(fieldNum(TmpSysTableField, FieldLabel));
if (dictENum)
{
for (i = 0; i < dictENum.values(); i++)
{
tmpSysTableField.FieldLabel = dictENum.value2Label(i);
tmpSysTableField.insert();
}
}
lookupTable.parmTmpBuffer(tmpSysTableField);
lookupTable.performFormLookup();
c.text(saveText + 'bbbb');
}
I want that the control will get the value after the lookup.
1. Even SysTableLookup::newParameters( ... , false) - I thought that the control won't get the value to the control - Anyway the control is getting the value (I need to do same as SysQueryForm does (appending the value, when using range values).
2. Nevertheless, the line: c.text(saveText + 'bbbb'); doesn't change any text on control (text is the same as it was before lookup method, even I remark and didn't call super() on this function.
Thanks :)
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (