if - else condition in XML Publisher


if - else condition in XML Publisher


Here is a small snippet of XML tags which tells you how to add  if - else condition in XML Publisher RTF template.



Syntax for the same :


<?xdofx: if PRICE ='N' then '' else if DISCNT !='' then DISCOUNT else DISCOUNTAMT end if?>


Here:
  • xdofx is for Extended function syntax.
  • DISCOUNT and DISCOUNTAMT are the XML tags, which displays the values accordingly based on the if - else condition.
The same can be modified according to the requirements.





No comments:

Post a Comment

How to find all cancel Requisitions

SELECT prha . *   FROM po_Requisition_headers_all prha , po_action_history pah   WHERE      1 = 1        AND pah . object_id ...