cancel
Showing results for 
Search instead for 
Did you mean: 

page cusomization or report

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Vignesh

restrict the user to add attachments on save by writing a small script at validate event. The script will force the user to remove any attachment added depending upon the conditions.

Regards,

KP

Former Member
0 Kudos
Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Lava,

Thanks for your reply, let me check once.I think it will work.

Regards,

KP

kumar3kpk@gmail.com

Former Member
0 Kudos

Hi Lava,

Perfectly done.Thanks alot for your help.Super...

Regards,

KP

Answers (1)

Answers (1)

Former Member
0 Kudos

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