- From: Jason <jeacott@hardlight.com.au>
- Date: Fri, 19 May 2006 11:17:49 +0930
- To: www-forms <www-forms@w3.org>
Hi all, I tried asking this on the chiba list but no luck there, so maybe someone here can help? If I have an instance containing data like: <xf:instance... <row type="apples" >sometext</row> <row type="pears" >sometextb</row> <row type="apples" >sometextc</row> <row type="oranges" >sometextd</row> .. and I have a repeat displaying sometext apples sometextb pears sometextc apples sometextd oranges how can I also get different controls to show in the repeat based on the value of @type like this? sometext apples (select control) sometextb pears (label control) sometextc apples (select control) sometextd oranges (nothing) so that if type="apples" then show a select otherwise show a label for pears and nothing at all for anything else? if it makes it easier I'll live with just the showing a control for apples or nothing for everything else, but how can it be done? *caveats. 1) All the rows must be submitted so they all need to be relevant 2) I cant change or add to the structure of the instance. 4) preferably an xforms 1.0 solution if it exists. is my only option to try to copy each row to a new instance and bind on that? I still wish xforms had a simple 'if' that could influence the display characteristics of the view, from the view. this sort of thing should be sooo easy, but it rarely is. any thoughts? is this really easy and I'm just missing something? any hints appreciated. thanks Jason.
Received on Friday, 19 May 2006 01:48:04 UTC