cancel
Showing results for 
Search instead for 
Did you mean: 

How to Identify When Attachment is Loaded to SIGNED_DOC field via Script

Former Member
0 Kudos

Hi Experts,

We are running E-Sourcing 5.1 and I am wondering if there is a way to identify when an attachment has been loaded in the Final Sign Document field  (UI: doccommon.contractdocument.ui.sellside.default ---> Field ID:  SIGNED_DOC) in a Contract via Method in script or otherwise.

We are trying to have the system validate in a Script whether an attachment has been loaded to this field before allowing a user to change the Contract phase from “Executed” to another custom Contract phase. Any input/help would be greatly appreciated!

Thanks, 

Vincent

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Vince,

Yes, you could have a script that can check if the Final Signed Document field on the Contract Document is populated and if it is not, then display an error message on the page. The script would be Document Lifecycle Event and target Pre Phase Change.

Hope this helps.

Vikram

Former Member
0 Kudos

Vikram,

Thank you for the response. We have identified the script definition we need to use, but we are unable to identify which method/logic we should use to return when a attachment has been loaded or not. In the past, we have used "doc.getExtensionField()". Do you know if there is something similar specifically for Attachment type fields?

Regards,

VL

0 Kudos

Hi Vince,

Try doc.getFieldMetadata("SIGNED_DOC").get(doc) where doc is the Contract Document.

Hope this helps.

Regards,

Vikram

Answers (0)