RE: Passing record from FormA to ProdParmReportFinished form using MenuItemButton
Hi joni,
Like martin said in the above post we can get the particular record using the args.record() in main method of the class "ProdParmReportFinished".
What you want to do with the data which you receive from class??
For Example I am just wrote the code get the Sales Table information and display the sales id which is chosen in the Sales form in infolog.
First create a class with the below class declaration and new method called main
Class : Sales Action
The class declaration will be,
class declaration :
Public class SalesAction
{
}
Add main method ,
Main :
static client void main(Args args)
{
Common record;
SalesTable salesTable;// Your Table
record = args.record();
if (record is SalesTable)
{
salesTable = record as SalesTable;
info(strFmt("%1",salesTable.SalesId));
}
}
Then i craete a new action menu item and set the property
Object Type : Class
Object : SalesAction(Your Class Name)
and then Add the menu item button in the SalesOrder(Add it in Your Form).
Now i click the menu item in the form it will return the current record sales id in the infolog.
Action Button in Sales Form:
Output :
It just an example and instead of sales table you can change your table and form and do operation which you want with the record. or if you have any queries please let me know.
Please verify if these details helps you..
Thanks,
Malleswaran