savan - Tuesday, March 30, 2010 6:36 AM:
Dear
friends
I have created itemtype with 3 properties to it (state country and name) then i have exported and generated
Aml code. In Aml code i have deleted one propertie(name ) then again i have imported it. but I am getting
again 3 properties but I want only 2 properties (country and name)
So please suggest me how to delete or add new properties to Item type using AML code
Regards
savan
RobMcAveney - Wednesday, March 31, 2010 11:01 AM:
In AML you can delete Properties like this:
<Item type="Property" id="8F36F147F485D51EC19DBB547459472E" action="delete"/>
However, we don't normally suggest deleting properties as part of a package. The user of the package may have entered valuable information in that property and you shouldn't just delete it. It's usually better to simply hide the property and the corresponding field on the form (if any).
Rob
savan - Thursday, April 1, 2010 3:37 AM:
thanks Rob
I have deleted propertie successfully
through AMl. But when I am going to add new propertie through AML. I am getting error above shown error i am getting when i am trying to import.
the new propertie code which i have added is
<Item type="Property" action="add">
<column_alignment>left</column_alignment>
<data_type>string</data_type>
<is_hidden>0</is_hidden>
<is_hidden2>0</is_hidden2>
<is_indexed>0</is_indexed>
<is_keyed>0</is_keyed>
<is_multi_valued>1</is_multi_valued>
<is_required>1</is_required>
<label xml:lang="en">Volt</label>
<name>volt</name>
<range_inclusive>0</range_inclusive>
<readonly>0</readonly>
<sort_order>128</sort_order>
<source_id keyed_name="Yarn Batch" type="ItemType" name="Yarn Batch">65D9A35177A242D982EAAF9CF55CA9FF</source_id>
<stored_length>50</stored_length>
<track_history>0</track_history>
</Item>
RobMcAveney - Saturday, April 3, 2010 11:30 AM:
The Import tool requires an id for each item being imported. You should have something like:
<Item type="Property" action="add" id="30B3C9066BBF422E904A0A08C2112BB6">
It's suggested that you create the items in Innovator and export them rather than trying to edit the resulting AML manually.
Rob
savan - Tuesday, April 6, 2010 5:54 AM:
thanks Rob.....