web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Temporary table as for...
Finance forum

Temporary table as form datasource - Form Extension

(0) ShareShare
ReportReport
Posted on by 200

Hi,

I have added a temp table in form extension. When I fill data through event handler or form extension class, Only a single record (first record alone) is displayed in grid. 

Form init() -In Form extension class 

void init()

{

next init();

TempTable.linkphysicaltableinstance(MyClass::populateData());

}

Please help.

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi,

    please use the "Use rich text formatting" -> "</>" when sharing your code. It makes it easier to read. Like this:

    void init()
    {
        next init();
        TempTable.linkphysicaltableinstance(MyClass::populateData());
    }

    We can't see from your code how many records your MyClass::populateData inserts into the temp table. Maybe it inserts only one?

    Another thing, if your temp table data source has a relation to some other data source on the form, the temp table (just like any other data source) will be filtered based on this relation.

  • RDivya Profile Picture
    200 on at

    Hi,

    I have checked that through debugging. Static method returns more than 1 record.

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    It seems that your data gets into the datasource, otherwise you wouldn't see anything.

    Check if the grid it bound to the right datasource and if the records aren't filtered in some way (possibly by a dynalink or another joined datasource).

  • RDivya Profile Picture
    200 on at

    Yes. It is bound to the right datasource.

Under review

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

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans