Announcements
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?
Yesss, it worked fine.
Thank you Evangelos for your help.
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');
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator