Announcements
I have a form which contains a drop-down of the Enum values. User wants to select multiple value from this drop down. I have solved this requirement by using SysLookupMultiSelectCtrl class according to this tutorial:
https://robscode.onl/x-syslookupmultiselectctrl-with-temporary-table/
And also for an other form which lookup values are filled from table we use this tutorial:
The issue we have faced is that modification in the multi-select lookup field control (using keyboard, for example when user deletes one value or delete whole value of the field ) does not affect on the look up selection . Actually "select" button in the lookup button applies the modification which does not seems user friendly UI.
On the other hand we have used SysLookupMultiSelectGrid class to define multi-select lookup in the UI builder of the SSRS report. However we does not face the issue I have explained above. I mean user does not necessarily click on "select" button lookup form to apply his modification ( which is inputted by keyboard)
For solving this issue I have tried different way as well. I override the Lookup method of the form control string field and in the look up method I insert my code:
[Control("String")]
class IRStatus
{
/// <summary>
///
/// </summary>
public void lookup()
{
container c;
Query qrIRLookup;
QueryRun qrRunIRLookup
tempEnumTable IRtmp;
element.fillEnumToTmp(IRtmp, fieldStr(tempEnumTable, IRStatus), identifierStr(MyEnum);
qrIRLookup = new Query();
qrIRLookup.addDataSource(tableNum(tempEnumTable)).addSelectionField(fieldNum(tempEnumTable, IRStatus));
qrRunIRLookup = new QueryRun(qrIRLookup);
qrRunIRLookup.setCursor(IRtmp);
SysLookupMultiSelectCtrl::constructWithQueryRun(element,IRStatus,qrIRLookup,false,c);
}}
But user again cannot edit the control value by keyboard. I have also used SysLookupMultiSelectGrid instead of SysLookupMultiSelectCtrl in the above code. How can I enable user to change the value of the form string field value which is the multi select lookup and these modification affect on the lookup selection values.
I still have been looking for a solution. It is appreciated if you share your idea.
No answer? or my question is not clear?
André Arnaud de Cal...
294,118
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator