Prasad90 - Wednesday, July 17, 2013 8:23 AM:
HI all,
Can we make ItemType Itemtype versionable so as to keep track of all the changes in properties and relationships?
Is it really possible in Aras?
I edited ItemType Itemtype and set it versionable. Then I create new Item Type "Test" and made two versions of it. But when I tried to open its form it gives me error as "Error While getting details of 'Test' Itemtype".
Brian - Thursday, July 25, 2013 9:44 PM:
Hi Prasad,
Since the ItemType is absolutely central to everything in Innovator I think making it Versionable when it normally isn't is going to have wide reaching implications of which the error you see is just the first.
Versionable items use the Configuration_id to link all of the same versions and then use the ID to specify an individual version/generation.
The first version of any item has the Configuration_id and the ID identical but after that they are not the same. I think you would find that many of the Item Type behavior relies on the ItemType not being versionable.
Cheers,
Brian.
Prasad90 - Friday, July 26, 2013 1:45 AM:
Thanks Brian.
I have a problem:
I have a new ItemType named "Department".
It has 10 more ItemType in its relationship, i.e. 10 tabs under Depertment instance.
I have created some instances of Department which will show 10 tabs under them.
After a while, for some enhancement I need to remove 5 tabs from these 10.(Lets say I hide the 5 tabs using Coding)
What I want is show only 5 tabs for new instances of Department and show 10 tabs for older instances of Department.(It is possible and done using coding)
After a while I want to again hide 2 more tabs and now hiding tabs gets complicated for coding.
Also for each relationship change I need to go for coding.
Is there any other solution except for making ItemType itemtype versionable and Code each time?
Cheers,
Prasad
Brian - Monday, July 29, 2013 1:42 AM:
Hi Prasad,
It seems odd to me to want to be changing the relationships of the item so much. It feels like a database design problem more than a "hiding the tabs" problem.
While Innovator is very flexible you don't want to be jumping into an Item Type and changing relationships or anything else in a production system very often.
If you really do need to have so many different groups of tabs then I suggest adding a property of some sort to the Item Type so that you can test this to see which tab arrangement you really need.
Make the property required (you will have to set it on any existing records before making it required) and give it a default value, being the value you want all of the current Items to be created with. Don't expose the property to the user if it doesn't help them but put it on the form as an invisible and disabled field. Now you should be able to test for this value when your form opens and code the tabs as required. When you need to change the relationships again to display different tabs you change the default value for the Item type and change your code that tests for this. The user never gets to select the value and you now have a simple way of telling the difference between Items created at different times with changes to the Item Type.
Before I did any of this I would be trying to work out why I needed to change the tabs so much and see if there was a better solution.
Cheers,
Brian.