web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

SysOperationFramework Default value for dialog

(0) ShareShare
ReportReport
Posted on by 709

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

I have the same question (0)
  • Verified answer
    WillWU Profile Picture
    22,363 on at

    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

  • ShaqAX Profile Picture
    709 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 688

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 524 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 301

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans