on 2015 Sep 16 1:32 PM
Hi experts,
I hav 2 tabs under project header and years.
Whenever i select years(start date and end date,these 2 are seperate fields), should display the years in years tab.
can anybody help me.
Regards,
pk
Hi Lavakumar,
here is my requirement
add attachment and lock that attachmentfiled while rfx is saved.
for this i wrote the code
IapiDocumentLockManager.lockDocument(session,doc);
but how to know whether the document locked or not.
can u help on this
Regards,
KPK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello KP,
Could you confirm whether you want to lock the complete RFx document or only Attachments section after saving the RFx.
As per your code (IapiDocumentLockManager.lockDocument(session,doc);) complete RFx will be locked once you save.
You will not get EDIT icon if the document is locked.
Regards,
Vignesh
Hi KP,
I understood your requirement in this way : You have created RFX and attached some files in attachments tab, then when you save the RFX, attachments tab Add/Edit/Delete option should be locked. So that no body can add attachments to the saved Rfx.
For this requirement write script on collection validation, i have tried same and able to hide Add/Delete/Edit option of attachments tab for saved Rfx. Below is the code snippet.
Code Snippet:
attachments = doc.getCollectionMetadata("DEFAULT_ATTACHMENTS").get(doc);
size1 = attachments.size();
if(size1 > 0)
{
for (int i = attachments.size() - 1; i >= 0; --i)
{
IapiDocumentLockManager.lockField(session, doc, "DEFAULT_ATTACHMENTS");
}
}
If you implement above script no body can Add/Delete your attachments in saved Rfx.
Let me know if my view was wrong about your requirement and let us know the exact requirement.
Regards,
Lava
Hi PK,
Try to implement script, in script access the start and end date then trim only year from dates then place years in years tab.
Regards,
Lava
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.