Hi Comunity,
In classic ui, it is possible to add a virtual attribute/parameter which will not trigger the save mode on a record. How to do this in freedom ui?
Like
Hello, Fulgen.
You can create it only manually in source code, at least in 8.1.2 it is like that. Virtual attribute shouldn't be bound to model. Example for viewModelConfigDiff
viewModelConfigDiff: /**SCHEMA_VIEW_MODEL_CONFIG_DIFF*/[ { "operation": "merge", "path": [ "attributes" ], "values": { "ChessViewVisible": { "value": false }, "ProjectForChessId": { "modelConfig": {} } } }, ]/**SCHEMA_VIEW_MODEL_CONFIG_DIFF*/,
And for viewModelConfig (used in some very first 8.x versions) it would look like this
viewModelConfig: /**SCHEMA_VIEW_MODEL_CONFIG*/{ "attributes": { "ChessViewVisible": { "value": false }, "ProjectForChessId": { "modelConfig": {} } } }/**SCHEMA_VIEW_MODEL_CONFIG*/,
Andrii Orlenko,
Thank you for this. Currently in 8.1.3 viewModelConfig is no longer part of the default structure, what is the counterpart of this? Should I add it manuaaly?
Fulgen Ninofranco,
The viewModelConfigDiff is the newer equivalent. You'd use the first sample provided by Andrii (only use the second if you're on an older 8.x version - however, the designer will move it from viewModelConfig to viewModelConfigDiff when saved)