on 2016 Jan 11 10:10 PM
Need help if any simple/direct out of box way is there to copy a Custom collection data to a Sub Agreement when it gets created from its Master.
Say we have Collection called Products
Name | Type | Department | Location |
---|---|---|---|
Whenever a Sub Agreement is created the data doesn't carry over automatically from its Master
We had to write code in POST_CREATE of Sub Agreement for this purpose, briefly as below
parent = doc.getParentIBean();
p_colln = parent.getExtenionCollection("products");
c_colln = doc.getExtensionCollection("products");
iter = p_colln.iterator();
while(iter.hasNext()){
p_member = iter.next();
c_member = c_colln.create();
c_member.set("name", p_member.get("name"));
}
c_colln.add(c_member);
}
is there any out of box way of doing this?
Request clarification before answering.
Hi,
There is no out-of-the-box way of doing the copy. You will have to handle create/update via scripts.
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.