My Scenario : In Payment journal form i need to close all line form by clicking button .
or
Same form in blocking tab a field named as Locked by system it should be checked or unchecked.
Solution: I have created one command button in form and add new clicked method, code as shown below.
void clicked()
{
MultiSelectionHelper multiSelectionHelper;ledgerJrnTable = LedgerJournalTable::find(multiLedgerJournalTable.JournalNum, true);
LedgerJournalTable multiLedgerJournalTable;
LedgerJournalTable ledgerJrnTable;
super();
multiSelectionHelper = MultiSelectionHelper::construct();
multiSelectionHelper.parmDatasource(ledgerJournalTable_ds);
multiLedgerJournalTable = multiSelectionHelper.getFirst();
while (multiLedgerJournalTable.RecId != 0 )
{
ttsBegin;if(ledgerJrnTable.SystemBlocked == NoYes::Yes
&& ledgerJrnTable.JournalNum == multiLedgerJournalTable.JournalNum)
{
}ledgerJrnTable.SystemBlocked = NoYes::No;}
ledgerJrnTable.update();
ttsCommit;
}
multiLedgerJournalTable = multiSelectionHelper.getNext();
ledgerJournalTable_ds.research(true);
No comments:
Post a Comment