This content has been marked as final. Show 5 replies
I guess it should be within an if tag or a choose tag
Replace the bold with the condition
1) Using if - acts like the if statement in ordinary programming lang
<xsl:if test="*string-length(.) != 0* ">
2) Using Choose - acts like the if else statement in oridinary programming lang
<xsl:when test="*string-length(.) != 0* ">
Display Custom message
Hope this helps
Edited by: user10979469 on Dec 16, 2009 12:51 PM
I tried the example you suggested on the group property of the section of the report I wanted to conditionally return and it did not work. This is the code I used:
<xsl:if test="VENDORREMITTTOHOLD != 'x' ">
I'm not sure if I'm in the right place to use this code. I'm relatively new to BI PUBLISHER and I appreciate your assistance.
What if I wanted to evaluate 'x' using a variable (in my example replacing '17'). What might the syntax be? I tried so many different ways, just not getting it.
Say I have this Separate Remittance report: I want to exclude any checks that have less than 18 invoices per check. I don't want to use 17 as a hard coded value. v_inv_count does in fact return 17 as I have it in my output at the G_SEL_INV_DATA level. I see it in the output. But I want to use this variable to help determine if the section should be displayed.
--The below returns what I want.
<xsl:variable xdofo:ctx="incontext" name="v_inv_count" select="/APXPBSRA/C_INV_PER_STUB"/>
<?for-each@section:G_SEL_CHECKS[./C_INV_PER_CHK > '17']?>
Edited by: OSUBeavers on Feb 15, 2010 3:53 PM
Edited by: OSUBeavers on Feb 15, 2010 3:55 PM