Announcements
No record found.
Is it possible to use an extension in BudgetCreateTransfer form control?I tried the event handler but it didn't go through my event handler code.My goal is to write my custom code before element.close();
Thanks in advance!
Hi Jerrold,
Do you want to put your code between Box::Info and element.close?
You can try to use extensions for form controls (docs.microsoft.com/.../method-wrapping-coc and put your code before next statement.
How can I access BudgetTransactionHeader.RecId in my extension?
In CoC you can access any public and protected members of the augmented class (in this case form). You access them by referring to their name.
So, type BudgetTransactionHeader.RecId to access that field.
However there's some glitch and you might need to assign the table buffer to a local variable first.
Something like
BudgetTransactionHeader budgetTransActionHeaderLocal = budgetTransactionHeader; // now you can access it via budgetTransActionHeaderLocal .RecId
[ExtensionOf(formControlStr(BudgetCreateTransfer, RequestBudgetButton))] final class BudgetCreateTransfer_Extension { public void clicked() { next clicked(); BudgetTransactionHeader budgetTransActionHeaderLocal = budgetTransactionHeader; Info(strFmt("%1", budgetTransactionHeader.RecId)); }
The qualifier 'budgetTransactionHeader' is not valid in this context. Use a variable of this type instead.
Try element.budgetTransactionHeader.RecId.
Try budgetTransactionHeaderLocal.RecId as I instructed :)
Thanks for this but the element.budgetTransactionHeader.RecId worked on my case.
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.
Giorgio Bonacorsi 659
André Arnaud de Cal... 465 Super User 2026 Season 1
Syed Haris Shah 304 Super User 2026 Season 1