I'm trying to set the Display Only dependency for an object type field based on the value of a field in the Request tied to the package.
This can't be done easily since I can only select other fields within the object type... so I was thinking all I would need to do is create a new display only field, which would just pull the value from the request ([REQ.P.VERSION_LOCKED]) - but I can't seem to figure out how to do this.
How would I go about populating a Object Type field by pulling the value grom a Request field?
This is something that would need to be run when the user is creating/editing the package line, not when the object is being deployed... so I can't put that in the object type command... I'm thinking it would have to go in a validation... but how do I create a validation that automatically sets the value?
I thought of the validation approach - what what type of validation would it be?
The reason I'm doing it is because I have the Version Number field for all my object types are set to Display Only: Always so that the developers can't change the version number of an object after they have submitted their package.
But, for the next phase of testing I'm going to give them the ability to update the versions of their objects in their existing packages (rather then creating a new package) - so rather then editing the object type definition and allowing ALL objects to have the version number editable, I want to set this permission at the package level, not object type level.
To do so, I want to have the Migration team set a flag on the request: this flag will then be populate the package line token (which is what this post is about). Then, the Display Only property will be dependent on what the value of the flag is.