()Hello,
I am not getting the buffer for my refenced dataSource(AD_PSATmpProjProposalTransGrouping) of form in extension for the button "SelectAll"(I am writing the code on its onClicked)
the code I wrote is:-
FormDataSource fds=sender.formRun().dataSource('AD_PSATmpProjProposalTransGrouping');
PSATmpProjProposalTrans localPSATmpProjProposalTrans,PSATmpProjProposalTransGrp ;
fds=sender.dataSourceObject();
PSATmpProjProposalTransGrp=fds.cursor();
while select PSATmpProjProposalTransGrp
{
info("1");
PSATmpProjProposalTransGrp.selectForUpdate(true);
PSATmpProjProposalTransGrp.Selected=NoYes::Yes;
ttsbegin;
PSATmpProjProposalTransGrp.update();
ttscommit;
}
localPSATmpProjProposalTrans.setTmpData(PSATmpProjProposalTransGrp);
FormButtonControl selectAllStd=sender.formRun().design().controlName("SelectAll");
selectAllStd.clicked();
fds.executeQuery();