Quote:
Originally Posted by StefanM
Please accept my apologies!
|
No worries.
Quote:
Originally Posted by StefanM
But I still don't know, whether or not you are prepared to create a tsv generating script.
|
The JSON file which the scirpt provides should have been enough for you to see things through in excel, especially since it is very well equipped to perform such tasks. So the question really is not "whether I am prepared to" or "whether I can", but "do I need to". Since I have provided a viable solution, the answer should have been obvious. That being said, here is the script:
Code:
/*
Export settings
Trigger : none
*/
var rows = [];
var file = JD_HOME + "/settings.tsv";
var settings = callAPI("config", "list", ".+", true, true, true, true);
var keys = [
"abstractType",
"defaultValue",
"docs",
"enumLabel",
"enumOptions",
"interfaceName",
"key",
"storage",
"type",
"value"
];
rows.push(keys.join("\t"));
settings.forEach(function(item) {
var row = [];
keys.forEach(function(key) {
row.push(JSON.stringify(item[key]));
})
rows.push(row.join("\t"));
})
writeFile(file, rows.join("\n"), false);
Let me know if you need any modifications.