Changing order or placing of fields in a web ui table - solved!

Hi,
I wanted to change the order of the fields in both, the table and the edit box in a Web UI.
Selected the table/edit box, went to properties, clicked on edit fields and used the arrow buttons to arrange the field like I need it.
After applying, the new order is fine in the edit box, but not in the table.
In the table I still see no changes, whatever I do in the property settings.
In the properties → fields → edit settings, the order is like I set it, but not in the UI after deploying it.

Working with Studio 6.7.6 on Windows.
In Studio rcCode is on left side:
image
In the UI not:
image
And xml also looks fine:

            <groupTable id="table"
                        width="100%">
                <actions>
                    <action id="create"/>
                    <action id="edit"/>
                    <action id="remove"/>
                </actions>
                <columns>
                    <column id="rcCode"/>
                    <column id="rcDescription"/>
                    <column id="rcInclExcl"/>
                </columns>
                <rows datasource="psiRcCodesesDs"/>
                <rowsCount/>
                <buttonsPanel id="buttonsPanel"
                              alwaysVisible="true">
                    <button id="createBtn"
                            action="table.create"/>
                    <button id="editBtn"
                            action="table.edit"/>
                    <button id="removeBtn"
                            action="table.remove"/>
                </buttonsPanel>
            </groupTable>

thx to Aleksey (@stukalov), there was a user setting for that user and that UI…

Blockquote

Hi @r.walde,

Seems you face the same situation, as was discussed here UI components sometimes not updated - CUBA.Platform.

We will consider this unclear behaviour and will try to provide better experience https://youtrack.cuba-platform.com/issue/PL-10190.

Regards,
Aleksey

Hi,
thx for the help.
This feature would be great from my view,
if the user could decide to save the settings or not,
and if he/she could reset them with a click.
Cheers
Roland

Hey @r.walde!

Add presentations property on your table. After reordering the columns in the code, clear the settings for the table on the client and the columns will appear in the new order. And for users, you make it possible to save your settings for the columns of the table.

Hi @r.walde,

In addition you can disable auto-saving of the user settings by setting the cuba.gui.manualScreenSettingsSaving property to true. Read more here.

Regards,
Aleksey

Hi,
found it.
That’s exactly what I was looking for.
Thx.
Roland