Announcements
No record found.
Hello all,
When using SusOperationFramework, How we usually put some default value in the Dialogfield ? If forexample I create DialofField for a Sales Order Status, Cost center and a Date.
The DialogField Sales Order Status I want to get from a Parameter table (for eample : CustParameters), Dialog Field Cost Center also will have default value from CustParameters table (while also has its Cost center lookup) and DialogField Date want to set as of Todays Date.
Please help to advice.
Thanks,
Shaq
Hi ShaqAX,
If you include the SysOperationInitializable class in a data contract using the implements command, the method initialize() gets available and can be overwritten, this method can be used to initialize variables within the data contract.
[DataContractAttribute] public class DataContract implements SysOperationInitializable { public void initialize() { } }
And if you want the initalize() to always be called, you must extend the DataContract with the attribute SysOperationAlwaysInitializeAttribute.
[DataContractAttribute, SysOperationAlwaysInitializeAttribute] public class DataContract implements SysOperationInitializable { public void initialize() { } }
See the blog:
www.anegis.com/.../initialisation-and-validation-of-data-contract-in-ax-2012
Hi Will,
Resolved. Thanks very much.
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!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 688
André Arnaud de Cal... 524 Super User 2026 Season 1
CP04-islander 301