web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

MultiSelect Control

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm trying to use two multiselect control; one for Custaccount , and one other for custGroup.

I'm wondering to disable the second multiselect if i check same lines from the first one.

I have tried to override mofidied method but following code with debugger i have  found that the method didn't be even ritched.

I Have used FormStringBuildControl with FormStringControl,  then i have used only FormStringControl with a simple dialog fields, and the following override statements

//formRun.controlMethodOverload(true);
//formRun.controlMethodOverloadObject(this);

Any Suggestion please?

public Object dialog()
{

    dialog = super();

    dialog.alwaysOnTop(true);
    dialog.windowType(FormWindowType::Standard);
    dialogGrp = dialog.addGroup('Group');


    customerAccountDlg = dialog.addField(extendedTypeStr(CustAccount));
    customergroupDlg   = dialog.addField(extendedTypeStr(CustGroupId)); 


    return dialog;
}



public void dialogPostRun(DialogRunbase _dialog)
{

    FormRun formRun;

    super(_dialog);
    formRun = _dialog.dialogForm().formRun();

//formRun.controlMethodOverload(true);
//formRun.controlMethodOverloadObject(this); if (formRun) { fsCtrlMultiSelectAccount = customerAccountDlg.control(); fsCtrlMultiSelectGroup = customergroupDlg.control(); msCtrlAccount = SysLookupMultiSelectCtrl::constructWithQuery(formRun, fsCtrlMultiSelectAccount, this.buildQuery()); msCtrlGroup = SysLookupMultiSelectCtrl::construct(formRun, fsCtrlMultiSelectGroup, querystr(QueryForGroup)); fsCtrlMultiSelectAccount.registerOverrideMethod(methodStr(FormStringControl,modified), methodStr(ExportLookupV2, Fld1_1_modified), this); fsCtrlMultiSelectGroup.registerOverrideMethod(methodStr(FormStringControl,modified), methodStr(ExportLookupV2, Fld2_1_modified), this); } }

Thanks.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi!

    fsCtrlMultiSelectAccount.registerOverrideMethod(methodStr(FormStringControl,modified), methodStr(ExportLookupV2, Fld1_1_modified), this);

    change

    customerAccountDlg.registerOverrideMethod(methodStr(FormStringControl,modified), methodStr(ExportLookupV2, Fld1_1_modified), this);

    It's work

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Alternatively you may create a custom form lookup and pass in the values to be ignored with Args(), but for handling the return value of the multi-selection there you have to write your own code, i.e. storing it in a set.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans