jocsch
10-17-2004, 12:45 PM
Imagine following situation:
<dataset name="items">
<item name="item1"/>
<item name="item3"/>
<item name="item2"/>
<item name="item4"/>
</dataset>
These are displayed in a list via data replication. The user should be able to reorder the items in the dataset, eg. move item2 one up.
Is it possible to do this in the dataset? I can't find a method to create a node in a specific position (so insert item2 after item1 && delete old item2 seems not to be possible).
Or is it awkward to depend on an order of the XML elements (and therefor neccessary to introduce an "order" attribute)?
Thanks,
Markus
<dataset name="items">
<item name="item1"/>
<item name="item3"/>
<item name="item2"/>
<item name="item4"/>
</dataset>
These are displayed in a list via data replication. The user should be able to reorder the items in the dataset, eg. move item2 one up.
Is it possible to do this in the dataset? I can't find a method to create a node in a specific position (so insert item2 after item1 && delete old item2 seems not to be possible).
Or is it awkward to depend on an order of the XML elements (and therefor neccessary to introduce an "order" attribute)?
Thanks,
Markus