Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    FilterBuilder setDataSource()

    Code:
      let testDS = isc.DataSource.create({
      ID: 'countryDS',
      fields: [{
      name: 'countryName',
      title: 'Country'
      }, {
      name: 'countryCode',
      title: 'Code'
      }, {
      name: 'independence',
      title: 'Independence',
      type: 'date'
      }, {
      name: 'population',
      title: 'Population',
      type: 'integer'
      }, {
      name: 'gdp',
      title: 'GDP ($B)',
      type: 'float'
      }],
      clientOnly: true,
      testData: countryData
      })
        let filterBuilder = isc.FilterBuilder.create({})
     filterBuilder.setDataSource(testDS)
    When I try to run the above code snippet, I get the following error:
    Code:
    Uncaught TypeError: Cannot read property 'name' of undefined
        at Object.isc_c_DynamicForm_getDefaultOperatorForType [as getDefaultOperatorForType] (ISC_Forms.js:207)
        at _3.isc_FilterClause_setupClause [as setupClause] (ISC_DataBinding.js:3249)
        at _3.isc_FilterClause_initWidget [as initWidget] (ISC_DataBinding.js:3224)
        at _3.isc_Canvas_init [as init] (ISC_Core.js:2141)
        at _3.isc_Class_createAutoChild [as createAutoChild] (ISC_Core.js:365)
        at _3.isc_FilterBuilder_addNewClause [as addNewClause] (ISC_DataBinding.js:3337)
        at _3.isc_FilterBuilder__setCriteria [as $155t] (ISC_DataBinding.js:3354)
        at _3.isc_FilterBuilder__createForm [as $211] (ISC_DataBinding.js:3336)
        at _3.isc_FilterBuilder_rebuild [as rebuild] (ISC_DataBinding.js:3328)
        at _3.isc_FilterBuilder_setDataSource [as setDataSource] (ISC_DataBinding.js:3314)
        at _testDefault (testExperimental.js:2038)
        at testExperimental (testExperimental.js:208)
        at AppMenu.js:132
        at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js:283)
        at _3.isc_c_Timer__fireTimeout [as $in] (ISC_Core.js:1417)
        at ISC_Core.js:1414
    Version: v11.0p_2017-06-08/LGPL Development Only

    Is it a problem with FilterBuilder, or should I add something ?

    #2
    We've fixed problem.

    You can test it with next build (2017-06-09).

    Comment

    Working...
    X