Hi.
I am trying to Implement a functionality where a user can select multiple records in a grid and perform some operation through a button click.
For example select multiple journals and click Post. The problem I am facing is AX only pass the last selected record to the action menuitem (class) instead of passing selected records one-by-one in a loop.
code on the click event of menuitembutton looks like this.
ProdJournalTable localProdJournalTable;
localProdJournalTable = prodJournalTable_ds.getFirst(true) as ProdJournalTable;
if(localProdJournalTable)
{
while(localProdJournalTable)
{
element.args().record(localProdJournalTable);
super();
localProdJournalTable = prodJournalTable_ds.getNext() as ProdJournalTable;
}
}
*This post is locked for comments
I have the same question (0)