If you are unable to create a new account, please email support@bspsoftware.com

 

what is the difference between render variable and conditional block

Started by inu, 08 Sep 2014 05:03:02 AM

Previous topic - Next topic

inu

Hi
For hiding capabilities , we can use conditional block as well as render variable for the same purpose. Then when i need to go for conditinal block and when render variable.
Performance wise which one is better and how.

Please elaborate it guys...........


Thanks
Inam

Francis aka khayman

if you need a NOT condition, better go for conditional block. render variables can only go 1 way.

for example:
a report that display Chart A if prompt parameter selected is 'A', otherwise display Chart B

if you use render variable you need two variables:
renderVar1 = ?parameter? = 'A'
renderVar2 = ?parameter? = 'B'

then set Chart A for variable renderVar1 and Chart B for variable renderVar2

if you use conditional block you only need
renderVar1 = ?parameter? = 'A'

set this variable in your conditional block.

inu

Quote from: khayman on 08 Sep 2014 05:09:28 AM
if you need a NOT condition, better go for conditional block. render variables can only go 1 way.

for example:
a report that display Chart A if prompt parameter selected is 'A', otherwise display Chart B

if you use render variable you need two variables:
renderVar1 = ?parameter? = 'A'
renderVar2 = ?parameter? = 'B'

then set Chart A for variable renderVar1 and Chart B for variable renderVar2

if you use conditional block you only need
renderVar1 = ?parameter? = 'A'

set this variable in your conditional block.

Not like that , if we use render variable, we dont need to create more vaiable.
Suppose list , chart and both are requirement to show to the user. if user selects 'list' in prompt page, it will display list only, if 'chart', chart will display, if 'both'. then list and chart both will be displayed.
To get the required result, we need to create only one variable. but value will be 3. list , chart and both.
For clarification i m sharing you screen shot.

Thanks
Inam

Francis aka khayman


inu

Quote from: khayman on 08 Sep 2014 10:15:05 PM
Oh man you really got me there  :-[ *sarcasm*

no khayman,
I m not insulting you man, there is dicussion only,


Cheers!
Inam

Francis aka khayman

just kidding. for the sake of discussion... try using a Boolean Variable instead of string.

inu

Quote from: khayman on 09 Sep 2014 03:20:13 AM
just kidding. for the sake of discussion... try using a Boolean Variable instead of string.


You r changing the topic, i asked a simple thing, you moved me somewhere else.
i want a solution against my query rather than debating with u.

Lynn

Quote from: inu on 09 Sep 2014 05:17:07 AM

You r changing the topic, i asked a simple thing, you moved me somewhere else.
i want a solution against my query rather than debating with u.

Seems to me that Khayman gave you a valid response yet you are once again being rude to someone who is trying to help you. There will soon be little reason for you to post here. People will simply stop responding to you.

Also, how is this thread fundamentally different from the other one asking about render variable vs style variable? They are all related to achieving similar objectives yet you dismiss the Muppet respectfully requesting that you refrain from double posting.
http://www.cognoise.com/index.php/topic,25850.0.html

MFGF

Quote from: inu on 09 Sep 2014 05:17:07 AM

You r changing the topic, i asked a simple thing, you moved me somewhere else.
i want a solution against my query rather than debating with u.

Inu,

Sigh. We have had to address rude posts from you several times over the past few months. It is completely unacceptable for you to behave in this way to people who are freely trying to help you, and you have been made aware of this on many occasions. Despite many warnings and many apologies from you, your bad attitude and rudeness to other forum members appears unabated.

It seems that warnings and requests to behave politely are not enough to persuade you to change your behaviour. I'm giving you a three-day ban, while you consider your attitude and behaviour moving forwards. It is a very sad day for me to have to ban an active member of this community, but your continued rudeness towards other forum members leaves me no choice. You will be able to log back in again and ask questions once your ban expires, so it's a temporary exclusion this time. It's your final chance, though. Unless your behaviour changes, the next reprimand after this will be a permanent ban.

MF.
Meep!