filter report with send parameter from form in ax

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Not Verified) This post has 0 verified solutions | 5 Replies | 2 Followers

Male
81 Posts
950 Points
Joined: 2012-7-24
Last Online:
2013-5-22 5:43
Location: iran
jm posted on 2012-9-16 11:54

hello all

i want to filter report ( send query to report)  by sent parameter to criteria from a form like bottom image :

for example when i send  account number 1000 from form to this report , show this in criteria or join in query report

plz help me to do it

thanks

All Replies

Male
15 Posts
110 Points
Joined: 2012-9-5
Last Online:
2013-5-23 17:56
Location: Hyderabad, India
M Kumaran L replied on 2012-9-18 0:37

Hello,

your screen shot is not visible, pleas attached it once more time.

 

Cheers

 

Male
81 Posts
950 Points
Joined: 2012-7-24
Last Online:
2013-5-22 5:43
Location: iran
jm replied on 2012-9-18 5:38

plz in last post image  not sent correctly

Male
81 Posts
950 Points
Joined: 2012-7-24
Last Online:
2013-5-22 5:43
Location: iran
Solution (Not Verified) jm replied on 2012-9-18 5:40
Suggested by sevim k

7 Posts
155 Points
Joined: 2012-9-18
Last Online:
2013-5-23 16:47
Location: İstanbul Türkiye
sevim k replied on 2012-9-19 11:00

Hi ,

You can add the code to your reports fetch method.

I should add the formTableName to the comments lines.

public boolean fetch()

{

boolean ret;

FormTable formTableTmp; // add the formTable

;

if(element.args().record().TableId == tablenum(<FormTableName>)) // add the form table

{

formTableTmp= element.args().record(); //add the form table

this.query().dataSourceNo(1).clearRanges();

this.query().dataSourceNo(1).addRange(fieldnum(CustTable,AccountNum)); //add the report table

this.query().dataSourceNo(1).range(1).value(formTableTmp.AccountNum);

}

ret = super();

return ret;

}

 

Male
15 Posts
110 Points
Joined: 2012-9-5
Last Online:
2013-5-23 17:56
Location: Hyderabad, India
M Kumaran L replied on 2013-4-25 14:11

I have checked the screenshot,  select Query-used  option on the top and then try to select the criteria. I think that will work

Page 1 of 1 (6 items) | Get this RSS feed | Bookmark and Share