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)

Splitting the records

(0) ShareShare
ReportReport
Posted on by 931

Hi ,

I have a new form,say with fields NumberSeqfield,Cust Accnt, Cust Name, Divison, date, numberof.

My need is to create the numberof records, say if the numberof field have value 8.

if i click a button, it should split the record into 8 records.

Now what i have done is i hardcoded the numberseqfield when inserting the 8 records, as

if numberseq field is :LAB -000001,  i split it as LAB -000001-1,LAB -000001-2,LAB -000001-3...LAB -000001-8.

all this i have done in an for loop.

Now, if i need to split it as 4 and 4, what should i do.

eg:

Number seq - LAB-000001 ,  Cust Accnt - 10000, Name - XX, Division -01 , data - today. number of - 8.

i will to split it into 4.LAB-000001-1,LAB-000001-2,LAB-000001-3,LAB-000001-4.

If i again click the first record and split it again, then obviously it won't create since i hardcoded the numbseq field when splitting.

What are the other options to achieve this.

Any suggestions would be helpful.

Thanks,

Rusty.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,775 Super User 2026 Season 1 on at

    Hi Rusty,

    Can you explain it less abstract? What is the business requirement? How would the system know it should split into 8 or 4 and 4 records? Why would there be a requirement to split again? What exact type of answer are you looking for? A suggestion to not use a hardcoded number sequence?

  • ThivaKar Profile Picture
    931 on at

    Hi Andre,

    There is a field as NumberOfContainers.If this value is 8(User enters the value, might be any number).

    So, if i click the button, a dialog will open to enter the number to split.

    Buisness requirement is : This is customer label parts. This form will be used to generate report and this will be a label that would be sticked in the customer parts.

    Number sequence is for the Barcode in the report.

    as i said earlier, lets say if there is a record like

    Number seq - LAB-000001 ,  Cust Accnt - 10000, Name - XX, Division -01 , data - today. number of containers - 8.

    the purpose of splitting is to split this record with just an another number sequence.

    if number of containers is 8, then user will split it into 8 records, with another number sequence, which can be used as bar code in the label of customer parts. just to identify the parts label.

    I hope this clarifies!

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Your example provided is very unclear on what exactly do you mean by a 4 by 4 split.

    We do not really get you since above you are just showing a single number sequence, where you will have 4 or 8 records with the next number consumed sequentially, which would be just 1 number sequence. Then depending on what number you have, you would just programmatically fetch the next 4 or 8 or whatever number you want from the same sequence in a loop.

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
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans