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

  • Thread starter Thread starter Martin Velikov
  • Start date Start date
Status
Not open for further replies.
M

Martin Velikov

Guest
Hello Ricardo, Thank you for the solution. I am close I think but still can't make it. In your example you are using only one table, but I need it with two different. I am a very beginner and I can't get the corresponding Name from the second table (the DriverNum is a common ID). This is my code: $scope._$ds.RouteDS.read(); console.log('Read'); var that = this; this.scope.gridRoute.options.columns[6].template = function(dataItem) { console.log('Template'); that.scope._$ds.DriverDS.filter( {field: "DriverNum", operation: "eq", value: dataItem.DriverNum}, {field: "Name", operation: "eq", value: dataItem.Name} // I know that this is not correct ); console.log('DriverNum:' + dataItem.DriverNum); console.log('Name:' + dataItem.Name); var temp = dataItem.Name; var view = that.scope._$ds.DriverDS.view(); return " " + temp + " "; }; var driverDataSourceOptions = $scope._$ds.DriverDS.options; $scope.gridRoute.options.columns[6].editor = function (container, options) { // Clear filter to ensure that all values are shown console.log('Cleared'); $scope._$ds.RouteDS.filter({}); var input = $(" "); input.attr("name", options.field); input.appendTo(container); input.kendoDropDownList({ filter: "contains", minlength: 3, autoSync: true, dataTextField: "Name", dataValueField: "DriverNum", dataSource: driverDataSourceOptions }); };

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