Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Bi Publisher: Referring parent/child elements in xdofx

Summary
Bi Publisher: Referring parent/child elements in xdofx
Content
Hi,
I am trying to create an RTF template wherein a field value should use different elements based on a condition. I am using the below construct:
<?xdofx:if SupplierNumber='XXX' then Name else AddressLine1 end if?>
The elements Name and AddressLine1 are at different levels (Payee/Name, Payee/Address/AddressLine1). The condition is working fine but I am not sure if this will cause any issue as the element names are not given complete path and hence might refer to another XML element with the same names.
Could someone tell how we can refer to an element name within xdofx tag ensuring it picks up the correct path - may be using XPath or something?
Thank you,
Answers
-
Hi,
Thanks, but giving XPaths within the xdofx:if is not working.
Thanks,
0 -
upload Template
0 -
If you are in child group want to access the parent group element then you can use <.//ELEMENT_NAME> if you are two level down you can use <../../ELEMENT_NAME> and so on(depends on which level you are)
In reverse if you are in Parent tag and want to access the child element then you can specify the number in group e.g. G_DEPT/G_EMP[2]/EMP_NAME in that under the department group there will be many employees but it will pick the second employee name since we specified G_EMP[2]
1