hello,
i want to get a list of names of propreties that start a certain way 'z%'. i've found aml that was supposed to do it, i' made an iom code to recrate that aml (actually creates the right aml). But what i get is only one item, so i want to know if the aml is actually good or if there is a specific way to get the properties from that one item i get.
<AML> <Item action="get" type="itemType" select="name" where="ItemType.name = 'ZFCcontrainteTemplate'"> <name>part</name> <Relationships> <Item type="property" action="get" select="value, label" where="[property].label like 'z%'" /> </Relationships> </Item> </AML>
var FCitemType = inn.newItem("itemType", "get"); // FCitemType.setProperty("name","FCcontrainteTemplate"); // FCitemType.setAttribute("select", "name"); FCitemType.setAttribute("where", "[itemType].name like 'ZFCcontrainteTemplate'"); var property = FCitemType.createRelationship("property", "get"); property.setAttribute("select", "label"); property.setAttribute("where", "[property].label like 'z%'"); console.log("FCitemType before apply: "+FCitemType.ToString()); FCitemType = FCitemType.apply();
thanks
lucas