Announcement

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

    How to pass any identifier value in filterbuilder search

    Hi,

    We are using Filter Builder search, provided by Smartclient. We have menu bar and to view the same entity but cirteria is different to search.

    We have used the same Datasource for every view/search action.

    e.g. View Employee will fetch the data from Employee table.
    View Dept, will fetch the data from Department Table.

    My requirement is to send the identifiler (e.g. callAction:emp, calledAction:dept etc) to backend so that we can identity from where we need to fetch the date, emp table or dept table).

    FYI, We have used the below code to display the FilterBuilder Search on top of the ListGrid

    tabPane.listGrid.setShowFilterEditor(true/false); //true for display and false for hiding search.


    Please let me know how to pass/set extra prameter in criteria to back-end.
    Last edited by ashishbg; 2 Aug 2010, 01:59.

    #2
    Use dsRequest.operationId by way of setting listGrid.fetchOperation, then calling setData([]) right before you call fetchData() with new criteria.

    Comment


      #3
      Thanks Isomorphic!!!

      For all the view entities, operation is fetch and whenever user click on the search button of FilterBuilder(glass icon of filter builder) the method fetchData() is internally called by SC.

      Whenever user click on glass icon, Please let me know, how to send parameter(s) to back-end in criteria object or Is there any way to send parameter to back-end?.

      Comment


        #4
        Note the filterBuilder and filterEditor are not the same thing. However the solution is the same either way, please actually try it.

        Comment


          #5
          Thanks Isomorphic!!!.

          We are using FilterEditor and we do not have any control on this.
          It would be great if you please provide some code sample to pass parameter after click on the glass icon..

          Comment


            #6
            So, once again, the API is to set ListGrid.fetchOperation. You can set it on create() like any other property.

            Comment

            Working...
            X