How to access page caller within XPATH

0
Also newbie question I think: I have a page with caller object "O1". On this page I have created a data grid where I want to list all objects "O2" that refer to "O1". When I create the data grid, I select source to be "database" and entity to be "MyFirstModule.O2". Then I want to set the XPATH to be something like: [MyFirstModule.O2_O1 = $O1] However, O1 can not be referred to at this stage, even though it is the caller of the page. Why? And how can I do this?
asked
3 answers
0

In an XPatch, try

'[%CurrentObject%]'

instead of $O1

answered
0

You could refer to the encompassing object (ie, the object of the dataview encompassing the grid, which based on your post is entity O1) using the '[%CurrentObject%]' token which you should get as option when using Ctra+Shift. Your XPath should end up looking something like this then:

[ModuleName.O2_O1 = '[%CurrentObject%]' ]

On a sidenote for this particular case, assuming you have a reference from O2 to O1, you could also use the connector menu or bring up the 'Entity (path)' menu from the data grid properties, and use it to select the entity path you are trying to follow. (Meaning you don't need to write an XPath for this)

answered
0

Thanks that worked!

answered