Hi All,
I have 2 questions.
1. In WAD 7.x I have copied the template 0ANALYSIS_TEMPLATE_EXPORT and created ZANALYSIS_TEMPLATE_EXPORT and I am using this as the default export template. But when I click on the Export Button there is a new browser window opening with the export dialog box as opposed to the export dialog box being shown on the same browser when using the default export template.
So I need help to eleminate the extra new browser window which is shown while using a custom template.
Any help would be highly appreciated.
2. I have written a Javascript Code to replace the # and Not assigned in Web Tempates by 'No Data'.
This functionality is working fine for the Web Template. But not in the export template.
I have added the same JS Code in the custom template that I am using for Export. But the values do not get replaced in the excel.
So I need to achieve this functionality. Is there anything related to the Export Command's backend functionality.
This is the JS Code that I have used.
function replace()
{
var Elements=document.getElementsByTagName('TD');
for (var i=0;i<Elements.length;i++)
{
if(Elements[i].innerText=="#")
{
Elements[i].innerHTML = "No data"
}
else if(Elements[i].innerText=="Not assigned")
{
Elements[i].innerHTML = "No data"
}
}
}
This works fine on the Web Template but not on the Export Template.
Thanks in advance.