Announcements
No record found.
when this post button is clicked , form table has Enum (Yes No) , by default its no , its value should to yes when button is clicked
Hi Sachin,
You need to write onclciked event handler of the Post button - get the datasource and change that enum field to yes.
Thanks,
Girish S.
can it be achieved without event handler ?
You can write either COC or event handler for the post button clicked method.
Thanks
can you help with clicked method code please
As a fresher in starting we have already provided code for previous threads. Please go ahead and write a code on your own then only you will have some hands on experience.
Every time we won't provide code.
You need to go ahead and started writing code on your own.
i understand this but i had already written but its not working that why i asked
/// /// Form Control Extension Method /// [ExtensionOf(formControlStr(OAE1DistributorWorkerTarget , FormButtonGroupControl1))] final class OAE1DistributorWorkerTragetFormCtrlOAB_Extension { public void clicked() { next clicked(); OAE1DistributorWorkerTarget OAE1DistributorWorkerTarget = this.dataSourceObject().cursor(); OAE1DistributorWorkerTarget.OABPosted == NoYes::Yes; } }
showing this
On line number 14 Its single = to only not double equal to.
why showing error on next , thats the issue
I am not sure with this error. If its take time you can go for onClicked event handler instead of COC.
It seems to be custom control. Then I think calling next is not required. And in the 2nd line = should be given as you are assigning value.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 545 Super User 2026 Season 1
Giorgio Bonacorsi 408
Adis 267 Super User 2026 Season 1