Sie sind nicht angemeldet.

1

Freitag, 16. September 2011, 07:09

Count Item in ComboBox Plugin

Hi,
Is there any possibility to count the items in combobox plugin. What i required is that if there is only one item in combobox I want to remove that plugin in xml load complete.
something like this

<events onxmlcomplete="if(plugin[SwitchCombo].RowCount()==1,removeplugin(SwitchCombo));" onpreviewcomplete="" onloadcomplete="action(fullscreen);" onenterfullscreen="action(enterfullscreen);" onexitfullscreen="action(exitfullscreen);" />

<plugin name="SwitchCombo" url="plugins/combobox.swf" alturl="plugins/combobox.js" keep="false" align="lefttop" width="100" x="0" y="0" onloaded="action(AddFloor);" />
<action name="AddFloor"> removeall();additem(pano-01,'');</action>

Thanks

2

Mittwoch, 21. September 2011, 18:12

Hi,

you can get the count of the items via:

Quellcode

1
plugin[comboboxname].item.count


best regards,
Klaus