simple one

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

simple one

ScottM
Hi, not been writing code for a while, how do I add  && in a dynamic binding

this is the code

<s:CheckBox id="overlapCheckBox"
         scaleX="1" scaleY="1"
         selected="{data.overlapReading}"
         horizontalCenter="0"
         verticalCenter="0"
         visible="{data.accountType != 1 }"
         click="changePlacement(event)"
         skinClass="com.peach.uofs.common.StudentPlacementCheckBoxSkin"/>


i want  visible="{data.accountType != 1  && data.aPage  }"



Reply | Threaded
Open this post in threaded view
|

Re: simple one

Willem-Paul Stuurman - RecruitmentTechnologies.com
Hi Scott, just escape any & into &amp;

The binding is basically an XML attribute and & is not allowed in there.

Cheers,

WP


> On 14 Dec 2018, at 21:10, scott matheson <[hidden email]> wrote:
>
> Hi, not been writing code for a while, how do I add  && in a dynamic binding
>
> this is the code
>
> <s:CheckBox id="overlapCheckBox"
>         scaleX="1" scaleY="1"
>         selected="{data.overlapReading}"
>         horizontalCenter="0"
>         verticalCenter="0"
>         visible="{data.accountType != 1 }"
>         click="changePlacement(event)"
>         skinClass="com.peach.uofs.common.StudentPlacementCheckBoxSkin"/>
>
>
> i want  visible="{data.accountType != 1  && data.aPage  }"
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: simple one

kamcknig
In reply to this post by ScottM
You can use encoded ampersands like this:

visible="{data.accountType != 1 &amp;&amp; data.aPage  }"



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: simple one

ScottM
Thats is  thanks

> On 14 Dec 2018, at 20:43, kamcknig <[hidden email]> wrote:
>
> You can use encoded ampersands like this:
>
> visible="{data.accountType != 1 &amp;&amp; data.aPage  }"
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: simple one

hbchugo
is true:
 backgroundColor="{data.estado==0 &amp;&amp; 1==1? 0x4776C5:0x855811}"



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/