Page 1 of 1

Expressions

Posted: Thu Nov 15, 2012 11:53 am
by Vitaliy
Hi,

I want to highlight empty text.

I do next, in text.condition i use expression IIF(Drv=="",true,false), where Drv is variable. Below i choose back color and border All.
In xml it's look like

<Text64 Ref="76" type="Text" isKey="true">
<Border>All;Black;1;Solid;False;4;Black</Border>
<Brush>[255:255:255]</Brush>
<ClientRectangle>164,92,34,4</ClientRectangle>
<Conditions isList="true" count="1">
<value>_x007B_IIF_x0028_Drv_x003D__x003D__x0022__x0022__x002C_true_x002C_false_x0029__x007D_,Black,[230:230:230],Arial_x002C_8,True,False,,_x005B_None_x005D_,All,BackColor_x002C__x0020_Borders</value>
</Conditions>
<Editable>True</Editable>
<Font>Calibri,9</Font>
<Margins>0,0,0,0</Margins>
<Name>Text64</Name>
<Page isRef="2"/>
<Parent isRef="2"/>
<Text>{Drv}</Text>
<TextBrush>Black</TextBrush>
</Text64>

But result is not as i expect. Can you help with
_x007B_IIF_x0028_Drv_x003D__x003D__x0022__x0022__x002C_true_x002C_false_x0029__x007D_,Black,[230:230:230],Arial_x002C_8,True,False,,_x005B_None_x005D_,All, BackColor_x002C__x0020_Borders

Re: Expressions

Posted: Thu Nov 15, 2012 1:52 pm
by HighAley
Hello.

In the condition you should write the expression you want to evaluate. In your case it is

Code: Select all

Drv==""
Thank you.

Re: Expressions

Posted: Fri Nov 16, 2012 4:52 am
by Vitaliy
It doesn't help.

If i choose "Bad" style in combobox the Text is highlighting but no border.

Re: Expressions

Posted: Fri Nov 16, 2012 10:43 am
by HighAley
Hello.

We couldn't reproduce your issue on the last prerelease build.
What version do you use?
Please, check the latest prerelease build.

Thank you.

Re: Expressions

Posted: Mon Nov 19, 2012 10:41 am
by Vitaliy
Hi,

<ReportVersion>2012.2.1400</ReportVersion>

Re: Expressions

Posted: Mon Nov 19, 2012 10:59 am
by HighAley
Hello.

The latest prerelease build is 2012.3.1410. Please download it from our site. http://www.stimulsoft.com/en/downloads#prereleases

Thank you.