Axapta X++ code to browse lines in a form in Microsoft Dynamics AX.
The function updates field value of all lines of the LedgerJournalTrans form (the field is a new created field):
Also, the function returns the initial position or line in the form.
void clicked()
{
int pos;
;
super();
pos=LedgerJournalTrans_DS.getPosition();
LedgerJournalTrans_DS.research();
LedgerJournalTrans.DAS_Transfer=NoYes::Yes;
LedgerJournalTrans.update();
while(LedgerJournalTrans_DS.queryRun().next())
{
LedgerJournalTrans.DAS_Transfer=NoYes::Yes;
LedgerJournalTrans.update();
}
LedgerJournalTrans_DS.research();
LedgerJournalTrans_DS.setPosition(pos);
}
The function updates field value of all lines of the LedgerJournalTrans form (the field is a new created field):
Also, the function returns the initial position or line in the form.
void clicked()
{
int pos;
;
super();
pos=LedgerJournalTrans_DS.getPosition();
LedgerJournalTrans_DS.research();
LedgerJournalTrans.DAS_Transfer=NoYes::Yes;
LedgerJournalTrans.update();
while(LedgerJournalTrans_DS.queryRun().next())
{
LedgerJournalTrans.DAS_Transfer=NoYes::Yes;
LedgerJournalTrans.update();
}
LedgerJournalTrans_DS.research();
LedgerJournalTrans_DS.setPosition(pos);
}
No comments:
Post a Comment