Skip to content

Commit

Permalink
[biexport] support separate files in addURLParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
campersau committed Sep 20, 2024
1 parent f40bd75 commit 05c723a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions biexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,11 +1056,14 @@
this._export_settings.array_var.push({ "parameter": name, "values": values.join(";"), "iterative": iterative, "document": storyIds.join(";"), "applications": storyIds.join(";") });
this._updateSettings();
}
addURLParameters(parameters, storyId) {
addURLParameters(parameters, storyId, separateFileId) {
if (!this._export_settings.array_var) {
this._export_settings.array_var = [];
}
this._export_settings.array_var.push({ "index": this._export_settings.array_var.length, "parameters": parameters, "document": storyId || "", "applications": storyId || "" });
if (separateFileId) {
parameters.unshift({ name: "__SEPARATEFILES__", value: separateFileId });
}
this._export_settings.array_var.push({ "index": this._export_settings.array_var.length, "parameters": parameters, "document": storyId || "", "applications": storyId || "", "separateFiles": !!separateFileId });
this._updateSettings();
}
clearURLParameters() {
Expand Down
7 changes: 6 additions & 1 deletion biexport.json
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,17 @@
{
"name": "parameters",
"type": "biExportParameter[]",
"description": "The URL parameters"
"description": "The URL parameters for a single iteration"
},
{
"name": "storyId",
"type": "string",
"description": "The story or application for which the URL parameters will be used"
},
{
"name": "separateFileId",
"type": "string",
"description": "The id to generate separate files. Can be left empty when a single file should be generated"
}
]
},
Expand Down

0 comments on commit 05c723a

Please sign in to comment.