March 30th internal build update broke my previous working c
Posted: Tue May 26, 2015 1:46 pm
I call "SaveReport" command from my javascript code below. I pass some variables that I need on server side on reportName but I don't see that anymore when I debug it on server side.
Here is my javascript code that used to work for me.
This used to work fine. Today I caught this as I was testing my code. This may have happened with March 30th internal build update I did. Please let me know if calling "SaveReport" functionality has changed. Please advice what would be alternate way.
Thank you.
Here is my javascript code that used to work for me.
Code: Select all
var self = this, params = {}, templateId = "0", templateName, refreshViewer = false;
params.command = "SaveReport";
//console.log(self.isTemplateNew);
if (Object.keys(self.templateComboBox).length > 0) {
templateId = self.templateComboBox.value();
templateName = self.templateComboBox.text();
}
else {
templateName = $("#reportName").val();
}
refreshViewer = $("input[name=refreshViewer]").prop("checked") || false;
if (self.isTemplateNew) {
templateId = "0";
}
params.reportName = templateName + "~" + templateId + "~" + refreshViewer;
console.log(params);
jsStiMobileDesigner1.options.reportIsModified = false;
jsStiMobileDesigner1.options.report.reportName = params.reportName;
console.log(params.reportName);
jsStiMobileDesigner1.AddCommandToStack(params);
This used to work fine. Today I caught this as I was testing my code. This may have happened with March 30th internal build update I did. Please let me know if calling "SaveReport" functionality has changed. Please advice what would be alternate way.
Thank you.