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)

i need to take multiple records(row) from FORM and then want to insert into table .

(0) ShareShare
ReportReport
Posted on by 3,945

hey guys i am just doing  a small project in dynamics AX 2012 as i am beginner  and new to AX.

In sells form i want to take multiple record at a time and then want to save these data into my sellsTable(table name) and each record consists of these fields that is sellsid, itemid, itemname, itemquantity, itemunitprice, totalcost, date.

so suggest me how should i procceed.   


 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    i guess its same question and answer as here

  • Gautam Profile Picture
    3,945 on at

    no sohaib

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    then, I am unable to understand your issue/ scenario

  • Gautam Profile Picture
    3,945 on at

    sohaib it may be the answer i dont know excatly .

    as i am very new to dynamics AX  so i am unable to handle complex things .

    my issue is that

    i want to take value (multiple record) from grid and want to store into my sell table

    and the scenario is that ..

    i have made one sellsform(Form Name) for handling the billing regarding selling of products .

    so i know how to take a single record from the form by using StringEdit but i dont know how to take multiple record from form .

    i can use this StringEdit also here ..but what will happen when a customer buy more than one item at a time .so to overcome this problem i want to take multiple records at a time

    my project is of supermarket 

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Gentleman you have to use grid and set multiselect  property of grid as true.

  • Gautam Profile Picture
    3,945 on at

    ok sohaib i have done this  ..and one more thing how to get the values from the same grid

    as i have created this grid without any datasource 

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    As I referred to a previous post  

    {

    YoueTable yourTableObject;

    ;

    yourTableObject = YoueTable _ds.getFirst(true);

    while (yourTableObject)

    {

                  //any processing here any logic here;

    //for your case you have to insert records in other tables here

    yourTableObject = YoueTable _ds.getNext();

    }

    }

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I cannot understand why you are not using Datasource for your form, is there any special need, for not using DS??

  • Gautam Profile Picture
    3,945 on at

    hey sohaib where should i write these codes

    i mean i need to override any method of grid ??

    if not then where should i ?

  • Gautam Profile Picture
    3,945 on at

    ok sohaib . let me answer it

    i am not using the datasource in grid because when i add the datasource then it will display the values from the table which i don't want .

    suggest me what to do here ,if it is necessary to add DS then i will definetly add the DS  

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans