Event PX how to get file name and other attributes from attachment table for checked in ,added file etc

Hi

 

I am relatively new to Agile PLM. I am writing a event java px to get file name and other attributes from attachment table,for files added,checked in ,checked out etc.

 

Can anyone let me know how to get the file details for these operations?

 

Should it be a post or pre event?

Add Comment
1 Answer(s)

Hi Sabarish,

We have a PRE event set up with the following.  I think it could also be a POST if you aren’t trying to error anything.  Should be able to get details from the IFileEventInfo object

IFileEventInfo fEvent = (IFileEventInfo) event;
IEventDirtyFile[] files = fEvent.getFiles();
String fileName = new String();
for (IEventDirtyFile edf : files) {
     fileName += edf.getFilename();
}

Agile Talent Answered on March 19, 2021.

Thank you very much McDonald

on March 19, 2021.

Hi All,

i want ask,

how to set java PX in event handle ? where to put this code is PX? i have no idea. thanks.

on September 14, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.