working on many customers and with many geographically dispersed colleagues I ever missed a global view of what's going on and what's changed.
download all the sources from eam database is a good choice ... but not for the cloud edititio, it seems.
So I wrote a page in order to get all the sources listed on Chrome console.
(I'll attach a just implemented JSZip extension [for wsjobs docs] to get all sources already packed, in the next few days).
here is the code (btw : if you have the annoying error using the console ... save, replace and then reinstate the window.onerror function ...) .
--
let jslist = EAM.Ajax.request(
{ url: "/web/base/BSJAVA.xmlhttp",
params: "eamid" + "=" + EAM.SessionStorage.getEamId()
+ "&" + "tenant" + "=" + EAM.SessionStorage.getTenant()
+ "&" + "COMPONENT_INFO_TYPE" + "=" + "DATA_ONLY"
+ "&" + "CURRENT_TAB_NAME" + "=" + ""
+ "&" + "DATASPY_ID" + "=" + "3801"
+ "&" + "GRID_ID" + "=" + "3745"
+ "&" + "GRID_NAME" + "=" + "BSJAVA"
+ "&" + "SYSTEM_FUNCTION_NAME" + "=" + "BSJAVA"
+ "&" + "USER_FUNCTION_NAME" + "=" + "BSJAVA"
});
if (jslist.success === true) {
let text = '';
let list = jslist.responseData.pageData.grid.GRIDRESULT.GRID.DATA;
// { "name": "BSCSTC", "active": "0", "userfunction": "BSCSTC" }
list.forEach(
function(item, index, arr) {
text = text
+ "name: " + item.name
+ ", active: " + item.active
+ ", userfunction: " + item.name
+ "
"
let jspage = EAM.Ajax.request(
{ url: "/web/base/BSJAVA.HDR",
params: "eamid" + "=" + EAM.SessionStorage.getEamId()
+ "&" + "tenant" + "=" + EAM.SessionStorage.getTenant()
+ "&" + "CURRENT_TAB_NAME" + "=" + "HDR"
+ "&" + "name" + "=" + item.name
+ "&" + "ONLY_DATA_REQUIRED" + "=" + "true"
+ "&" + "SCROLLROW" + "=" + "YES"
+ "&" + "SYSTEM_FUNCTION_NAME" + "=" + "BSJAVA"
+ "&" + "USER_FUNCTION_NAME" + "=" + "BSJAVA"
});
text = text
+ "--
"
+ (jspage.success === true
? jspage.responseData.pageData.values.sourcecode
: "errore")
+ "
"
+ "--
"
}
);
console.log(text);
} else {
console.log("error ajax");
}
--
good luck !
Davide