[Laszlo-user] Simple binding breaks in <window>
circlecycle@gmail.com
circlecycle at gmail.com
Wed Jul 11 15:20:30 PDT 2007
You might have caught this by now, but you need to use parent in the
constraint, e.g. ${!parent.autoSuggest.value}. This is because
checkbox is not a child of button.
On Jul 11, 2007, at 6:06 PM, Yang wrote:
> I'm using LPS4.0.2 and I have a simple binding between a
> checkbox.value and a button.enabled. As soon as I put this in a
> window, it breaks:
>
> <window name="control" width="150"
> allowdrag="false" resizable="false" title="Control">
> <simplelayout axis="y"/>
> <checkbox name="autoSuggest" width="100%" text="Auto-suggest"/>
> <button text="Suggest" width="100%" enabled="${!
> autoSuggest.value}"/>
> </window>
>
> I get the following Debug errors:
>
> ERROR: copy-of-hello.lzx:21: reference to undefined variable
> 'autoSuggest'
> ERROR: copy-of-hello.lzx:21: undefined object does not have a
> property 'value'
> WARNING: copy-of-hello.lzx:21: reference to undefined property 'value'
>
> Thanks in advance for any hints.
More information about the Laszlo-user
mailing list