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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

insert the selected rows as a new record in ax 2009

(0) ShareShare
ReportReport
Posted on by 770

If i click the button, the selected line value(record) in the Grid should be inserted as new record

If i click the button then selected line should be split as two record(Based on the Table numeric Field value(If that Field value = 5 means, after divided the first record that Field value = 3 and another one will be 2.

How to achieve this 2 solution....?

*This post is locked for comments

I have the same question (0)
  • Bilal Issa Profile Picture
    4,370 on at
    RE: insert the selected rows as a new record in ax 2009

    Hi ,

    you can use Buf2Buf(origRecord,NewRecord) , then change the field you want in the new record.

    Regards,

    Bilal

  • MUHAMMAD HAARIS Profile Picture
    770 on at
    RE: insert the selected rows as a new record in ax 2009

    Hi Bilal,

    Duplicate record should be saved in same table only. the above two process done in same table.

    Can u expalin little bit more...?

     

    Regards,

    Muhammad Haaris.

  • Bilal Issa Profile Picture
    4,370 on at
    RE: insert the selected rows as a new record in ax 2009

    Hi Mummad,

    in the click button you can use the code below and in the example I use ItemGroup

    ItemGroup newItemGroup;

    buf2buf(selectedItemGroup, newItemGroup) //  selectedItemGroup is form data source

    newItemGroup.GroupId = 'NewId';

    newItemGroup.insert();

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans