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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Lookup field in SSRS Parameter using x++

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I have recently started SSRS report development using x++ after suggestion from some senior AX community members.

I need a lookup parameter which shows the list of Assetid from Assettable so that the report can be filtered.

Below is my contract class code :

1. [DataContractAttribute]
class EA_AssestableContract_UI

{
    AssetId assetId;
}

2. [DataMemberAttribute("AssetId")]
public  AssetId parmAssetId(AssetId _assetId=assetId)
{
assetid=_assetid;
    return assetid ;
}

currently it is showing input assetid number to filter the report :

RDP_2D00_AT_2D00_LOG.JPG

thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ajit Profile Picture
    8,755 on at

    Check if your used EDT has a table relation?

  • Community Member Profile Picture
    on at

    Yes it is related to other tables to bring worker department

  • Suggested answer
    Rohin Profile Picture
    4,624 on at

    I believe "AssetId" uses the relation with Asset table. Might be problem with cache?

    have you clear the Report Caches(AOT Development : Tools > Caches) ?

    have you run CIL ?

  • Community Member Profile Picture
    on at

    I havnt run CIL but does it relates to ssrs parameter lookup ?

  • Suggested answer
    Ajit Profile Picture
    8,755 on at

    It should have relation with Asset table. Try to redploy your report and also restart SSRS service once.

  • Verified answer
    Rohin Profile Picture
    4,624 on at

    Please try what Ajit suggested to you once , if it works then well and good otherwise try what i told to you( clear Report Caches and run Compile +CIL).

  • Community Member Profile Picture
    on at

    You haven't understand my query well sorry for that.

    Actually i need a class query which should show the drop down menu of assetid as a parameter in the SSRS user interface.

    thank you

  • Community Member Profile Picture
    on at

    4024.RDP_2D00_AT_2D00_LOG.JPG

    Instead of above Fixed Asset Number parameter i need a drop drop list of Fixed Asset Number.

    How to get it : D.

  • Rohin Profile Picture
    4,624 on at

    We are suggesting you the solutions for same Maqbool. You want Lookup for Fixed Asset Number (which is AssetId EDT). right??

  • Community Member Profile Picture
    on at

    Yes i want lookup in the report i have not written any query for that in the contract class how it will display ? should i share the enter class codes ?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans