Skip to main content
1-Visitor
October 23, 2012
Solved

Context in OIR

  • October 23, 2012
  • 1 reply
  • 1953 views

How can I test in which Context (Product) I am in an OIR?

Tried some EqualsTest[String] but nothing worked so far.

How MyProductName should be represented to construct a valid test below?

Or is there a way to do String comparison?

<Value algorithm="wt.rule.algorithm.CaseBranch">
<Value algorithm="wt.rule.algorithm.EqualsTest">
<Attr id="containerReference"/>
<Arg>MyProductName</Arg>
</Value>
<Arg>Default</Arg>
<Arg>Basic</Arg>
</Value>

Thanks

Best answer by ew_01

tested with <Attr id="containerName"/>, this seems to be the Product name

1 reply

ew_011-VisitorAuthorAnswer
1-Visitor
October 25, 2012

tested with <Attr id="containerName"/>, this seems to be the Product name