Hi,i searched the forum for relating topic but i didn't find a solution to my problem so :
I need to run a report from the Sales Order Form ,using a report variable.My question is how can i pass the filters (which are accordin to the selected Sale Order(doc no. and if any other) to the report and to atomaticaly visualize them to the requst form of the report.Remember i need to run the report from report variable.
Thank you in advance .
0
Answers
When you are on a sales order and want to run a report from the sales order form. You want the sales number you are currently on to have that value filled in the report when you access it.
correct?
Basicially it goes like this
http://www.mibuso.com/forum/viewtopic.php?t=27676
http://www.BiloBeauty.com
http://www.autismspeaks.org
no that not solve my problem i need when i run the report the filters (the current record) to be placed in the request form as a filters to the coresponding request fields (automatically) ..[/quote]
RecVariable.setrange(YourField,Yourfield);
report.runmodal(xxx,true,true,RecVariable);
xxx is your report #
for example you would put this code on the command button or menu item that accesses the report.
understand?
http://www.BiloBeauty.com
http://www.autismspeaks.org
205 -> the ID of the Report also possible instead of the id
REport::"The Name of the Report"
Hope you understand it.
Regards
Hope you've understand me .
If you are in C/AL Symbol Menu (F5 in C/AL Editor) you can see al your variables, like MyReport, and the function / Properties of your variables. Sometimes its very usefull tu use the C/AL Symbol menu ;-)
Regards
Please write [solved} infront of the subject in your first post.
Thanks.