Announcement

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

    FilterEditor Key Search not working

    Smartclient version: v10.0p_2015-06-17/Enterprise Deployment

    We are using two ListGrids in our application. ListGrid1 is for the groups and ListGrid2 is for the partners associated with the group selected in ListGrid1. Please refer to the screenshot ListGrids.bmp.

    Once a user select a group in ListGrid1, all the partners associated with that group are getting displayed in ListGrid2. We are using FilterEditor to filter the partners in ListGrid2. Whenever we are typing a key in filterEditor of ListGrid2, it is sending a DSRequest to search partners name matching with the key entered in filter editor. Whenever we are searching for the keys in filterEditor it always shows "No Items Found" in the PickListMenu. Although, we can see that there are partners name available with the given keyword.

    After analysis we found that in this DSRequest(filterEditor search in ListGrid2) if we can send the GroupKey of group selected in ListGrid1 as parameter.

    Is there any way we can add the GroupKey(of group selected in ListGrid1) as a parameter in DSRequest object send by the filterEditor of ListGrid2 when we type a key in the filterEditor?

    In version 10.0, we have noticed that smartclient is using a PickListMenu as a component to display the results for the keyword search in filterEditor in ListGrid2 but in previous verion i.e 8.2, smartclient were using ListGrid itself to display key search result for filterEditor in ListGrid.

    Is it possible to hide the PickListMenu for the filterEditor search in ListGrid or is there any way to use ListGrid itself as a component to diplay the filterEditorSearch results?


    Attached Files
    Last edited by satya_paul; 13 Oct 2015, 12:45.

    #2
    Is there any updates on this issue?

    We are able to remove the PickList from filterEditor by adding below code in skin files. But it is affecting PickList of all the ComboBoxItem in our application.
    isc.ComboBoxItem.addProperties({hideEmptyPickList: true}); Is there any way to remove PickList for filterEditor of the ListGrid only without affecting PickList of other ComboBoxItem.
    It's a critical issue and impacting the release of our product. Can you please provide an update on this issue as soon as possible?
    Last edited by satya_paul; 13 Oct 2015, 12:44.

    Comment


      #3
      Some comments from the information we have:
      ... Whenever we are typing a key in filterEditor of ListGrid2, it is sending a DSRequest to search partners name matching with the key entered in filter editor. Whenever we are searching for the keys in filterEditor it always shows "No Items Found" in the PickListMenu. Although, we can see that there are partners name available with the given keyword.
      So presumably the field being displayed in ListGrid2 has an optionDataSource specified, and the DSRequest you are seeing is a filter request issued against that dataSource. The pickList should be showing the results of that fetch - you can also see them in the RPC Tab of the developer console. If the pickList is showing no results, presumably the dataSource is returning no results for the requested criteria. Probably best to look at the request criteria and the dataSource properties to determine why that would be (or show us a way to reproduce the problem if you think it's a framework bug).

      After analysis we found that in this DSRequest(filterEditor search in ListGrid2) if we can send the GroupKey of group selected in ListGrid1 as parameter.

      Is there any way we can add the GroupKey(of group selected in ListGrid1) as a parameter in DSRequest object send by the filterEditor of ListGrid2 when we type a key in the filterEditor?
      Not sure how you're modifying the request in your testing, but yes - you could customize the filter request issued by a comboBoxItem by changing what 'getPickListFilterCriteria' returns. Probably best to take a look at the ComboBox Filtering overview for more on this.

      In version 10.0, we have noticed that smartclient is using a PickListMenu as a component to display the results for the keyword search in filterEditor in ListGrid2 but in previous verion i.e 8.2, smartclient were using ListGrid itself to display key search result for filterEditor in ListGrid.

      Is it possible to hide the PickListMenu for the filterEditor search in ListGrid or is there any way to use ListGrid itself as a component to diplay the filterEditorSearch results?
      We're slightly confused by this - but this is what we think you're saying:
      - in the right hand grid, you want to see a text-box in the filter editor (not a ComboBoxItem), and as the user types, you want the listgrid itself to be filtered directly - not to see a set of possible matches showing up in the combo box's drop-down list.
      If so - yes - this is easy - simply set filterEditorType:"TextItem" on the second ListGrid's field. That will probably also render the rest of these questions moot as they all seem to be about the filter on the PickList, not the filter applied to the second grid as a whole.

      If this doesn't give you enough to go on, we'll probably need to see a test case to provide you with more useful information.
      This should be relatively easy to produce using a couple of small clientOnly dataSources or similar.


      Regards
      Isomorphic Software

      Comment


        #4
        Also, I want to alert the text we are entering the any filter. I used alert(this.getPickListFilterCriteria()) but this returns me object as getPickListFilterCriteria() return Criteria.
        How can I see only the text I have entered in the filter.

        Comment


          #5
          listGrid.filterEditor will get you a reference to the filterEditor.
          You could use getEditValue(0, <fieldName>) to get back the current edit-value for the cell (basically what the user has entered)

          Comment

          Working...
          X