DropDown.enabled bug in Omnicore App SDK
Options
Fritz
✭
There seams to be bug in javascript library with "enabled" property of DropDown component. It will generate error on html page:
"Document Load event routine failed. >>> TypeError: Unable to get property '_enabled' of undefined or null reference"
Code in Load event, that generates it, is following:
drpLoggingLevel = new FPComponents.Dropdown_A();
drpLoggingLevel.model =
{
items:
[
"Silent",
"Brief",
"Verbose",
"Debug",
]
};
drpLoggingLevel.selected = 2;
drpLoggingLevel.onselection = doOnLoggingLevelChange;
drpLoggingLevel.enabled = false; // bug in API ? - will generate error
drpLoggingLevel.attachToId("LoggingLevelDropdown");
Tagged:
0
Comments
-
OK, solved it immediately by myself.Writing "enabled" property must be AFTER attaching component to DIV element:drpLoggingLevel.attachToId("LoggingLevelDropdown");drpLoggingLevel.enabled = false;
It might be still bug, as all other components will work either way.
But at least workaround for now.
0
Categories
- All Categories
- 5.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings