Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Buffer of referenced d...
Finance forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,445 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,334 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans