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)

Use of Table.setConnection(this.parmUserConnection())

(0) ShareShare
ReportReport
Posted on by 56

Dear All,

In report when we extended with class "SrsReportDataProviderPreProcessTempDB" then we write 

Table.setConnection(this.parmUserConnection());

Can you please let me know what it's actually does? it's controlled multiple users at a time ? 

Means if 5 users run same report at same time. 

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,147 Most Valuable Professional on at

    No, it has nothing to do with multiple users. You should already know that forms, reports and so on can be used by several users at once and you don't have to write any special code for it.

    This code means that "Table" will be used by another database connection, which has - for instance - its own transaction scope.

  • @rp@n Profile Picture
    56 on at

    sorry, not understand.

    Please give me an example.

    thanks!

    Arpan

  • Verified answer
    Martin Dráb Profile Picture
    239,147 Most Valuable Professional on at

    Example: Independent transaction in AX.

    Note that you can use search engines to find information on internet and cross-references to find examples inside AX codebase.

  • @rp@n Profile Picture
    56 on at

    Thanks Martin,

    I got through link and as i understand suppose in SSRS report i am using Temp table : TmpCrateTable. Data insert TmpCrateTable from CustTrans based on business logic.

    If i used TmpCrateTable.setConnection(this.ParmUserConnection())

    Then it will create a independent database connection for us till report is not finished.

    Meanwhile if anybody do any deletion or modification at table "TmpCrateTable" then it will not cause a problem in SSRS report because we are using table.setConnection().

    Is't correct?

    Please give me more shed on this.

    Thanks!

    Arpan

  • @rp@n Profile Picture
    56 on at

    can you please anyone give me more shed on this.

    thanks!

    Arpan

  • @rp@n Profile Picture
    56 on at

    Dear all,

    Can you please any one verify my answer. Is't correct or not.

    Thanks!

    Arpan

  • @rp@n Profile Picture
    56 on at

    Thanks Sukrut,

    Can you please let me know

    1. What is the advantage of table.setconnetion()?

    2. What I replied in above before your answer . Plz verify is't correct?

    Plz give me more shed on this.

    Thanks!

    Arpan

  • @rp@n Profile Picture
    56 on at

    Thanks Sukrut

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans