Hi...
In my datasource, in one column the data is returened is True or false and according to that i have to print yes or no.....
How to do???
i knw i have to use the event called before print but how to do????
i mean what code to write exactly to change the text????
in report the text is printed as True or false....
Please suggest soon...
Thanks...
Changing the value in datasource????
Changing the value in datasource????
You can use the Text Format property of the text component to format the values of your boolean column


Changing the value in datasource????
thanks...its working...
but i have another question....If it was not boolean and some word like 'xyz' and 'abc' and 'klm'......if i am getting these word in datasource...
n then i want to display some word against these word.....like instead of 'xyz' i want to display 'red' and yellow instead of 'abc'...
then how to do???? can't this done in beforeprint event with the help of 'if' statment?????
but i have another question....If it was not boolean and some word like 'xyz' and 'abc' and 'klm'......if i am getting these word in datasource...
n then i want to display some word against these word.....like instead of 'xyz' i want to display 'red' and yellow instead of 'abc'...
then how to do???? can't this done in beforeprint event with the help of 'if' statment?????
Changing the value in datasource????
Hello,
You can use ternary operation in expression:
{MyDataSource.Value == true ? "Value1" : "Value2"}
Thank you.
You can use ternary operation in expression:
{MyDataSource.Value == true ? "Value1" : "Value2"}
Thank you.
Re: Changing the value in datasource????
Hello,
How to implement this using Javascript?
How to implement this using Javascript?
-
- Posts: 7341
- Joined: Tue Mar 20, 2018 5:34 am
Re: Changing the value in datasource????
Hello,
Please check the following article:
https://stimulsoft.zendesk.com/hc/en-us ... cript-code
Thank you.
Please check the following article:
https://stimulsoft.zendesk.com/hc/en-us ... cript-code
Thank you.