This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - "Required" properties vs class structure

avia - Tuesday, March 20, 2012 11:32 AM:

Hi!

I have an item type and associated class structure.

I have different properties based on classification.

Everything is fine but how can i make required only properties that are specific to certain class?

When i set the required checkbox on any property it becomes required regardless of class selection.

Maybe there is any workaround?

 



Eric Domke - Monday, March 26, 2012 10:13 PM:

The only way to make these properties required is to create a server method that runs on before add or before update and verifies that any class-required properties are set.  To identify class required properties, we modified the property item type to include an is_class_required property which we set for any class properties we wanted to be required.  We then checked only these properties in the server method.



avia - Tuesday, March 27, 2012 5:11 AM:

Eric,

thak you for reply. I will try that method.

Do you know any thing in aras such an item type that controls parametes tab grid for classification?

Now i try to add some additional attributes to parametric data like descripton etc. But i can't find how this can be done...

The only things that aras shows in parametric tab are name and value for a property...

Thank you in advance.