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 - Setting data_source attribute of new properties of type Item causes error

Roller - Wednesday, January 9, 2013 8:55 AM:

When creating new properties of new item types i get error messages when i try to set the data_source attribute on properties of type Item or List. The required data_source item type is defined in the AML code before.

Simplified example:

<AML>
    <Item type="ItemType" action="add">
        <name>pc_Test1</name>
    </Item>
    <Item type="ItemType" action="add">
        <name>pc_Test2</name>
        <Relationships>
            <Item type="Property" action="add">
                <data_type>Item</data_type>
                <name>testproperty</name>
                <data_source>pc_Test1</data_source>
          </Item>   
        </Relationships>
    </Item>
</AML>

Result:

<faultstring>"pc_Test1" is not a valid id</faultstring>

It looks like the previously defined ItemType of pc_Test1 cannot be set as data_source for the property testproperty.



asha_gholve - Friday, January 11, 2013 7:25 AM:

Hi,

data_source is a ID and not a name,

It should be the ID of pc_Test1 Item type and not name

 

Regards,

Asha



Roller - Tuesday, January 22, 2013 3:59 AM:

Hi Asha,

with the ID it works.

 

Thanks

Bernd