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 :
Microsoft Dynamics AX (Archived)

How i can show temp table on grid form

(0) ShareShare
ReportReport
Posted on by

I have create new temp table and form.

Temp table was insert from invent table and another table.

When I don't set as Temp table i can insert value and show on grid

but when i set to temp table it not show value.

Please suggest me, Thank you.

Ps. AX 4.0

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    A temp table populated only exists in the scope of it's execution object, like with any other variables. If you move out of scope, then you lose your temp table/variable/buffer.

    The temp table you are trying to display on the grid must be populated in scope (within your form, or passed in through Args() from a caller object), then you need to link the temp table to your form datasource. You could read more about them here:

    www.axaptapedia.com/Temporary_tables

    Here is an article talking about setTmpData for binding it to a datasource:

    http://daxguy.blogspot.hu/2006/12/temporary-tables.html

  • Community Member Profile Picture
    on at

    form>Myform>Datasource>TmpTable>Init

    public void init()

    {

       TmpTable  _TmpTable;

       super();

       TmpTable.setTmpData(TmpTable);

    }

  • Community Member Profile Picture
    on at

    I follow to step but error on

    public void init()

    {

    super();

    TempTable.setTmpData(tmpTableClass::populateTmpData());

    }

    "error:populateRecords is not a class function."

  • Vilmos Kintera Profile Picture
    46,149 on at

    All the answers for your question are in the linked articles, please take your time to read and understand it. If you cannot get it working in your specific case, try to build what is in the example first. Once you get the hang of it, I am sure you will be able to make it happen for your tables as well.

    If you are still unable to get it, I'd advise to turn to a partner or trainer to get some better understanding of how this works and where did you make a mistake.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans