Making a variable invisiable at runtime

Stimulsoft Reports.WEB discussion
Post Reply
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Making a variable invisiable at runtime

Post by MikeD »


I have a variable I'm using as a label.

I want to make this variable invisible if the text below it is blank (i.e. string.empty).

The text below is from a field in the database called fieldname. So whenever fieldname == string.empty I want the variable I use as a label to be invisible.

I see there's a condition property. But I have no idea how to use it. There is ZERO documentation on this property.

Any help would be greatly appreciated.


Mike
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Making a variable invisiable at runtime

Post by Andrew »

Hello,

Sorry it seems we do not exactly understand your request. Could you, please describe your task in more details or rephrase it somehow.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Making a variable invisiable at runtime

Post by MikeD »


I created a variable...and then put the variable on the report in the databind.

The variable is used as a label.

Below the variable is a data field.

What I want to know is....IF the data field value is "" I want to make the variable invisible.


MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Making a variable invisiable at runtime

Post by MikeD »

I figured it out.

By using the condition statement as a expression I was able to get it to work.

SQLTable.FieldName == ""


Then clicked off the Enabled button for the above condition.


Finding new things all the time.....great product.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Making a variable invisiable at runtime

Post by Andrew »

Excellent!
Post Reply