Default value in a field depending on the view

Hello, it is possible to know in which view a data model is open.

I need to put a default value in a field depending on which view the data is displayed. In a model with multiple views. Each view will have a domain to filter the data by that field.

Thank you

Not really but you can set a value in the context of the action that opens the view. This context will be used to call the default method of the field.
But if you have domain constraint with = operator in such way that only one value is possible, the client will set the value automatically.

That’s what I thought but I tried it and it didn’t work. I’ll try it again.

the domain would be in the call action or in sight.

how could that value be in context?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.