Posts

Showing posts with the label Contract class

Convert contract class object to Json format through x++ in D365 F&O.

Image
 Hi Viewers, We can convert Convert contract class object to Json format through x++ in D365 F&O. By using JsonSerializerExtension class. Ex:  Str jsonString =         JsonSerializerExtension::serializeClass(requestContract);

How to in visible a parameter in contract class in dialog form in x++ in D365F&O Sysoperation framwork

 Hi Viewers, To make parameter not visible in dialog form if it is populating from contract class. use attribute  SysOperationControlVisibilityAttribute. [DataMemberAttribute         ,  SysOperationControlVisibilityAttribute(false) ]     public NoYes parmRevalidate(NoYes _validate = validate)     {         validate = _validate;           return validate;     } Thanks for reading! Like this post if you found it helpful. 😀😀 And let me know your thoughts in the comments below.😇😇

Add contract class in to other contract class in x++ in d365F&O

    List items = new List(Types::Class);     [DataMemberAttribute("Items"),     DataCollection(Types::Class, classStr(<Name of contract class>)),     AifCollectionTypeAttribute('_items', Types::Class, classStr(<Name of contract class>)),     AifCollectionTypeAttribute('return', Types::Class, classStr(<Name of contract class>))]     public List parmitems (List _items = items )     {         items  = _items ;         return items ;     } Thanks for reading! Like this post if you found it helpful. 😀😀 And let me know your thoughts in the comments below.😇😇