Wednesday, June 19, 2013 2:41

Archive for October, 2011

Convert e.printStackTrace() to string

Tuesday, October 25, 2011 23:11

When catching Java exceptions, we usually want to print the stack trace.  Sometimes we also want the detailed message to be used in business related logic. e.g. sending the detailed exception message by email. So we need to convert the result of e.printStackTrace() to string: private static String getStackTrace(Exception e) { StringWriter stringWriter= ...

This was posted under category: Java  |  Read Full Story  |  1 Comment
Tagged with:

Update the r_modifier of the document

Thursday, October 13, 2011 22:50

Sometimes you may want to specify the user name for the r_modifier of the document (or specify a value for the attribute r_modify_date). These two attributes are updated automatically with the save API. As it turns out, any time the save API is called against an object, the r_modify_date and r_modifier ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Tagged with:

DM_AUDITTRAIL_E_AUDIT_DOCBASE_WIDE_NOT_ALLOW_EXTRA

Wednesday, October 12, 2011 23:40

When executing the API command - " audit,c,l,event_name,,,,,,,'event_description','event_attributes' ", I got the below error message: [DM_AUDITTRAIL_E_AUDIT_DOCBASE_WIDE_NOT_ALLOW_EXTRA]error:  "You are not allowed to specify extra values, 'T', when docbase-wide event is audited." In the powerlink site of EMC, it is mentioned that 'Audit api is not supported in D6. You need to use either ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Tagged with: