This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > October 2005 > xforms - select1 itemset+insert - supported?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author xforms - select1 itemset+insert - supported?
GSO

2005-10-06, 6:42 pm

The following works up to the insert. Is a select1 itemset 'insert'
not supported then as yet or has my code got bugs in it?

Standard routine of initialising a select1 with instance data (using
itemset) with insert/delete procs as well e.g.:


<xf:model id="listitems">
<xf:instance>
<data xmlns="">
<listitem>1</listitem>
<listitem>2</listitem>
<listitem>3</listitem>
</data>
</xf:instance>
</xf:model>

<xf:select1>
<xf:label>Choose</xf:label>
<xf:itemset model="listitems" nodeset="/data/listitem">
<xf:label ref="."/>
<xf:value ref="."/>
</xf:itemset>
</xf:select1>

<xf:trigger>
<xf:label>Insert</xf:label>
<xf:action ev:event="DOMActivate">
<xf:insert model="listitems" nodeset="/data/listitem" at="1"
position="before"/>
<xf:setvalue ref="/data/listitem[1]">0</xf:setvalue>
</xf:action>
</xf:trigger>


Thx (xforms is awsome :)


GSO

Allan Beaufour

2005-10-07, 6:54 am

Thursday 06 October 2005 23:31 skrev GSO:
> The following works up to the insert. Is a select1 itemset 'insert'
> not supported then as yet or has my code got bugs in it?


Something's wrong in the processor as far as I can see. I've created a bug for
it:
https://bugzilla.mozilla.org/show_bug.cgi?id=311475

--
Allan Beaufour
Linux Software Engineer

Novell, Inc.
Software for the Open Enterprise
www.novell.com/open
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews