AnsweredAssumed Answered

View RuleType value in javascript

Question asked by ramakrishnanr on Mar 31, 2009

I'm looking for a way to access name of RuleType (Inbound or Update or Outbound) in a javascript. I couldnt access the RuleType/rules object given in the API document.

Scenario is, I have created a rule in a space and depending on RuleType it calls a javascript(defined in Data Dictionary/Scripts) . I would ideally like to view the RuleType in the javascript so that i can construct an if-else logic to alter the behaviour.  This reduces the dependency to have 3 scripts for each ruletype and have only one script that can alter the behaviour based on the type.

Is it possible to capture the RuleType information in the javascript?

Many thanks.