>
> So you are getting the data for the checkboxes from a SQL database
> and then
> after you build your repeating nodeset you write that data to eXist?
>
> Do you have a sample on how you did that?
>
> thanks
> il
>
> Hank Ratzesberger wrote:
>>
>>
>> Yes, this data is essentially relational tables "dumped" to xml,
>> and put into eXist.
>>
>> However, this "table" is small. I load it as shared instance.
>> It is the <repeat ref="for ... return $node"> the does the
>> filtering of what to display.
>>
>> Otherwise, I would need to send a submission to update the
>> displayed list. And actually, I did that at first also,
>> the data was in a different widget:tab, and updated the
>> instance on the xforms-select event.
>>
>> --Hank
>>
>>
>> On Jun 12, 2008, at 10:51 AM, ilango_g wrote:
>>
>>>
>>> Hi Hank
>>> I have just constructed a multiple column checkbox list and would
>>> like to
>>> use a lookup table with this.
>>> Right now, I use an XML file to populate the values of my
>>> checkboxes.
>>>
>>> Are you maintaining a code table in eXist or something?
>>>
>>> thanks
>>> il
>>>
>>> Hank Ratzesberger wrote:
>>>>
>>>>
>>>> As I have said before, OF is such a terrific environment
>>>> to work with XML. One is able to use all of XPath 2.0 in
>>>> pipelines and XForms, and then it just works.
>>>>
>>>> For example, was able to build a list of select's (checkboxes)
>>>> that all updated the same reference/node. Have that node
>>>> automatically calculated into a sequence, and use the sequence
>>>> in a kind of lookup table to another set of data. Check the
>>>> box, and automatically the list grows/shrinks with items that
>>>> are related by the key.
>>>>
>>>> I have a larger snippet of code, but when OF handled this
>>>> XPath with sequences and filters:
>>>>
>>>> for $uid in $sequence, $node in //some-nodes[uid=$uid] return
>>>> $node
>>>>
>>>> and redrew the list...WOW
>>>>
>>>> Cheers,
>>>> Hank
>>>>
>>>>
>>>> <xforms:instance id="select">
>>>> <select xmlns="">
>>>> <uids/>
>>>> <uids-seq/>
>>>> </select
>>>> </xforms:instance>
>>>>
>>>> <xforms:bind nodeset="instance('select')">
>>>> <xforms:bind nodeset="uids-seq" calculate="string-join(tokenize
>>>> (../
>>>> uids,'\s'),',')"/>
>>>> </xforms:bind>
>>>>
>>>> <table>
>>>> <xforms:variable name="uids-seq" select="instance('all-select')/
>>>> uids-seq"/>
>>>> <xforms:repeat nodeset="for $uid in $uids-seq, $node in //some-
>>>> nodes[uid=$uid] return $node">
>>>> <tr>
>>>> <td> <xforms:output value="uid"/> </td>
>>>> <td> <xforms:output value="some-attribute"/> </td>
>>>> </tr>
>>>> </xforms:repeat>
>>>> </table>
>>>>
>>>>
>>>> Hank Ratzesberger
>>>> NEES@UCSB
>>>> Institute for Crustal Studies,
>>>> University of California, Santa Barbara
>>>> 805-893-8042
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the
[hidden email]
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:
[hidden email]
>>>> For general help: mailto:
[hidden email]?subject=help
>>>> OW2 mailing lists service home page:
http://www.ow2.org/wws>>>>
>>>>
>>>
>>> --
>>> View this message in context:
http://www.nabble.com/Only-WOW%21->>> tp17803191p17805836.html
>>> Sent from the ObjectWeb OPS - Users mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
[hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:
[hidden email]
>>> For general help: mailto:
[hidden email]?subject=help
>>> OW2 mailing lists service home page:
http://www.ow2.org/wws>>
>> Hank Ratzesberger
>> NEES@UCSB
>> Institute for Crustal Studies,
>> University of California, Santa Barbara
>> 805-893-8042
>>
>>
>>
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
[hidden email]
>> mailing
>> list.
>> To unsubscribe: mailto:
[hidden email]
>> For general help: mailto:
[hidden email]?subject=help
>> OW2 mailing lists service home page:
http://www.ow2.org/wws>>
>>
>
> --
> View this message in context:
http://www.nabble.com/Only-WOW%21-
> tp17803191p17807508.html
> Sent from the ObjectWeb OPS - Users mailing list archive at
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the
[hidden email]
> mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws