Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Button in SysOperation Framework

Posted on by 157

Hello to everyone

I have a sysOperation Framework form. In this form I have added some fileds and now I want to add a button below to the fields.

So I created a UIBuilder class and I added the code below. 


 public void build()
    {
        super();

        dlg  = dialog as Dialog;
        FormBuildButtonControl button;
   
        button = dlg.formBuildDesign().addControl(FormControlType::Button, "@SYS25740");
        button.registerOverrideMethod(methodStr(FormButtonControl, clicked), methodStr(MyUIBuilder, printSettingsClicked), this);
        button.text("@SYS25740");
        
    }

And of course I created a method that runs this button.

The problem is that this button is displayed next to OK and Cancel buttons of the sysOperationFramework  and not next to the fields that i have added. 

does anyone know which is the problem?

  • SGbron Profile Picture
    SGbron 157 on at
    RE: Button in SysOperation Framework

    Yesss, it worked fine.

    Thank you Evangelos for your help.

  • Suggested answer
    EVMA Profile Picture
    EVMA 40 on at
    RE: Button in SysOperation Framework

    Hello Christos,

    you need to create a Group dialog on your contract class. After that the button should be added on that dialog.

    Example:

    [
    
        DataContract,
        SysOperationContractProcessing(classStr(AASMenuItemDemoUIBuilder)),
        SysOperationGroup('TestGrp', 'Test', '1')
    
    ]
    
    class YourContract
    
    {
    
    ...
    
    }

    Then your button should be added like that:

    button = this.dialog().formBuildDesign().control('TestGrp');

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans