This project is read-only.

Hide some properties of the object during creating object dialogue

Jul 17, 2013 at 6:05 PM
I wonder in NOF, if it's possible to show some of the properties of the object during the creation. For instance, when user tries to create a claim, in creation dialogue, it only shows few properties but not all. After user clicks save button, then all the properties get displayed.
Jul 17, 2013 at 7:20 PM
Hi there.
Yes it is possible.
You can use the [Hidden] attribute on the properties that you want to hide.

The attribute takes an optional constructor argument that allows you to specify when you want it to be hidden.
The one you are looking for is probably "UntilPersisted":
Here are the other values that can be used:
    public enum WhenTo
        Always = 0,
        Never = 1,
        OncePersisted = 2,
        UntilPersisted = 3,
Jul 19, 2013 at 9:27 AM
That works. Thanks so much for the reply.
Jul 19, 2013 at 10:39 PM
Pleasure. :)