What could cause the width specified for a column in a Table or GroupTable to be totally ignored? O_O

So I’ve just generated a browse/edit screen pair with the wizard like I’ve done hundreds of times before. Like usual, I need to control the width of some columns on the browse. No big deal, again, done this hundreds of times before.

Except this time the widths are totally ignored. No matter what I do, when I run the app, the actual widths on the screen are exactly the same every time. I’ve tried different widths, run Gradle’s clean task, you name it - nothing.

All my other browse screens have manually set widths on their columns and they work.

But not this one. What can cause manually set widths to be ignored?

            <columns>
                <column id="number" caption="msg://number.caption" width="425px"/>
                <column id="dateOfOrder" caption="msg://dateOfOrder.caption" />
                <column id="dateOfService" caption="msg://dateOfService.caption" />
                <column id="dateOfInvoice" caption="msg://dateOfInvoice.caption" />
                <column id="patient" caption="msg://patient.caption" />
            </columns>

Is how the XML looks right now, but I’ve tried it with 150/150/150/150 (which should cause the first 4 to be 150 wide and the patient column to take up the rest, which is what I actually want)… other values —> all ignored!

1 Like

I need some assistance with this one - it’s kind of important to be able to control column widths, and there’s no obvious reason why this isn’t working, since it works everywhere else. I need to know all the circumstances that could cause it to be ignored.

(And no, I can’t supply a small demo project to illustrate it, because as I said, it’s only happening in this one browse, but said browse was simply generated with the Browse/Edit screen wizard!)

1 Like

Oddly, this seems to be caused by the screenSettingsFacet being included on the screen. I compared the non-working screen with numerous working ones and all of the working ones DID NOT have this facet included.

1 Like

I think it is. Width in the controller specifies the default width.

Most likely, at first the column on the screen was without specifying width and the application was launched with such a screen.

So screenSettingsFacet remembered the width when the screen was first launched.

1 Like

That’s my guess too. There should be some type of visual indicator that the screen is in “customized” mode and an option to reset back to developer-provided defaults.

1 Like

It would be nice to have a standard means to clear the saved settings of a specific screen for a specific user.
I’ve been in your situation several times. :slight_smile: I just searched for a record of screen settings for the user in the Entity Inspector and deleted it.

In the API, I haven’t found a way to remove user settings for specific screen. Maybe I was just looking in the wrong place …

2 Likes