Search This Blog

Tuesday, February 8, 2011

Writing If statement in XML Publisher: An example

Consider there is a field which will display negative and positive amount while the XML report is rendered. Now we have to insert a condition to make it to display Zero, when the amount is a negative value.

Before inserting the If condition to cater the above requirement:

After inserting the If condition:

Try to avoid spaces while writing the code. Main concepts to understand here is the Get_Variable and Set_Variable.

No comments:

Post a Comment