Hi Trishla,
If I understand you in the right way, Here are some insights that may help you:
Create an Entity for Articles:
Article
with attributes such as ArticleName
, StartPage
, EndPage
, and any other relevant information.Create an Entity for Issues:
Issue
with attributes such as IssueName
and a reference set to the Article
entity to represent the articles included in the issue.Microflows for Sequencing:
Change Sequence Microflow:
StartPage
and EndPage
attributes based on the new sequence.User Interface:
Flow:
Here's a simplified example of what the microflow logic might look like:
Microflow: CalculatePages
1. Retrieve all articles for the issue.
2. Sort the articles based on the desired sequence.
3. Loop through the sorted articles.
a. Set the StartPage of the current article.
b. Set the EndPage of the current article based on its length and the StartPage.
Microflow: ChangeSequence
1. Retrieve the issue and the new sequence of articles.
2. Clear the existing articles in the issue.
3. Loop through the new sequence.
a. Create a new association between the issue and the article.
b. Call the CalculatePages microflow for the updated sequence.
* Remember to adjust the details based on your specific requirements and the Mendix version.
This is a high-level guide, and you may need to adapt it to your specific needs and data model.
** Kindly accept my answer if it assists you in solving your problem.
Assuming you want to create a document with the articles you can create an object in which you set the link to the aritcles and use an index integer to determine the order. THen in the document use a list to display the object ordered by the index and then show the associated article. Now you have full control over the article order as you can create the logic to create the index object and associations