[progress Communities] [progress Openedge Abl] Forum Post: Re: Child To Parent Table...

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Martin, Thank you for the info. We have a similar scenario. We both have a configuration with tables. Customer as the main with grid grid0 using CustomerDS as a the data source and Salesrep with SalesrepDS. The common column (field) is SalesRep. It looks like the issue that you are seeing is because the following reference: var temp = dataItem.Name; Did you get an error shown in the JavaScript Console? Here is an updated version of your code: // Read the Driver records into the data source $scope._$ds.DriverDS.read(); this.scope.gridRoute.options.columns[5].template = function(dataItem) { console.log('Template'); that.scope._$ds.DriverDS.filter( {field: "DriverNum", operation: "eq", value: dataItem.DriverNum} ); var view = that.scope._$ds.DriverDS.view(); if (view.length > 0) { console.log('DriverNum: ' + dataItem.DriverNum); console.log('Name: ' + view[0].Name); var temp = kendo.htmlEncode(view[0].Name); return " " + temp + " "; } else { return " (record not found) "; } }; Please give this code a try and let me know how it goes. Regards. P.S.: The capitalization used for the Salesrep table and the SalesRep field come from how they are defined in the Data Dictionary.

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