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)

Dialog - MultiSelect Cascading Parameters

(0) ShareShare
ReportReport
Posted on by

Hi,

class DialogTst extends RunBaseBatch

{

DialogGroup dfg;
SysLookupMultiSelectCtrl sysms;
FormBuildStringControl fbsc;
FormBuildControl fbc;

}

protected Object dialog()

{
Dialog dialog;
dialog = super();
dfg = dialog.addGroup("Custom Lookup");
fbc = dialog.formBuildDesign().control(dfg.name());
fbsc = fbc.addControl(FormControlType::String, "User id");
fbsc.label("User id");
return dialog;
}

public void dialogPostRun(DialogRunbase dialog)
{
FormRun fr;
super(dialog);

fr = dialog.dialogForm().formRun();
if (fr)
{
sysms = SysLookupMultiSelectCtrl::construct(fr, Fr.design().control(fbsc.id()), queryStr(CustTable));
}
}

How can i call modified or text change method of FormBuildStringControl , i already tried to use registerOverrideMethod and i am getting the error as "Register Override Method was called twice".

I need to multi select in dialog form , hence i've used FormBuildStringControl , if there are any other alternative to this would also be helpful.

Thanks

*This post is locked for comments

I have the same question (0)
  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi De Bugger,

    Please refer to Tutorial_LookUpMultiSelectDialog for more detailed example.

        public class DialogTst extends RunBase

        {
            DialogRunbase dialog;
            DialogGroup dialogGrp;
            SysLookupMultiSelectCtrl sysms;
            FormBuildStringControl fbsc;
            FormStringControl fsc;  
        }
        
        
        public Object dialog()
        {
            FormBuildControl fbc;
            dialog = super();
    
            dialog.alwaysOnTop(true);
            dialog.windowType(FormWindowType::Standard);
            dialogGrp = dialog.addGroup("Custom Lookup");
    
            fbc = dialog.formBuildDesign().control(dialogGrp.formBuildGroup().id());
            fbsc = fbc.addControl(FormControlType::String, identifierstr(roleID));
            
            dialog.allowUpdateOnSelectCtrl(true);
            this.dialogSelect();
    
            return dialog;
    
        }
       
    
       public void dialogPostRun(DialogRunbase _dialog)
        {
            FormRun formRun;
            super(dialog);
            formRun = _dialog.dialogForm().formRun();
    
            if (formRun)
            {
                fsc = formRun.design().control(fbsc.id());
                sysms = SysLookupMultiSelectCtrl::construct(formRun, fsc, querystr(CustTableLookUp));
            }
        }


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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans