Hello,
I have a problem to keep the column of a paged table ordered.
At first I build a variable called @CP/columns in the order I want them to appear in my table.
I then write:
Reorder('CSN',@columns);
Then I can see my table with the columns in the order I wanted. The problem is that when I change to the next page this order is not kept!
Do you have an idea how to keep the order whatever what operation I do on my paged table?
Thanks for your answer
Florent

Hello,
Attached find a simple example that relies on the automatic table generation for all input properties and which shows this in action.
In this simple example, if all of the ordered properties exist on each data record then the key key is simply to order the columns before creating the table. If not all properties are present then each page will represent only those properties to be displayed on the page, and ordering can get odd depending on the order of operation.
In the protocol output you should see:
Tab 1 has a paged table where all input data has has all properties and the reorder works well and is maintained
Tab 2 reorders the data and then reoves some of the properties causing order issues even in page 1
Tab 3 shows issuing the reorder on all records -- properties not in the record are still positionally maintained as a result
If you are using Text and Column components to construct your table then I would expect the table to respect the input order of those components.
I look forward to learning if this example helps you to resolve your issue.
Best wishes,
Lynn Miller
Accelrys Support
ok, thanks for the protocol