Categories
- All Categories
- Oracle Analytics Learning Hub
- 19 Oracle Analytics Sharing Center
- 18 Oracle Analytics Lounge
- 232 Oracle Analytics News
- 44 Oracle Analytics Videos
- 15.9K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 87 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
substr method not working in BIP RTF template reports.
 
            Hi Everyone,
I am trying get count of a column which is starting with a value 'zero'.
Code is : For loop : <?xdoxslt:if substr(COLUMN4,1,1)=0 then xdoxslt:set_variable($_XDOCTX, 'count', (xdoxslt:get_variable($_XDOCTX, 'count')+1),0)?> End loop. <?xdoxslt:get_variable($_XDOCTX, 'count')?>
Getting count is zero and the loop is not going into if statement, can any one check once please, what is the problem in above code.
Thanks,
Prem
Comments
- 
            Sample XML: <table> <G1> <COLUMN4>09999999</COLUMN1> <COLUMN2>ABC</COLUMN2> </G1> <G1> <COLUMN4>08999999</COLUMN1> <COLUMN2>XYZ</COLUMN2> </G1> </G1> <G1> <COLUMN4>9999999</COLUMN1> <COLUMN2>XYZ</COLUMN2> </G1> </table> From above xml, there are two records the column4 starting with 0 and should get the same in count in rpt also. 0
- 
            0