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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Shall we use Temp Table (In Memory and Temp DB) both in Form datasource?

(0) ShareShare
ReportReport
Posted on by 30

Dear All,

Can you please let me know in form datasource shall we use Temp Table both (InMemory and TempDB)?

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    238,322 Most Valuable Professional on at

    Yes, both can be used as form data sources.

  • Karthickks Profile Picture
    100 on at

    Hi @rp@n,

    What is the answer to this? 

    can we use in-memory table as a form DataSource or TempDB as a form DataSource? 

  • @rp@n Profile Picture
    30 on at

    Thanks Martin

  • Martin Dráb Profile Picture
    238,322 Most Valuable Professional on at

    For InMemory tables.

    These things are explained on quite a few places, such as in Temporary Tables (AX 2012) on the Microsoft Dynamics AX Support blog. You can use search engines to find that by yourself.

  • @rp@n Profile Picture
    30 on at

    Thanks Martin,

    So, when to use setTmpData() ?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Verified answer
    Martin Dráb Profile Picture
    238,322 Most Valuable Professional on at

    No, you must use linkPhysicalTableInstance() for TempDB tables instead of setTmpData().

    Use cross-references in AX or put the method name to a search engine if you want to see some examples.

  • @rp@n Profile Picture
    30 on at

    Thanks Vilmos,

    Ohh...

    So, if required temp table then TempDB is Preferable right ?

    And to get data from InMemory or TempDB , we need to use

    TempTable.setTmpData(element.PopulateRecords())

    Please give me more shed on this.

    Thanks!

    Arpan

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You can use it, but to populate values it takes additional computational time compared to just binding it to an actual table with a database fetch.

    Be aware that AX is not too great with passing inmemory temporary record buffers between server- and client-tier when you are about to bind the values to the datasource, I have seen odd behaviour when doing that some time ago.

  • Suggested answer
    Martin Dráb Profile Picture
    238,322 Most Valuable Professional on at

    You can use temporary tables as form datasources if needed.

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

News and Announcements

Season of Giving Solutions is Here!

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
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Volodya Profile Picture

Volodya 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/globalsearch/?q=techyvcom++Face" - Nested quantifier +.