Save the state of an editable listbox
i created listbox has number of elements in , created "up" , "down" arrows allow user move elements within listbox specify order want. problem have when save document state of list box not preserved. below code used save allow user move elements or down. please let me know if possible save state or if have find solution requirement.
try
{
if(listbox1.selectedindex>0)
{
var selecteditem = listbox1.items.nodes.item(listbox1.selectedindex)
listbox1.items.nodes.insert(selecteditem,listbox1.items.nodes.item(listbox1.selectedindex- 1))
}
}catch(e)
{
app.alert(e+'');
}
usually checking setting automatically option "preserve scripting changes form when saved" in form properties , default tab.
thanks
srini
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment