12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- // Licensed Materials - Property of IBM
- //
- // IBM Cognos Products: pps
- //
- // (C) Copyright IBM Corp. 2010, 2017
- //
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- // used to calculate the proper width of the iWidget for an AutoResize event
- function getPowerPlayScrollWidth() {
- return document.body.scrollWidth;
- }
- // used to calculate the proper height of the iWidget for an AutoResize event
- function getPowerPlayScrollHeight() {
- return document.body.scrollHeight;
- }
- function saveAsToDashboard(evt) {
- var payload = evt.payload;
- var dashboardStoreID = payload.cm$storeID;
-
- setGlobal("is_save", true);
- addToHiddenForm("DSHSP", 'storeID("' + dashboardStoreID + '")');
-
- doParent('RU:5');
- }
- function saveToDashboard(evt) {
- var payload = evt.payload;
- var dashboardStoreID = payload.cm$storeID;
-
- setGlobal("is_save", true);
- addToHiddenForm("DSHSP", 'storeID("' + dashboardStoreID + '")');
-
- doParent('RU:6');
- }
- function addToHiddenForm(name, value) {
- var input = document.createElement("input");
- input.name = name;
- input.value = value;
- input.type = "hidden";
- fh.appendChild(input);
- }
- function handleSaveDone() {
- setGlobal('is_save', false);
- getIContext().getiWidgetAttributes().setItemValue('savedReport', getGlobal('bux_report'));
- fireEvent('com.ibm.bux.widget.save.done', null, {'status':true});
- fireEvent('com.ibm.bux.widget.modified', null, { 'modified': false });
- }
- function setGlobal(name, value) {
- eval("gparent.self." + name + "= value");
- }
- function getGlobal(name) {
- return eval("gparent.self." + name);
- }
|