I found this when lurking about the interwebs looking for a way to check if a field existed in the XML
• To define behavior when the element is present and the value is not null, use the following:
<?if:element_name!=?> desired behavior when the element exists and is not null <?end if?>
• To define behavior when the element is present, but is null, use the following:
<?if:element_name and element_name="?> desired behavior when the element exists but value is null <?end if?>
• To define behavior when the element is not present, use the following:
<?if:not(element_name)?> desired behavior when the element is not present <?end if?>
Survivors of a long and bitter JDE Transform installation (you cant imagine the horror man !! ) Mike , Jamie, Roger and Charlie are Four Developers working with the infinitely superior BI publisher to handle all our ERP produced documents. this blog is a place for us to post all of the fiddly bits foibles and general head scratching we have discovered along the way to help out our fellow code monkeys out there
Tuesday, 1 April 2014
BI Publisher Handy snippets for checking if feilds exist and are populated
Labels:
BI Publisher,
Developer,
Field Exists,
RTF,
XML,
XSL
Location:
Stubbins, Bury, Lancashire BL0, UK
Subscribe to:
Post Comments (Atom)
champion
ReplyDeleteExcellent. Thank you. You made my day :)
ReplyDeleteGlad we could help there Guys :)
ReplyDelete