1.
void clicked()
{
common common;
salesTable salesTableRef;
;
// using DataSource cursor() methos will get the cursor selected record
common = element.dataSource().cursor();
switch (common.TableId)
{
case tableNum(salesTable) :
{
salesTableRef = common;
info(salesTableRef.SalesId);
break;
}
}
super();
}
----------
2.
In Datasource->Active()
We can get using the DataSource name like
info(SalesTable.SalesId)
----------
3.
We can use that DataSource Name like SalesTable//this will get the selected record
info(SalesTable.SalesId)
This blog is for Dynamics AX (AXAPTA) Developers,this will help you for your development issues. This site contains some Microsoft Dynamics AX X++ Codes for use in your day to day use.
08 November 2010
Subscribe to:
Post Comments (Atom)
Customer inbound custom service in D365 F&O with X++
[DataContractAttribute] class GOD_CustomerCreateContract { str accountNum; // Optional; if blank, a number sequenc...
-
static void createForm(Args _args) { Args args; Form form; FormRun formRun; FormBuildDesign formBuildDesign; FormB...
-
Please click here to access Custom Workflow step by step process:
-
1. In classDeclaration extend SrsReportDataProviderPreProcess instead of SrsReportDataProviderBase 2. Temp table properties should b...
Thanks a Lot man
ReplyDeletehow to get multiple selected records in grid?
ReplyDelete