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 - Customizing class-based properties

avia - Friday, March 23, 2012 9:37 AM:

Hi!

Trying to move to aras.

I have a database with parametric data for electronic components like resisors, capacitor etc.

Now i try to model it in aras.

Currently in my database i have a tree structure that help me to organize sets of parameters of electromic components in hierarchical manner like this is done in aras. For each parameter in my database i have a name, type (currently supported are only strings and floats), value, description, and (for floats) unit of measure.

I can't find how this all can be impemented in aras!

If i create a class structure for any item type then it displays a parametes tab for each new item but inside there are only property name and property value.

How can i add any additional atributes to parametric (class-based) data?

Without this a very good concept of hierarchical sets of properties is for me almost useless...



Yoann Maingon - Tuesday, April 3, 2012 9:19 AM:

I guess you can change the property datamodel. Go to itemtypes change the property itemtype and add a "type" property for example. Just be aware that you are impacting your whole datamodel.

That's one way to do it, but there might be others. Can you give an example of a screen you would like to see?

 



avia - Wednesday, April 4, 2012 3:50 AM:

I guess you can change the property datamodel.

Yes, thank you, i know that. But it does not solve my problem. If i add some custom properties to property type, i still cannot add any new coumns in parametric data.

Sorry, i can't provide any screenshot but try to explain more accurately now. I want to see not only name and value columns in parametric tab but also any my specific added columns.

I think that using standard datatypes does not allow this. I found that there are two special data types in quality solution called select type. It is no more than a simle record in a list of types, but these types are controlled by special methods also from this solution. Also there are a special item type called grid. In such grid i was found all that i need but it is not simple to customize it for my specific needs. Grids are part of quality solution and excessively used methods and programming for populating values, opening custom user dialogs etc. That all is for me too comlex today.

Also i found that a parametric tab itself is formed via scripting in html page that resides in file parameterGrid.html. I think that it is not best way to try to change this file since it is aras system file and can be changed in future releases.

Finally i decide to stop further trying to include my columns in parametric data. Maybe in new releases aras makes it a standard feature...But now i will try some other ways, problem appears too complex and solving profit apperas too small.