[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Add button to grid that generates a PDF

  • Thread starter Thread starter Ricardo Perdigao
  • Start date Start date
Status
Not open for further replies.
R

Ricardo Perdigao

Guest
Hi Richard, Here is the code if you were to use the Stacked Grid template: onShow($scope) { console.log('Show'); this.scope = $scope; $scope.vm.$window.showDetails = function showDetails(e) { e.preventDefault(); var tr = $(e.target).closest("tr"); // get the current table row (tr) var data = this.dataItem(tr); window.open(' http://localhost:8810/static/' + data.CustNum + '.pdf', 'PDF Window', 'toolbar=no'); }; var newCommand = {command: { text: "View Details", click: showDetails }, title: " ", width: "180px" }; this.$model.parentGridOptions.columns.push(newCommand); }

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