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');
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156