on 10-13-2011 10:09 PM
All,
In the created lifecycle event of a document that is created out of another (say a project from a UDO or RFx from a project), I am trying to use getDocumentLinkList(). But it returns an empty collection.
I need to carry over fields from one module to another.
Has anyone faced this issue? Is there a solution or an alternative for this requirement?
Thanks & Regards,
Subhasini
Hi Subhasini,
Did you copy over the document links also while creating the new object? Otherwise I don't think the new object would have links.
Thanks,
MP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi MP,
I am using the standard actions 'Create Project', 'Create Rfx' etc to create the respective objects.
Is there a way I can influence that the document links be copied over?
Also, if on the UI of the created object I get to see the document link, does it not mean the 'DOCUMENT_LINKS' collection is already populated? In this case, should the IAPI method to get this 'DOCUMENT_LINKS' field not return that?
Regards,
Subhasini
OK, I thought you were creating these documents through scrips.
I have not worked much on Document LifeCycle events, however per the documentation Created is "Point at which the class is instantiated as new", so maybe all the data is not set yet. Or maybe you should be using Duplicated instead of Created.
Would request other members to please advise.
Thanks,
MP
Hi
If I understand your requirement correctly you need to retrive all document links from a recently created business doc. I would suggest using Saved or Validated target for document lifecycle event script. doc.getDocumentLinkList(); should given a collection of linked objects correctly if you do so.
Regards
Mudit Saini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.