web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi ,

    Please share ur code.

  • Suggested answer
    Rachit Profile Picture
    4,015 User Group Leader on at

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

  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

    refresh of the datasets in the report and redeploy it.

  • Suggested answer
    Community Member Profile Picture
    on at

    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
    Community Member Profile Picture
    on at

    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

  • Verified answer
    Community Member Profile Picture
    on at

    Thanks for all your response

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

  • Community Member Profile Picture
    on at

    Hi satoyuichi,

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

    Thanks

    Suresh

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Volodya Profile Picture

Volodya 2

#2
tgudwanski Profile Picture

tgudwanski 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans