Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / modify or delete multi...
Finance forum

modify or delete multi select field value in the form using keyboard has issue.

(0) ShareShare
ReportReport
Posted on by 288

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:

https://community.dynamics.com/ax/b/dynamics101trainingcenterax/posts/using-multi-select-lookup-control-in-microsoft-dynamics-ax-2012

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.

  • Nastaran Profile Picture
    288 on at
    RE: modify or delete multi select field value in the form using keyboard has issue.

    I still have been looking for a solution. It is appreciated if you share your idea.

  • Nastaran Profile Picture
    288 on at
    RE: modify or delete multi select field value in the form using keyboard has issue.

    No answer? or my question is not clear?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,118 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans