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

 

Page displays one conditional block while loading, but i am expecting the other

Started by UseCog, 19 Sep 2008 06:11:07 AM

Previous topic - Next topic

UseCog

Hi All,

I have a Boolean variable created for controlling 2 conditional blocks based on the selection from a value prompt (dropdown with 2 static values Graph and Table, and this value prompt is not in prompt page and is at the top of the page) list on the page. I have added 2 conditionals blocks and I have a GRAPH on one and a TABLE on another conditional block. This is working correctly as per the selection from value prompt. But my problem is when the page is loaded it is by default showing me the table and I want the graph to be displayed.

Some more information : Current block is Yes for the conditional block for TABLE and No for conditional block GRAPH. Used same Boolean variable for both conditional blocks. Definition of Boolean variable is ParamDisplayValue('DataToView')="Graph"

Could some body tell me what the issue is here? Thanks in advance.

jethro89

Are you setting the default value of the drop down to GRAPH as the page loads? It seems like the page loads, and there is no value for that variable, so when the conditional runs, the value is no, so the table shows up. Another thing to try is to use a string instead of a boolean. Match the value, and for your default condition show the graph.
Hope this helps.

UseCog

Thanks Jeethro,

I tried by setting default value of the dropdown to GRAPH, but it was not working.

I got it corrected by swapping GRPAPH to and TABLE between conditional blocks, obviously changed the variable definition as well.

But is any way to 'initialize' the value of the conditional variable when the page loaded at the first time.

Thanks,
UC