Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

how to pass from table to grid

(0) ShareShare
ReportReport
Posted on by 2,016

i create new form with text control and even temp table with DS

i want pass data to grid after them all data from controls 

Capture-_2800_2_2900_.PNG

and it's work only when i Regular table and appear after close and open form data fill to grid 

is there any way to make it on temp table and make shown directly after click button?

*This post is locked for comments

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: how to pass from table to grid

    thanks for replay here my code it's working fine on regulate table only

    but how can i make it work with temp table it's doesn't shown on grid after add

    void clicked()
    {
        int i;
        str testproductname;
    
        real denominator;
    
        denominator=BasePurchasePrice.realValue()/((NumberPartsCMB.selection()+1)/2*NumberPartsCMB.selection());
    
        ttsBegin;
    
        for(i=1;i<=NumberPartsCMB.selection();i+=1)
        {
            testproductname=Identification_Name.valueStr();
            temp.NameProductParts=int2str(i)+'-'+testproductname;
            temp.PurchProductParts=i*denominator;
            temp.SalesProductParts=i*(SalesBasePrice_Price.realValue()/(((NumberPartsCMB.selection()+1)/2)*NumberPartsCMB.selection()));
            temp.QTYProductParts=QTYPartsTXT.value();
    
            temp.insert();
    
        }
        ttsCommit;
    
        super();
      TempProductPartsDS_DS.refresh();
      TempProductPartsDS_DS.research();
    }
  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: how to pass from table to grid

    [View:https://dynamicsaxinsight.wordpress.com/2014/08/20/ax-2012-using-temporary-table-as-forms-datasource/:750:50]

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: how to pass from table to grid

    thanks for replay i want insert those data to temp table and DS then passing them to this grid

  • Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: how to pass from table to grid

    Your request is a bit unclear, please try to explain it in better English. Show your datasources in the form within the AOT, how you initialize that datasource, and how are you trying to bind content against it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,253 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans