Copy link to clipboard
Copied
Our developer is reporting that RoboHelp 11 is converting the parameter rhmapno to uppercase RHMAPNO in the loadcsh.js Multiscreen HTML5 output file, and the CSH is not working (see below from the file).
Is anyone else having this problem and can suggest a solution?
function loadTopic(defaultTopicURL)
{
gDefTopicURL = defaultTopicURL;
var mapnum = getUrlParameter(RHMAPNO);
if(mapnum!="")
{
showCSHTopic(ITEMTYPEMAPNO, mapnum);
return true;
}
Thanks.
Gina
Copy link to clipboard
Copied
There are several copies of that script in your Rh installation folder. I just looked at the one in
C:\Program Files (x86)\Adobe\Adobe RoboHelp 11\CSH API\iOS\helpfiles\iphone\template\scripts
and it is already set to uppercase there so it is not getting changed.
See www.grainge.org for RoboHelp and Authoring tips

Copy link to clipboard
Copied
Thank you, Peter. I will pass your info along to our developer.
Gina
Copy link to clipboard
Copied
Hi Peter,
The issue has to do with the actual value held by the "RHMAPNO" variable. The Regular Expression comparison is case sensitive and when comparing the "rhmapno" (this is the value held by RHMAPNO varaible) against the redirected URL parameter (index.htm?RHMAPNO=2002)
This results in the failure of the appropriate section help load.
Copy link to clipboard
Copied
RHMAPNO is a constant with the value ""rhmapno" in lower case (see constants.js). So while your CSH isn't working, this doesn't seem to be the problem. Or are you putting the URL variable into upper case? If so, what method are you using for calling the help? The default CSH API?
Are you certain that the map files are all selected in the SSL settings? The most common cause for CSH not working is when one or more map files are not selected.
If the upper case is the problem, find the file constants.js in the RH installation folder. If you change the value rhmapno to upper case, all should work well.
Kind regards,
Willam
Copy link to clipboard
Copied
Hello William,
The resolution is to change the rhmapno variable to upper case in the constant.js file. We tested this by manually editing one of the HTML5 profiles; however, within RoboHelp is there a way to permanently make this change to avoid human error?
Thank you for your help thus far, and thanks in advance for your continued help.
Erica
Copy link to clipboard
Copied
Permanently? You can change the seed files as Peter already indicated. And you can file a bug with Adobe: Adobe - Feature Request/Bug Report Form
Kind regards,
Willam
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more