Topic
  • 3 replies
  • Latest Post - ‏2012-11-27T12:40:00Z by SystemAdmin
SystemAdmin
SystemAdmin
1305 Posts

Pinned topic Using Q language in ReporterPLUS to check an attribute in a parent node.

‏2009-03-23T02:27:29Z |
I have to check the value of an attribute in a parent node in reporterPLUS to for evaluating a conditional statement for outputting attributes of a child node. How do you use the Path notation to navigate to these parent attributes and get the values?

Thanks

-Bryan
Updated on 2012-11-27T12:40:00Z at 2012-11-27T12:40:00Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Using Q language in ReporterPLUS to check an attribute in a parent node.

    ‏2009-03-23T10:17:19Z  
    The below query evaluates the parent's attribute (patt) and then gives the child attribufte' name if TRUE else gives nothing.

    if there_exists x in owner->baseClassifiers->attribute => $name = "patt" and $attDefaultValue = "20" then $name else ""

    Hope this helps,
    Vip
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Using Q language in ReporterPLUS to check an attribute in a parent node.

    ‏2009-03-23T12:20:23Z  
    The below query evaluates the parent's attribute (patt) and then gives the child attribufte' name if TRUE else gives nothing.

    if there_exists x in owner->baseClassifiers->attribute => $name = "patt" and $attDefaultValue = "20" then $name else ""

    Hope this helps,
    Vip
    That is exactly what I was looking for, an example, thanks alot.

    -Bryan
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Using Q language in ReporterPLUS to check an attribute in a parent node.

    ‏2012-11-27T12:40:00Z  
    That is exactly what I was looking for, an example, thanks alot.

    -Bryan
    I'm using Version 7.6.1.2 and I can't seem to get the above solution to work. How would this expression look in that version?