![]() |
|
![]() |
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
There is not a diff feature in UR.
If you create a template item with custom attributes and a form, and copy the template or an item of that template to another DB, the custom attributes and form will also be created in the destination DB. If you then modify the template and add more attributes, and copy the template or item of that template to the same DB as before, UR will add any additional attributes in the destination, but it won't modify the form or existing items with additional item attributes. But you could search for all items of that template, select all, and add the missing item attributes (and also add them to the form). |
#2
|
|||
|
|||
Quote:
This is the custom template in the source database: Two attributes of this template are custom: Hours (string) and Holdings (string); the rest are "built-in" attributes. After copying this template item to the template folder of the default db it displays like this: A repository Form is created but it does not have the Hours and Holdings attributes, although lines have been reserved for them. Also, the Attributes list does not contain Hours and Holdings. I used the Edit menu's Copy and Paste commands. Do I need to use a different procedure? Thanks for your help. |
#3
|
|||
|
|||
In my earlier test, I copied an item of the template, rather than the template item itself, but I tried that just now and also got the expected result.
|
#4
|
|||
|
|||
Thank you for taking a look at this.
I tried your sample and I found it works as you describe. To try to isolate the problem I am experiencing, I created a separate database with a custom Repository item type (as described in my previous post) and created two Repository items -- it is Repository-Sample.urd in the attached Zip file. For one of the Repository items, all Attributes are populated, for the "unpopulated" item, it only has an Item Title. I tried three tests:
The results that I see are:
These resulting databases are included in the zip file and are named CaseN....urd. It appears that a new Item type is not completely copied to a different database if any of its attributes are not assigned values. This is a fairly simple case. I wonder how a template Item type that contains references to other InfoItem types will transfer to a new database. Thanks, -Stan |
#5
|
|||
|
|||
They don't need to have a value, but the template item does need to have the custom item attribute(s). The mere existence of an attribute on a form will not bring the attribute over.
|
#6
|
|||
|
|||
![]() Quote:
My approach has been to create forms with custom attributes. Then in the template item, I just give the name of the form used. I assumed the attributes were pulled into the new type. This worked until I tried copying items between databases. Maybe it has had other consequences that I'm not aware of. |
![]() |
|
|