arwo101
November 8, 2011, 11:31am
1
Hello,
I have created the report. Now I want to run it with the button on form “SalesTable”, which retrieves the value of the selected record in the grid ?
For example, when I press the button, it will open a report created by me for the field “SalesId”
How can I do this?
Best Regards
Hi Arek,
In init method of the report, you have to use the code as element.args().record which will retrieve the current record which you have selected…
Also, you can see the standard report fot this…
For example, PurchPurchaseOrder report, see the init method
else, in InventTransferReceive Report, see the initfromcaller method…You will come to know the requirement you want…
Jyothi
November 8, 2011, 4:54pm
4
hi,
Pass the elements.args().record into the Salestable
Hi,
Do you have a simple example of this?
Jyothi
November 9, 2011, 8:37am
6
Hi,
U can check for ‘BankAccountStatement’ form or ‘BankTrans’ standard forms ,in print option u can open the reports…look into that reports.
arwo101
November 9, 2011, 12:08pm
7
Hi
I,m not AX programmer so I’m little confiused in this code. Where shoud I write sentence “element.args().record” and what write i method INIT in report (how to build report to work wit this?)
Regards
Jyothi
November 9, 2011, 12:35pm
8
hi ,
Declare the table in class declaration as SalesTable salestable1;
and
In Init() write salestable1= element.args().record();