Hi,
maybe it is a silly question but I can't manage it. I have a relationship item "Part Integration" and it has a customized property "integration_number". I want this to be visible in the main Part search grid. I tried to uncheck hidden1 and hidden2 but nothing happens.
thank you in advance
Duygu
Thanks a lot for your quick reply.
Unfortunately I still get the same error : “An item with the same key has already been added”
The code is now as follows:
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("_uzay_part_e_no",E_no); // _uzay_part_e_no is a string propery of the Part Item Type.
sourcePart = sourcePart.apply();
if (sourcePart.isError())
{
return inn.newError("nb.of items found = " + sourcePart.getItemCount());
}
return this;
Thanks a lot for your quick reply.
Unfortunately I still get the same error : “An item with the same key has already been added”
The code is now as follows:
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("_uzay_part_e_no",E_no); // _uzay_part_e_no is a string propery of the Part Item Type.
sourcePart = sourcePart.apply();
if (sourcePart.isError())
{
return inn.newError("nb.of items found = " + sourcePart.getItemCount());
}
return this;