Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Issue accessing newly added contract member in RDP class

(0) ShareShare
ReportReport
Posted on by 107

Hi,

I need to add new member attribute in the following contract class

VendProvisionalBalanceContract

I did it as usual. Created a new class and added but the new member cannot be accessible in the rdp class. 

One peculiar this with this VendProvisionalBalanceContract is this is having following,

SysOperationContractProcessingAttribute(classStr(VendProvisionalBalanceUIBuilder), SysOperationDataContractProcessingMode::CreateUIBuilderForRootContractOnly),

pastedimage1678600220078v1.png

how do access my new contract member in the rdp class.

Regards,

Mohamed Riswan K.S

  • huijij Profile Picture
    huijij 19,811 on at
    RE: Issue accessing newly added contract member in RDP class

    Is your report RDP based or query based? if it is RDP based there is no need to specify CreateUIBuilderForRootContractOnly, if the latter one the code is written a little differently, you can refer to the following link.

    www.axpeditesoftware.com/.../

  • Riswan Profile Picture
    Riswan 107 on at
    RE: Issue accessing newly added contract member in RDP class

    Hi Judy,

    Thanks for your reply, Here is my exact issue,

    I applied COC for the contract class VendProvisionalBalanceContract and added a new DataMemberattribute as follows,

       [DataMemberAttribute('TestInt')]

       public int parmTestInt(int _i = i)

       {

           i = _i;

           return i;

       }

    But I cannot able to access this parmTestInt in my COC applied RDP class.

    Note: The same think I did for the sales invoice report and some other reports those are all working fine. My issue within this vendor balance report only.

    My requirement is to add a new parameter and based on that parameter value I need to do a work around in the RDP class.

    Your suggestions are much appreciated.

    Regards,

    Mohamed Riswan K.S

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Issue accessing newly added contract member in RDP class

    Hi Riswan,

    Group and order report parameters in a Data Contract Class helps to specify the grouping and order of parameters for a report.  For more details about how to use the report parameter groups in the RDP class you can check the MS document for reference.

    https://learn.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/how-to-group-and-order-report-parameters-by-using-a-data-contract-class

    learn.microsoft.com/.../how-to-use-a-report-data-provider-class-in-a-report

  • Riswan Profile Picture
    Riswan 107 on at
    RE: Issue accessing newly added contract member in RDP class

    Any suggestion on this ?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans