Skip to content

Possible bug in ComboBox.RemoveAt #838

Description

@itg-assistant

Andrew Niese asked 2017-05-17 20:14:29 UTC

In a VWG migrated app, we have a page where the user selects from 4 items in a combobox. Depending on previously-entered options on an earlier page, some of those items need to be removed to be made unavailable.

  • Have a startup page that loads another page via Application.MainPage = new frmTestPage

  • frmTestPage should have a ComboBox, with 4 items set at design-time

  • In frmTestPage's load event, run the following code

cboSizeType.Items.RemoveAt(2)
cboSizeType.Items.RemoveAt(1)
cboSizeType.SelectedIndex = 0

Error:

002652 Wisej: index out of bounds: 2 (0..0)
/ProjectName/resource.wx/Wisej.Web/qx.js?v=1.3.65.0:179261 Object.process()
/ProjectName/resource.wx/Wisej.Web/qx.js?v=1.3.65.0:15632 Object.__log()
/ProjectName/resource.wx/wisej.js?v=1.3.65.0:46314 WisejQX.log()
/ProjectName/resource.wx/wisej.js?v=1.3.65.0:1803 WisejCore.log()
/ProjectName/resource.wx/wisej.js?v=1.3.65.0:1757 WisejCore.logError()
/ProjectName/resource.wx/wisej.js?v=1.3.65.0:7553 wrapper.setState()
/ProjectName/resource.wx/wisej.js?v=1.3.65.0:46348 Object.createComponent()
/ProjectName/resource.wx/wisej.js?v=1.3.65.0:45836 WisejQX.createComponent()

It seems WiseJ is not recognizing that there is an item at that position.  See attached test-case.

Thanks,

Andrew

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions