[progress Communities] [progress Openedge Abl] Forum Post: How To Pass Parameters To The...

  • Thread starter Thread starter curtiscooper
  • Start date Start date
Status
Not open for further replies.
C

curtiscooper

Guest
I have a gridview in Kendo UI Builder, and I want to pass parameters to the Read method which is setup to accept a "filter" parameter. The data source is set for Client Side Processing, which is what I want, but I want to start with a subset of data using an initial filter value. I have disabled autobind, so the gridview isn't initially pulled in onShow - this.$components.psLogGrid.options.autoBind = false; I have a text fill in and a button which runs the javascript below which I want to pass in to the Read method in ABL Class. However, the value filter in the browser is "Object", and the value in the Read method is ? Does anyone know how to do what I thought would be a simple process of passing in a parameter to the Read method? Perhaps I am setting the value of filter incorrectly below? Thanks for your help. // Fired when user selects the button. tbProcess is the name of the text fill in, and I have validated angular.element('#tbProcess').val(); is the correct value that I want. filterByProcess($scope) { debugger; var dataGrid = this.$components.psLogGrid.widget; var value = angular.element('#tbProcess').val(); console.log("value " + value); if (value) { var filter = { logic:'and', filters: [ { field: 'processName', operator: 'contains', value: value } ] }; this.$ds['psLog'].filter(filter); } else { this.$ds['psLog'].filter({}); } console.log("Filter - " + filter); }

Continue reading...
 
Status
Not open for further replies.
Back
Top