Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 34 Oracle Analytics and AI Sharing Center
- 22 Oracle Analytics and AI Lounge
- 276 Oracle Analytics and AI News
- 47 Oracle Analytics and AI Videos
- 16.1K Oracle Analytics and AI Forums
- 6.3K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 99 Oracle Analytics and AI Trainings
- 16 Oracle Analytics and AI 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