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 - GetItemRepeatConfig Fix?

jsnosal - Thursday, December 13, 2012 11:03 AM:

Is there a fix for GetItemRepeatConfig? I saw a forum post from a couple years ago that was talking about how GetItemRepeatConfig is removing duplicate items. Below is the query I was using. Is there another solution that I'm missing? Thank you for your help. 

 

<Item type="Part" action="GetItemRepeatConfig" select="item_number,name,temp_coefficient,tolerance,voltage_dc,major_rev,classification,package_case,rohs_pb_free,legacy_part_numbers,description,consolidated_property" id="{@id}">

 <Relationships>

  <Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

  <Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

  <Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id" repeatProp="related_id" repeatTimes="5"/>

 </Relationships>

</Item> 



jsnosal - Wednesday, January 9, 2013 10:57 AM:

I found the fix. Thanks

<Item type="Part" action="get"  select="item_number,name,major_rev,classification,rohs_pb_free,description" id="{@id}">

 <Relationships>

  <Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

  <Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

  <Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id(item_number,name)">

    <related_id>

<Item type="Part"  select="item_number,name,major_rev,classification,rohs_pb_free,description">

<Relationships>

<Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

<Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

<Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id(item_number,name)">

   <related_id>

<Item type="Part"  select="item_number,name,major_rev,classification,rohs_pb_free,description">

<Relationships>

<Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

<Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

<Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id(item_number,name)">

<related_id>

<Item type="Part"  select="item_number,name,major_rev,classification,rohs_pb_free,description">

<Relationships>

<Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

<Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

<Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id(item_number,name)">

<related_id>

<Item type="Part"  select="item_number,name,major_rev,classification,rohs_pb_free,description">

<Relationships>

<Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

<Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

<Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id(item_number,name)">

<related_id>

<Item type="Part"  select="item_number,name,major_rev,classification,rohs_pb_free,description"></Item>

</related_id>

</Item>

</Relationships>

</Item>

</related_id>

</Item>

</Relationships>

</Item>

</related_id>

</Item>

</Relationships>

</Item>

</related_id>

</Item>

</Relationships>

</Item>

</related_id>

</Item>

</Relationships>

</Item>