W3C home > Mailing lists > Public > www-forms@w3.org > May 2006

Re: hiding controls

From: David Landwehr <david.landwehr@solidapp.com>
Date: Fri, 19 May 2006 07:03:44 +0200
Message-ID: <446D51B0.1050203@solidapp.com>
To: jeacott@hardlight.com.au
Cc: www-forms <www-forms@w3.org>

Hi Jason,

You could do it like:

<xforms:repeat nodeset="row">
  <xforms:group ref="self::node()[@type='apples']">
    <xforms:select ref="self::node()"><xforms:label/></xforms:select>
  <xforms:group ref="self::node()[@type='pears']">
    <xforms:output ref="self::node()"/>
  <!-- oranges will not have a control bound -->

This works since the group's relevance will be toggled (only in the UI) 
based on the predicate (e.g. if @type isn't apples then the first group 
will not be bound and hence irrelevant and not displayed to the user).

Out of interest what did your solution look like?

Best regards,

Jason wrote:
> re my hiding issue.
> I figured it out. thanks anyway.
> but I couldn't do it without adding a new entity in my instance.
> if anyone knows how I could have done it without the model change 
> please  let me know.
> regards.
> Jason.

David Landwehr (david.landwehr@solidapp.com)
Chief Executive Officer, SolidApp
Web: http://www.solidapp.com
Office: +45 48268212
Mobile: +45 24275518
Received on Friday, 19 May 2006 05:03:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC