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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Retrieve data from a table buffer who has already selected

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I created a temporary table and i used it as a form datasource. This is filled when opening the form by the init's method of the datasource.

From this form I've to open another form by clicking on a menu item button and I have to init this with some calculation based on the previous datasource.

Since my first datasource is already selected and the buffer is valued, I have not to select it again.

So, how can I retrieve data from the first datasource to fill the second one?

Thanks

*This post is locked for comments

I have the same question (0)
  • Mohammad Raziq Ali Profile Picture
    2,488 on at

    Hi marco,

    Args is the best option to go with.....

    Please follow this below link.

    mfmujahidmim.wordpress.com/.../

    If this post helps, please verify this solution.

    Thanks,

    Raziq

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    You should declare another buffer of the same temporary table and set it with buffer2.setTmpData(buffer1), where buffer1 is the buffer you would be getting from the first form. There are multiple ways of sending the buffer, one is passing it in the args.record.

  • André Arnaud de Calavon Profile Picture
    303,365 Super User 2026 Season 1 on at

    Hi Marco,

    The link provided by Raziq should help you. If the second form will be opened with a menu item button instead of a button (like described in the shared blog) , you can fill the DataSource property on the menu item button on the first form to specify the records passed with the Args automatically. On the second forn the coding to retrieve the record is then the same,

  • Community Member Profile Picture
    on at

    What Iulian said should work, but in AX 2012 you have to use the linkPhysicalTableInstance() method instead of setTmpData() if the table is an actual tmp table.

    www.axaptapedia.com/Temporary_tables

  • Iulian Cordobin Profile Picture
    8,201 on at

    Yes, depending on the type of tempDb:

    To create

    a new instance link (populating data/copying reference) from one table instance

    variable to the other with Temporary type tables:

       For InMemory

            tables, by using the setTmpData() method

       For TempDB

            tables, the linkPhysicalTableInstance() method

            replaces the setTmpData() call.

  • Community Member Profile Picture
    on at

    Thanks everyone, I solved the problem by using Args.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans