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)

Using insert_recordset

(0) ShareShare
ReportReport
Posted on by

Hi all

i built my SSRS Report RDP based , then when i run my report it took too much time to retrieve data from from Tmp table to Visual Studio

someone advised me to use key word insert_recordset in process report method to improve my performance 

i already did that but there is some limitation i need to ask 

1- if i need to group by my record with itemId field as Child Group , and making group by SalesBuyerGroup as Parent Group  .. how can i do that using insert_recordset

2- does it allow to inset display methods using insert_recordset   ?

thank you

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Insert_5F00_recordset.png

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    When you say display method, probably you might be referring to display methods on table. You can make use of recordInsertList instead of insertRecordSet and also you can perform required groupings & insert the data.

    Refer following links to check the implementation:

    (Insert records in a table using RecordInsertList)
    msdax.wordpress.com/.../recordinsertlist

    (Ax 2012 – RecordInsertList – Performance series (Part 1))
    blogs.msdn.microsoft.com/.../ax-2012-recordinsertlist-performance-series-part-1

    (RecordInsertList Class [AX 2012])
    msdn.microsoft.com/.../recordinsertlist.aspx

  • Community Member Profile Picture
    on at

    Thanks Chaitanya

    could you skip my second Question .. and let me know how to use insert_recordset  and how to apply grouping (parent group, child group)  : )

  • Suggested answer
    Ali Zaidi Profile Picture
    4,657 on at

    Hi, m.wafa, I shared the code snippet for insert_recordset with group. I think you miss the forceplaceholders keyword before

    insert_recordset _OpeningBalance (ItemId, InventDimId,BeginDate, EndDate,OpeningQty)

          select forceplaceholders ItemId,InventDimId , _FromDate , _ToDate from _OrignBalance

      // group by ItemId,InventDimId

       where

       _OrignBalance.BeginDate ==_FromDate

       && _OrignBalance.EndDate ==_ToDate

        join sum(Qty)from inventTrans

        group by ItemId,InventDimId

       where _OrignBalance.InventDimId == inventTrans.inventDimId && _OrignBalance.ItemId == inventTrans.ItemId

       && inventTrans.DatePhysical <= _FromDate - 1

                              // && inventTrans.DatePhysical >= _NullDate

    && ((inventTrans.StatusReceipt == StatusReceipt::Received || inventTrans.StatusReceipt == StatusReceipt::Purchased)||( inventTrans.StatusIssue ==  StatusIssue::Deducted || inventTrans.StatusIssue == StatusIssue::Sold ));

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