on 01-16-2008 3:18 AM
Gurus,
I am using sql query template and getting data as 0/1 for one column from table.
I want to show 0 as FALSE and 1 as TRUE in the iGrid.
I didn't ever use the tranform tab . Do i have to write any xslt for my query??
Or
do i have to just change the query to get that simple transformation?
Any ideas??
Please help.
Thanks
Vansi
Don't use XSL, use the xMII Business Logic Services (BLS). Simply create a calculated column that uses the "stringif()" function.
In general, avoid using XSL for transformations unless the desired output is something other than xMII XML structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case you should leverage SQL syntax instead of creating more work for yourself.
The iGrid will obviously only display what comes back in the query, so try this:
SELECT (CASE WHEN MyColumn = 1 THEN 'TRUE' ELSE 'FALSE' END) AS Status FROM MyTable
Regards,
Jeremy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your best bet is to look at the help documentation for 11.5, there are several predefined xsl examples detailed there, and the wwwroot/Illuminator/Stylesheets directory has several examples for a point of reference.
The InlineTransform tab is where you would apply this xsl file to your raw query data and it would need to take the Rowsets/Rowset/Row and produce the new desired Rowsets/Rowset/Row results. This functionality pre-dates BLS, and it will probably be easier for you to use the action blocks to do your transformations.
Regards,
Jeremy
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.