Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Button in SysOperation Framework

(0) ShareShare
ReportReport
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
    157 on at
    RE: Button in SysOperation Framework

    Yesss, it worked fine.

    Thank you Evangelos for your help.

  • Suggested answer
    EVMA Profile Picture
    42 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 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

Product updates

Dynamics 365 release plans