MapIDs - How to make them the same as the Filename.htm?

Hi All,
I'm fairly new to Robohelp, hoping the experts can take it easy on me!
We're in the process of converting our old WinHelp projects to Microsoft HTML Help projects. We previously had 10 separate .HLP files for our project, we're hoping to condence all of those into a single CHM file.
In our previous projects, our MapIDs were as follows from the .HH file:
#define HELP_Add_Cables    6171
#define HELP_Add_Column    6181
#define HELP_Add_Control_Unit    6537
#define HELP_Add_Copy    17043
etc.
After converting our projects from WinHelp->MS HTML Help, each one of these topics created a new HTM file, ie: "Help_Add_Cables.htm", fine, no problem. But when I bring up the "Edit Map IDs" dialog, its now showing me the Topic ID ("How to Add Cables"), and not the HELP_XXX_XXX name that is used throughout our product. As a result, we would have to go through our source code and update approximately 1000 Map IDs - yuck!
Is there a way to force this dialog to use the Filename, and not the Topic Name to generate the .h file? Is there some fancy editing I can do in Ultraedit instead of using Robohelp to get the result I want?
I notice there is an alias file as well, that appears to correspond between the Topic Name, and the .HTM Filename.
We were previously using Robohelp 5.xx, and recently upgraded to 8.0.1.204.
Anyhelp you could provide would be greatly appreciated.
Cheers.
Mike.

Hi,
I created a small RH script that quickly assigns TopicId's and mapnumbers to your topics, based on the filename. Hope it helps.
First, the script adds a map file called 'RHScriptMapFile'. No checks whether it exists or not.
Then, creates a TopicId for each topic based on the file name. It just strips the '.htm' from the filename and replaces spaces in the name with underscores. A sequential mapid is added. The script is nothing fancy, but I hope it shows how you can quickly create a script that will save you from changing a thousand id's by hand.
CreateContextSensitivity();
function CreateContextSensitivity() {
   var MapManager = RoboHelp.project.MapIdManager;
     var MapfileName = 'RHScriptMapFile';
     MapManager.newMapFile(MapfileName);
     MapManager.setCurMapFile(RoboHelp.project.path+'\\'+MapfileName+ '.h');
     var topicmanager = RoboHelp.project.TopicManager;
     for(var i=1;i<=topicmanager.count;i++)
          topic = topicmanager.item(i);
          var TopicId = GetTopicId(topic);
          MapManager.newMapId(TopicId, i);
          MapManager.assign(TopicId, topic.path);
     alert('Context sensitivity created in map file '+MapfileName);
function GetTopicId(topic) {//Get the topic id based on the filename
     var FileEnd = /\.htm/g;//Strip .htm from the filename
     var Forbidden = /( )/g;//Strip forbidden characters from the filename.
     var ID = topic.filename.replace(FileEnd, '');
     return ID.replace(Forbidden, '_');
Greet,
Willam

Similar Messages

  • Layout Builder & Runtime Layout differences. How to make them the same ?

    When I design my layout, I run the form (with generic look and feel) and the layouts arent the same.
    There is more space between lines on prompts, and where I have several rectangles intersecting at edges, they are in slightly different positions on the runtime, making things look very messy.
    Presumably these layout builder is meant to show you the layout you will get at runtime ?
    Seems a bit of a pain if you have to run the form, then making a few adjustments, rerun it to see if things are in the right place etc.
    Any ideas what I can do about it anyone ?

    Hi Garry,
    I beleive My explanation about the case is not clear,
    I want to migrate a .fmb file developed in Forms4.5 (Character Mode) to the Latest version say Forms 9i(GUI).
    As I opened the file in the Forms9i environment some automatic validation and migration took place.
    In the Layout editor the Items appeared displaced as the effect of conversion from Character mode file to BitMap file. So I manually Increased the Width of each Text Item to a single Space. (Note: Iam not using the ifcmp90.exe syntax as I didnot go upto the compilation level as of now).
    I increased the width of the text items to one space to adjust the bevel effects of the web deployed forms.
    I moved the objects to exactly position before the prompts
    and as frames are not available in the character mode they have used straight line objects to seperate the items in the layout. These Lines I resized to adjust the form to accomodate the increased width items.
    But I moved these lines a bit apart from the items and increased the vertical space between the items in the header section . These two changes alone is not taking place.
    If this your understanding, kindly let me know how to send the sample to Oracle Support

  • I use Firefox at work and home. I have different screens on thee two computers. I can't figure out how to make them the same even though all settings match.

    At home the address bar etc is grey but my settings are for rose. At work using the colour settings the address bar is rose. I have a different setup with icons on the two screens. At home I have the refresh icon between the search bar and address bar, at work I can't find the refresh icon. I have tried customizing and all I still can't the same screens. Both computers are running Windows XP. I believe I am running the same version of Firefox in both computers.

    At home the address bar etc is grey but my settings are for rose. At work using the colour settings the address bar is rose. I have a different setup with icons on the two screens. At home I have the refresh icon between the search bar and address bar, at work I can't find the refresh icon. I have tried customizing and all I still can't the same screens. Both computers are running Windows XP. I believe I am running the same version of Firefox in both computers.

  • How to make hyperlinks the same colour

    Hi,
    I'm pretty new to indesign and i'm slowly picking it up. In my excitement of getting my work done I started hyperlinking some links in my content. Only problem is that the colour is not consistent for the hyperlinks as I had to do them one by one and thus the colours are slighty off. Is there a way I can select all hyperlinks and make them the same colour?
    Thanks for any input.

    Go to the Swatches panel and in the menu click on "Add Unnamed Colours" (unless you already have them in your swatches menu).  Then rationalise those swatches by deleting them and replacing them with the one you want.  From now on use that swatch to make your hyperlink.  Better yet use a style for it.

  • HT5772 In the Podcasts, there are a tons of files downloadable from iCloud appearing in iTunes. How to make them disappear? Thanks

    When you register for a podcast, the list of past podacsts appears in the podcast. Sometime, ther's a ton of it. How to make them go?
    Thanks

    If you go to settings>music there should be a setting to show all music. Turn that off, and the cloud purchases should disappear. You may need to restart the phone to take efect

  • I accidently "hide" some of my purchased apps in the app store and need to know how to make them visible again.

    I accidently "hide" some of my purchased apps in the app store and need to know how to make them visible again.

    Mac App Store- Hiding and unhiding purchases

  • Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    I don't know if it will work, but try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma

    I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma???

    I am working on a friend of mine's 15g ipod(W/dock connector)and I am having the same trouble except it does it to all the songs. I have tried reseting it multiple times, but to no avail.
    I am not sure that this runs on windows XP, it is absolutly archaic (compared to my 5th gen. 30g video).
    Help?
    15g ipod (w/dock connector)   Windows XP  
      Windows XP  

  • How to make in the loop codes?

    How to make in the loop codes to have like my output(below)?
    For example:
    I am trying to figure out how to make them correct the way I want to have the output.
    String start = "02-01-08";
    String end = "02-29-08";
    Calendar a = new GregorianCalendar();
    while( start <= end ) {
              a.add(Calendar.DAY_OF_WEEK, 7);
              Date d = a.getTime();
              DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
              String ss = df.format(d);
              System.out.println(ss);
    }The output:
    +02-01-08+
    +02-08-08+
    +02-15-08+
    +02-22-08+
    +02-29-08+
    Anybody know how to make it correct?

    artist_tech07 wrote:
    I am confused where is the answer in the doc that you gave me?Read my first reply and read the docs. Then read them again.
    And then re-read this
    To do what you want you need a start and end Dates. These you can compare in one numeric form or the other. For example by using getTime.
    Then during each loop iteration you will need to add *1 day (using the Calendar)* to the start date.
    I am telling you what methods to use. I have told you were you can find those methods. I have given you a link to the Calendar class API. All you have to do is put 2 and 2 together. Or at the very least make an attempt to do so.

  • How to make Firefox the Default search engine on Android Kitkat

    HTC Desire 816 with Google set as Default

    Here's how to [[Make Firefox the default browser on Android]] .
    [https://support.mozilla.org/en-US/kb/make-firefox-default-browser-android]
    Did this help you? We will love to hear from you.
    Thanks.

  • How to make QuickTime the default player again?

    How to make QuickTime the default player again?

    Two finger Click on the file and then select get info.
    It will open a window.
    Srcoll down to open with.
    Select Quicktime.
    Then select change all.
    After that, all MPEG 4 or the type of file that video is, will be defaultly opened by quicktime.
    Hope this helped!

  • How to make add the program system.out messages to a applet text field?

    How to make add the program system.out messages to a applet text field?
    System.out.println("I wanna displany this message on a applet text field, thanks");

    You may wish to change the output destination to a JTextArea. Please have a look at this link that likely shows what you want:
    [http://forums.sun.com/thread.jspa?forumID=54&threadID=640376|http://forums.sun.com/thread.jspa?forumID=54&threadID=640376]
    If you need other examples, search the forum. I found the search terms -- redirect system out textarea -- very helpful.
    Good luck

  • How to make Default the Higher-Level Manager of the employee

    Dear experts,
    how to make Default the Higher-Level Manager of the employee as Further Participant in performance management ?
    Regards,
    TVS

    Hi,
    The delivered BAdI below defaults in both the appraiser and appraisee as part-appraisers//Default Further Participants.
    BAdI Area: Appraisal Enhancements
    BAdI Definition: HRHAP00_DOC_DEF_DO (Appraisal - Default Further Participants)
    App. Enhn.: DEFAULT_ALL_MANAGERS     
    Implementation: HRTMC_DEF_OTHERS
    Implementation short text: Determine All Managers
    Implement this BADI  in SE18/SE19 and  write the desired code in the  BADI methods
    Hope this will help u out.....
    Regards
    Lakhan

  • You sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

    you sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

    you sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

  • How to make gmail the main post?

    How to make gmail the main post?

    Add it into the mail application - it will automatically become your default email
    Or are you asking to for it to be your main email on the Apple ID?
    http://iforgot.apple.com/appleid
    You can change it there

Maybe you are looking for

  • PI 7.3 - Read .RAR Files

    Hi there, I'm newbie at SAP PI, I've never seen it before and I'm in a project where the company hired a PI consultant to make it work for SAP GRC x NF-e  (Brazilian fiscal notes). This consultant is showing me what he did here and... I'll need to le

  • Need BAPI function module to change routing (CA12 Tcode)

    Hi Freinds,    i have bapi function module to create bapi_routing_create,    but i need bapi function module  to ROUTE CHANGE. tcode is ca12    pls help me out .....it's urgent to me mail to me :[email protected] regards madhu

  • Bi 7 extraction error..

    hello folks, I am trying extract flat file data into cube when i do that using PSA..i get error of "message type X" and when i do that skipping PSA..direct upload..it works fine.. help is appreciated... Points will be awarded.. regards GVS

  • Problem in Axis2 version service

    Hi We have done a full installation of BOBJ Entreprise Premium XI 3.1 SP 2 on a Microsoft 2003 Server. The installation is done with all default settings (ports) and MySQL is also installed. We have installed Tomcat as Web Server (5.5.20) and also de

  • Mount: can't find /dev/sda2/mnt in /etc/fstab

    I'm trying to install Arch on a virtualbox virtual machine to become familiar with it before I install it on my main system. I've created 4 partitions, dev/sda1=1007kB boot partition, dev/sda2/= 4gb root partition which I am trying to mount, dev/sda3