What are the rules for calling addIdItem for ComboBox? I am trying to dynamically create new combobox items at a later time and I get "unknown action" error. When I call addIdItem at the scene creation it works fine.
unknown action: addiditem for ComboBox
-
-
What are the rules for calling addIdItem for ComboBox? I am trying to dynamically create new combobox items at a later time and I get "unknown action" error. When I call addIdItem at the scene creation it works fine.
try this :Zitat -
Hi,
the calling context/environment is important here!
When the actions/the code will be called from an event from the plugin itself, then it is possible to access the attributes and actions from the plugin directly.
e.g.But when the actions will be called from an other plugin or an 'unrelated' action, then it is necessary to specify the 'full path/address' (like 'plugin[name].action()') to the plugin action/attribute.
e.g.Code<plugin name="combobox" ... <plugin name="test" ... onclick="plugin[combobox].addIdItem(...);" ...
Best regards,
Klaus
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!