[Resolved] HTML pages throwing javascript errors in WF8
Hi, we have migrated code from WF 7.6.11 to WF 8008M. After migration while performning the health test when I tried to run the HTML file it started to throw some java script error. Please let me know if any body has faced the similar issue and cause/ resolution for the same. I have tried to open the HTML file in WF8 HTML composer and then tried to run the same, still the same issue.This message has been edited. Last edited by: jvb,
WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
October 13, 2014, 07:44 AM
jvb
also after some analysis i found that before opening the HTML file in WF HTML composer following code was present in the header of the file:
-************************************ After opening and saving the Same file in HTML composer the above code got replaced by following:
<script type=text/javascript>//confidential_id=IBI_OptionsScript var szHtmlAlias="/ibi_html"; var szRunTimeHtmlAlias="runTimeHtmlAlias"; var cgipath="cgipath"; var ibirls="ibirls3"; var rltdyncalendar="rltdyncalendar"; var map="ibimap"; var olap="olap"; var olappanebase="olappanebase"; var olapdrill="olapdrill"; var ibiOptions = new Array(cgipath,ibirls,rltdyncalendar); var nlsScript="/javaassist/nls.js"; var nlsVarsScript="/javaassist/nlsvars.js"; var glbScript="/javaassist/ibi/html/js/ibigbl.js"; var replacePart=""; var scriptTemplate='<script src="'+replacePart+'" type="text/javascript"><\/SCRIPT>'; if(typeof(szRunTimeHtmlAlias) === 'string' && szRunTimeHtmlAlias.indexOf('/') == 0)szHtmlAlias=szRunTimeHtmlAlias; document.write(scriptTemplate.replace(replacePart, szHtmlAlias + nlsScript)); document.write(scriptTemplate.replace(replacePart, szHtmlAlias + nlsVarsScript)); document.write(scriptTemplate.replace(replacePart, szHtmlAlias + glbScript));
WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
October 15, 2014, 12:29 AM
jvb
The issue is resolved by setting the value in Dev studio environment properties.
WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
October 15, 2014, 01:25 AM
Rifaz
you meant to say, html_alias is set to /ibi_html/ibi_apps ?