Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

Posted on by Microsoft Employee

There is a strange case

For example : WarehouseID in Contract (parmWarehouseId) returned has value (in return warehouseId). In DP when I use "while select" and compare this warehouseId to the corresponding field (inventTransferTable.InventLocationIdTo == contract.parmWarehouseId), but no data can be selected in AX, but the visual studio can view the data. If I hard code the "contract.parmWarehouseId" as "ABC-WAREHOUSE", it works. So could you advise me what procedure should I take? 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Hi satoyuichi,

        Please mark your post as verified answer if it is the solution, instead of getting more suggestions on this thread.

    Thanks

    Suresh

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Thanks for all your response

    Regarding to the time restriction, I try to re-create another Contract and DP, it works now. Thank you

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Hi,

         when your doing multiple corrections in visual studio,if your adding new fields in Tmp table,report server wont refresh the data-set if you already open the visual studio. So do as kavitha said dataset refresh manually. and clear all the cache, don't forgot to clear report server cache.

    Thanks

    Suresh

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Hi satoyuichi,

         apart from above suggestions, Please check your Report data provider class having  "SRSReportParameterAttribute". If you dont SRSReportParameterAttribute the parameter wont pass in Data provider class. Please try this!

    Thanks

    Suresh

  • Suggested answer
    Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Hi,

    refresh of the datasets in the report and redeploy it.

  • Suggested answer
    Rachit Profile Picture
    Rachit 4,015 User Group Leader on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Make sure you have defined the contract class as the SRSReportParameterAttribute in the DP class declaration.

  • Suggested answer
    Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: Please advise the steps when the Contract has return value, no value can pass into DP of contract.parmWH

    Hi ,

    Please share ur code.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans