Hi guys,
I have a question concerning the code that I am using for 2 listboxes.
I have 1. Listbox=SOLWindow.Description which contains values imported from XML. If I select values from this listbox, they should appear in the 2.listbox = SOLlist. This works fine, but what I am trying to do now is when I click in the 1.listbox on the value that I have already selected and populated in the 2. listbox, an error message should appear app.alert("You have already selected this item!"), but I dont even get the values compared with my code.
I would appreciate if anyone could help to find out what is wrong with my code!!
if
(PAGE2.SOLWindow.Description.selectedIndex>=0)
{
newitem
= "";
olditem
= PAGE2.SOLWindow.Description.rawValue;
if(newitem != olditem)
{
SOLlist.addItem(PAGE2.SOLWindow.Description.rawValue);
newitem
= PAGE2.SOLWindow.Description.rawValue;
}
else
{
app.alert("true");
}
}
Thank you in advance!!
Diana