Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Friday, June 5, 2015

How to pass one contract parameters in to another contract class in AX

Hi,

1. Create the contract as normal you designed with reference to your param list.
2. Add below method.

[
DataMemberAttribute
]
public InventDimViewContract parmNestedContract(InventDimViewContract _nestedContract = InventDimViewContract)
{
    InventDimViewContract = _nestedContract;
    return InventDimViewContract;
}

Here this methods inherits the another contract class called InventDimContract.

3. Dont forgot to declare in class declaration method as

InventDimViewContract              InventDimViewContract ;

Thanks,

No comments:

Post a Comment

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...