In the model we have a screen with DefaultConfiguration property set.
I added new field into screen section and set property ColumnWidth to -100
The new field is not added into DefaultConfiguration.
I was expecting …
New field would not be displayed in any Table Configuration to any user where it is missing because it is set to -100 as default. So it should be added to user’s configuration as invisible and client should not display it.
Instead I’ve got …
New field is visible in client at the end of the screen section.
Workaround
Current workaround is to apply sql script to force remove configuration of the column and add new column as invisible to all configurations of all users:
DECLARE @formPanelId uniqueidentifier = 'd8fc8897-6c75-41b7-9e23-ff02d8782371'
-- smaže záznam sloupce, pokud by se vyskytl
update OrigamFormPanelConfig set SettingsData = replace(SettingsData, '<ColumnConfiguration propertyId="refConsolidatedCoachId" width="100" isVisible="true" />', '') where FormPanelId = @formPanelId
update OrigamFormPanelConfig set SettingsData = replace(SettingsData, '<ColumnConfiguration propertyId="refConsolidatedCoachId" width="100" isVisible="false" />', '') where FormPanelId = @formPanelId
-- vytvoří nový záznam sloupce jako neviditelný na konci TableConfiguration
update OrigamFormPanelConfig set SettingsData = replace(SettingsData, '</TableConfiguration>', '<ColumnConfiguration propertyId="refConsolidatedCoachId" width="100" isVisible="false" /></TableConfiguration>') where FormPanelId = @formPanelId
Additional notes
If I tried to change new DefaultConfiguration, Reset column configuration in menu didn’t help to reload with new DefaultConfiguration. New field was also visible.
To retest new DefaultConfiguration, I deleted the rows in database and then everything worked correctly:
DELETE FROM OrigamFormPanelConfig WHERE FormPanelId = 'd8fc8897-6c75-41b7-9e23-ff02d8782371'
select * from OrigamFormPanelConfig where FormPanelId = '82f28f18-0f65-4c9b-afa8-2335fddb654d'
delete from OrigamFormPanelConfig where FormPanelId = '82f28f18-0f65-4c9b-afa8-2335fddb654d'