Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Adding data to a grid ...
Finance forum
Unanswered

Adding data to a grid datasource with a temp table

Posted on by 141
I have a form with a tab control, which I extend the tabChanged method with the following code:
 
void tabChanged (int fromTab, int toTab)
{
      FormControl tab = any2Object(this) as FormControl; 
      FormRun formRun = tab.formRun(); 
      data = HelperClass::fillTempTable(activeWorker, profileDate,currentProfile.ProfileId);
   
      FormDataSource hoursDatasource = formRun.dataSource(formdatasourcestr(JmgTimecard, HourTotals));
      HourTotals hourTotals = hoursDatasource .cursor().data();
      hoursDatasource .cursor().data().linkPhysicalTableInstance(data);
      hoursDatasource .research();
 
      next tabChanged(fromTab, toTab);
}
 
The fillTempTable returns an HourTotals buffer with 1 record.
I do not receive any compile or runtime errors, yet my grid still remains empty.
Why am I not seeing my data?
 
Categories:

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

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…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,126 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans