0

Databind with logic

asked 2010-07-19 09:09:31 +0800

eptx gravatar image eptx
130 3

I have 2 components whose visibility is the inverse of each other...based on a composer variable named controller.zoom. How can I achieve this? Would like something like:

<groupbox id="master" mold="3d" width="100%" visible="@">...</groupbox>
<groupbox id="detail" mold="3d" width="100%" visible="@{controller.zoom}">...</groupbox>

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-07-29 20:03:08 +0800

SimonPai gravatar image SimonPai
1696 1

Hi eptx,

I think the easiest way is to call show()/hide()/setVisible() on these components whenever you change the value of controller.zoom.
Or, maybe you can use Tabbox in accordion mold to achieve a similar effect?

Regards,
Simon

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-19 09:09:31 +0800

Seen: 110 times

Last updated: Jul 29 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More