on 05-14-2012 2:40 PM
Hi All,
I am trying to hide Upload Document Button on Contract Documents Tab,
I am using below script:
myColl= doc.getCollectionMetadata("<COLELCTION ID>").get(doc);
IapiDocumentLockManager.lockField(session,doc,"<COLLECTION ID>");
for (int i = myColl.size() - 1; i >= 0; --i)
{
myColl_member = myColl.get(i);
IapiDocumentLockManager.lockField(session, myColl_member, "<COLLECTION FIELD ID");
// The above line is repeated for every collection field
}
I replaced <COLLECTION ID> with contracts.contractdocument.collection.toolbar
and <COLLECTION FIELD ID> with upload_document
But when I run the script it throws null pointer exception at line 1.
That is its getting Collection as null.
Can anybody help me with what should be correct <Collection ID> for Contract Documents Tab?
Thanks,
Saloni
Hi Saloni,
You would have to use Toolbar Customization. It is not possible to hide buttons via scripting.
Regards,
Vikram
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.