on 2016 Jun 20 4:34 AM
Hi Experts,
I am facing the problem during fetching the document type of current document in Contract Create script.
My requirement is, I want to restrict user from creating 1st document other than "Contract".
for this i need to fetch the doc type of current document.
I am using following piece of code in Contract Create script but it is throwing me an error.
I am unable to access netviewer JAVA logs due to some technical problem, so I am unable to paste complete log information.
Please help me with your expert comments.
Regards
Nishant
Hi Sonu Kumar,
Thanks. I tried this in Contract validate script (target validate). but it is restricting me from adding other contract document having doc type Amendment, after adding first document as 'Contract'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nishant,
Please try this hope it will help.
if(hasValue(doc.getDocTypeReference().getDisplayName()) )
{
if(!("Contract").equals(doc.getDocTypeReference().getDisplayName()))
{
//exception--for equal conddition , left should not be null becuase it encounters from left in Uf
}
//Please vlaidate this on Target as "Validated"
Thanks
Sonu
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.