Announcement

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

    Error? comboBox and select with REST datasource dataValue, displayValue, sortValue

    Hi, I have problems using listGrid with select and comboBOX using REST datasource with dataValue, displayValue, sortValue, see below:

    Regarding comboBox
    Code:
    // Working fine - with same field in valueField and and displayField!
    {name:"Username1", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", valueField:"MWCompanyName", displayField:"MWCompanyName"},
    {name:"Username2", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", valueField:"MWCompanyAlias", displayField:"MWCompanyAlias"},
    
    
    // Not working - when having different fields on valueField and displayField
    // The listGrid is not loading att all and the app is hanging, can see in my REST
    // logs that no REST request for the listGrid is arriving.
    {name:"Username", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", valueField:"MWCompanyName", displayField:"MWCompanyAlias"},
    With a select instead of comboBox neither of 3 above examples are working with my REST datasource.

    I can neither get sortValue to work, displayField are shown as order in DB.
    Code:
    {name:"Username1", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", sortField:0, valueField:"MWCompanyID", displayField:"MWCompanyID"},
    also tried sortField:"MWCompanyID" with same negative result.


    I am using SmartClient_v82p_2012-05-08_Pro

    /Johan

    #2
    Hi, I noticed that same issue works fine togheter with a dynamicForm. /Johan

    PS I also noticed that sortField:"MWCompanyName" works fine with dynamicForm, but not sortField:1 or sortFieldNum:1. DS
    Last edited by jnorden; 14 May 2012, 07:14.

    Comment


      #3
      Log results from showConcole

      "
      23:59:45.591:WARN:RPCManager:Multiple RPCRequests with params attribute in one transaction - merging
      23:59:45.696:XRP8:WARN:Log:Error:
      'Det går inte att hämta värdet för egenskapen errors: objektet är null eller odefinierat'
      in https://srv1.smartpark.se/isomorphic...DataBinding.js
      at line 1318

      "

      As far as I know I am not using any ques ...?

      Can not interpret the messages /Johan

      Comment

      Working...
      X