Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

issue #19647: different names for list vs form reports

  • Loading branch information...
commit 055f76cf0e75f6e4a9e04b5d5073d024829c49bf 1 parent d6b48ab
@shackbarth shackbarth authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 node-datasource/routes/report.js
View
4 node-datasource/routes/report.js
@@ -76,7 +76,8 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
var queryForDataCallback = function (result) {
var recordType = requestDetails.query ? requestDetails.query.recordType : requestDetails.recordType,
- modelName = recordType.suffix().replace("ListItem", "").replace("Relation", "");
+ modelName = recordType.suffix().replace("ListItem", "").replace("Relation", ""),
+ fileName = recordType.suffix().replace("ListItem", "List").replace("Relation", "List") + ".prpt";
if (result.isError) {
res.send(result);
@@ -102,7 +103,6 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
},
success = function () {
var biUrl = X.options.datasource.biUrl || "",
- fileName = modelName + "List.prpt",
redirectUrl = biUrl + "&name=" + fileName + "&dataKey=" + randomKey;
if (requestDetails.locale && requestDetails.locale.culture) {
Please sign in to comment.
Something went wrong with that request. Please try again.