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 - How to get new itemtype using AML language by import?

savan - Friday, March 26, 2010 1:59 AM:

Dear

friends

I am trying to generate item type using AML by importing the AML code .but I am getting an error because of ID of item i dont know how to get id for item type even i have tried using id="{@id}" but i am getting error

so please suggest me how to generate itemtype using AML code

<AML>
 <Item type="ItemType" id="{@id}" action="add">
  <allow_private_permission>1</allow_private_permission>
  <auto_search>0</auto_search>
  <enforce_discovery>1</enforce_discovery>
  <hide_where_used>0</hide_where_used>
  <implementation_type>table</implementation_type>
  <instance_data>Work</instance_data>
  <is_dependent>0</is_dependent>
  <is_relationship>0</is_relationship>
  <is_versionable>0</is_versionable>
  <label xml:lang="en">worked</label>
  <label_plural xml:lang="en">worked</label_plural>
  <manual_versioning>0</manual_versioning>
  <name>Work</name>
  <show_parameters_tab>1</show_parameters_tab>
  <unlock_on_logout>0</unlock_on_logout>
  <use_src_access>0</use_src_access>
 </Item>
</AML>

 

Regards

savan



RobMcAveney - Wednesday, March 31, 2010 11:32 AM:

Simply omit the id attribute and an id will be generated for you:

<Item type="ItemType" action="add">

The id that was auto-generated will be returned in the response.

Rob