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 ;

    }

Comments

Popular posts from this blog

In ax D365F&O post packing slip from shipment through code x++.

Multi select lookup in UI Builder class in D365F&O through x++ code.

Cancel Post packing slip from all Shipments in D365 F&O through X++