Forum Discussion
Joseph_An
8 years agoCreator II
Hi Christopher,
Can I ask you one more thing?
When I created new project with the code below, I could see "Project Executive" and so on are added automatically.
However, I found that "sort order" doesn't work.
Would you please check whether I did something wrong in the codes below? Thank you so much.
Item item_proj_exec = this.createRelationship("Project Team", "add");
item_proj_exec.setProperty("role", "Project Executive");
item_proj_exec.setProperty("sort_order", "10");
Item item_proj_exec_result = item_proj_exec.apply();
Item item_seni_supplier = this.createRelationship("Project Team", "add");
item_seni_supplier.setProperty("role", "Senior Supplier");
item_seni_supplier.setProperty("sort_order", "20");
Item item_seni_supplier_result = item_seni_supplier.apply();
Item item_seni_user = this.createRelationship("Project Team", "add");
item_seni_user.setProperty("role", "Senior User");
item_seni_user.setProperty("sort_order", "30");
Item item_seni_user_result = item_seni_user.apply();