Announcements
Hi,
i have a class called from a button on a form. It takes the current record from Args object.
The class has a dialog method with two fields. I need to set their values with the values of the current record taken from Args.
How do i avoid the packed values and give it the current values each time? I havent find examples around..
thank you in advance
You can control when unpack (of af RunBase) class is called by calling the getLast method.
So, if you call this method before applying new parameters to your class, you are able to override the packed values. That would be Best Practice.
Yes, but somehow it didnt work right.
I've managed to set that value by overriding the unpack method and by retrieving the values from the PackedClass container.
Don't know if it's best practice to do this but worked out.
Have you tried to set the value in dialog field using dialogField.value() method?
Thanks,
Baber
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... 290,186 Super User 2024 Season 2
Martin Dráb 227,996 Super User 2024 Season 2
nmaenpaa 101,148