Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
CSIDE and OScript
Creating a new audit event
Andrew_Brown
Hello,I am trying to insert a new audit event for a feature to purge all topics in a discussion. This is being called from the _SubclassExecute method of the DeleteTopics WebNodeAction. I have created a DelTopics AuditEvent. The problem is the the fEnabledToAudit feature is getting set to False somewhere although it says it is True before execution.---------=== BEGIN: CODE ===---------function Assoc _SubclassExecute(Object webNode, Record request ) Assoc response = ._NewResponse() Object node = request.node Integer topicsCount Assoc result if $LLIAPI.NodeUtil.CheckPermissions( request.node, { $PEditPerms } ) result = $TareDiscussionTools.DiscussionPkg.DeleteTopics( request.prgCtx.dSession().fSession, node.pId ) if !result.OK response.error.message = result.ErrMsg else response.data.discussionName = node.pName result = $LLIAPI.AuditSubsystem.Audit( \ $AuditDelTopics, \ request.prgCtx, \ node.pId, \ Undefined, \ Undefined, \ Undefined, \ Undefined, \ Undefined, \ Date.Now(), \ Undefined ) end else response.error.message = [TareDiscussionTools_ERRMSG.NotEnoughPermissionsToDeleteTopics] end return responseend---------=== END: CODE ===---------Please help.Thanks,Andy
Find more posts tagged with
Comments
Andrew_Brown
The reason why fEnabledToAudit was set to false was because the audit event was not enabled from the Admin pages. After changing this the audit event worked.