Control order of table lines when sublines are reused [message #1836809] |
Thu, 14 January 2021 12:44 |
Felix Dorner Messages: 392 Registered: December 2015 |
Senior Member |
|
|
Hi, I have a simple recursive tree structure, think folders and files.
I want to show this in a sirius table, so that a folder shows its files first, and then its subfolders.
I have a linemapping for folder, and a linemapping for file. In folder, I add the folder mapping to 'reused sublines', so that nested folders/files are displayed in the table. However, I now no longer have control over which elements come first for a given folder. It looks like sirius always renders the reused lines first, and then the explicitly modeled lines, and I want it the other way round in this case. Is there a trick I can use? A viewer sorter? something?
Thanks,
Felix
|
|
|
Re: Control order of table lines when sublines are reused [message #1836907 is a reply to message #1836809] |
Mon, 18 January 2021 13:27 |
|
Hi Felix,
I tested (see sample in attachment) with EPackage/Eclass to reproduce the idea. On my EPackage linemapping, for the "Reused sub line" field, I added the EPackage linemapping and then the EClass linemapping. On my table, sub levels are displayed with EPackage first and EClass afterward.
Does this answer your issue or I missed something?
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01912 seconds