Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Buffer of referenced d...
Finance forum

Buffer of referenced dataSource not found on class extension

Posted on by 4
()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();
 
 

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans