Forum Discussion
krisgopi88
7 years agoCreator I
Hi OEAKDEMIR,
This should work.
Innovator inn = this.getInnovator();
string my_type = this.getType();
string my_id = this.getID();
Item relation = inn.newItem(my_type,"get");
relation.setAttribute("id", my_id);
relation = relation.apply();
string E_no = relation.getProperty("_uzay_rel_e_no");
string source_id = relation.getProperty("source_id");
Item sourcePart = inn.newItem("Part","edit");
sourcePart.setAttribute("id",source_id);
sourcePart.setProperty("reference_designator",E_no);
sourcePart = sourcePart.apply();
if (sourcePart.isError())
{
return inn.newError("no of items found = " + sourcePart.getItemCount());
}
return this;