Hi,

I've Screen1 and DetailScreen1 (for example)

Screen1 contains the list of DetailScreen1, and then DetailScreen1 can create Add New Detail n View Detail

If I want the View Detail is ReadOnly but Add New Detail can editable, How to do that?

I'm tried to use the Enabled: false on DetailScreen1, but both of them (Add New Detail and View Detail) was ReadOnly

Thanks

Solution

Hi, 

Enabled is a property that accepts an expression. So, as you have an I'd as input parameter, you can put this expression in the Form enabled property:

Id = NullIdentifier() 

You can use the same approach on other things, like buttons, as If widget conditions, etc. 

Cheers 

Solution

P. S. 

In the save screen action, check the condition also with an IF. If false, raise exception or end the action, to provide real security against changes when not supposed. 

Cheers