File Path contains the token "bc-"

We recently upgraded to the RoboHelp version 9 and are finding a critical problem within all generated html files. It seems RoboHelp is inserting a new script in every html file which we would like to either modify or remove. The snippet of this script is given below.
Our problem is that we have stored these files in a path that has this token “bc-“ - C:\projects\{705e5340-460b-11e1-b8bc-0800200c9a66}.
We need your help to either modify this token or remove this check from all project files.
SNIPPET:
========
if (window.gbWhTopic)
  var strUrl = document.location.href;
  var bc = 0;
  var n = strUrl.toLowerCase().indexOf("bc-");
  if(n != -1)
  document.location.href = strUrl.substring(0, n);
  bc = strUrl.substring(n+3);

Hi,
Peter and I have been looking into this problem and here's what we found:
RH sometimes adds bookmarks in the top of topics called “bc-x” This is done because a topic can be used in the TOC multiple times. But based on the item selected in the TOC, the topic needs display a different breadcrumb path. The script uses a link to the bc-x bookmark to determine which breadcrumb path to show.
When the topic is opened without the skin showing, the script will try to reload the topic by simply removing the link to the bc- bookmark:
http://example.com/myfile.htm#bc-1
becomes:
http://example.com/myfile.htm#
The script doesn't try to redirect when you open the topic with the skin showing, such as: startpage.htm#target.htm#bc-1
Af far as I can make out, I think it will be safe to simple remove the line
     document.location.href = strUrl.substring(0, n);
from your output. Although I couldn't find another use for this besides the breadrumbs, I can't say for sure what other impact removing the line may have. You can try removing the line to see whether it works. NOTE: if you find a new issue that surfaces because you removed the line, I doubt that anyone on the forum will be able to help. Sorry, but we are only users like yourself.
Having said that, you can use a find and replace tool such as FAR to quickly remove the above mentioned line from your output files. Alternatively, you can create a script to do that for you.
I think Peter's advice is sound: do take this up with Adobe Technical Support and/or report this as a bug: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
Greet,
Willam

Similar Messages

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the same folder. InDesign does not remember the file path that was used previously in the document. This is very annoying.
    IS THERE A WAY TO SET THE DEFAULT FILE PATH, OR LOCATION, FOR IMAGE FILES?
    I have looked through the preferences, searched the forums and internet, but I have not found any reference to setting default paths. Is there a setting like the one in MS Word called "File Locations" on the Options toolbox?
    Thank you.

    Since you're working in ID on Windows, you can take advantage of a neat trick in Windows. Copy the file path out of the File Explorer address bar and paste it directly into the Place filename field. That will jump you directly to the desired volume. For example, let's say I want to place a graphic located at X:\PS Jobs\May PS\709672bp\Working Source Files\Links. I copy that entire path from the File Explorer address bar, go to InDesign, select File|Place, and press Control + V to paste that path into the filename field. I press the Open button and Shazam! I'm there instantly, without a bunch of navigation.
    You can do the same thing in the File|Save As and File|Export fields. Let's say you want export a PDF file from InDesign to the volume X:\PS Jobs\May PS\709672bp\Working PDF Files. First copy the desired file path from the File Explorer window. In InDesign, select File|Export, click anywhere in the filename field, and press the Home key to move the insertion point to the front of the filename. Press Control + V to paste that path in front of the filename, then add the backslash character (\). The filename will now look like this: X:\PS Jobs\May PS\709672bp\Working PDF Files\Filename.pdf. Press the Save button to bring up the Export Adobe PDF window. Select your desired PDF preset, press the Export button, and the PDF file will magically appear in the desired volume.
    This sounds really complicated, but it's not. In practice, it only takes a few seconds. I probably save an hour's worth of needless navigation every day with this technique.

  • Function module to get the file path in the system for TEMP folder

    Hi All,
    Is there any function module that I can use to get the file path in the system for TEMP folder.
    I mean, i am supposed to give only TEMP as the input for that function module and I need to get the path of that in the system as the output.
    I am unsing 4.0 version.
    Please advice.
    Regards
    Ramesh

    In Higher versions, we can use the below code:
    call method CL_GUI_FRONTEND_SERVICES=>ENVIRONMENT_GET_VARIABLE
        exporting
          VARIABLE   = 'TEMP'
        importing
          VALUE      = LV_TMP
        exceptions
          CNTL_ERROR = 1
          others     = 2.
      if SY-SUBRC <> 0.
        message id SY-MSGID type SY-MSGTY number SY-MSGNO
        with SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      call method CL_GUI_CFW=>FLUSH
        exceptions
          CNTL_SYSTEM_ERROR = 1
          CNTL_ERROR        = 2
          others            = 3.
      if SY-SUBRC <> 0.
    Error handling
      endif.
      concatenate lv_tmp '\' into folder_path.
    But need to know in the lower versions like 3.1h and 4.0,

  • F4 help for file path in the Application server

    Hi All,
    i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0
    Regards
    Shekhar

    Hi
    Copy paste the following code and see the result
    Here you can see 2 types of open dialogs
    1. Directory View
    2. File View
    Use any one as per your requirement.
    DATA : l_filetable TYPE filetable,
           l_rc TYPE i.
    DATA: l_folder TYPE string,
          l_file TYPE string.
    PARAMETERS: p_folder(100) TYPE c,
                p_file(100) TYPE c.
    *Provide a Dialogue box for getting a folder path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_folder.
      CALL METHOD cl_gui_frontend_services=>directory_browse
        EXPORTING
          window_title    = 'Select Folder Path'
          initial_folder  = 'D:\'
        CHANGING
          selected_folder = l_folder.
      p_folder = l_folder.
    *Provide a Dialogue box for getting a file path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select a Text File'
          initial_directory = l_folder
        CHANGING
          file_table        = l_filetable
          rc                = l_rc.
    Reward points generously
    Regards
    Akshay Chonkar
      READ TABLE l_filetable INTO p_file INDEX 1.
      CHECK sy-subrc <> 0.

  • How to get images dynamically from database without file paths in the table field

    I have a MS-Access database. I am working with ASP.NET. In the database there is product table in which I have "CodeNo" as a field which is a text field, and the product codes like "SM-R-2035". I also have another field "Image" which is also a text field and which have a file path in it corresponding to the particular product Image (e.g. Images\Products\SM-R-2035.jpg). So far every thing is ok. I have to update this site very frequently and lots of images are added each and every time. Its a tedious work to type the paths and file name every time and it also take a lot of time.
    What I am asking is : Is it possible to get images from a specific folder at runtime which is referenced by the "code no" itself and not the file path from the database. (Say at run time the "code no" is referenced from the database and the corresponding image is loaded dynamically from the specified folder). In other word I want to avoid the tedious work of typing.
    Can any one help with this issue. Any other simple suggestions are welcome.

    All you need to do is simple concatenation to obtain the path for the image file.  You didn't mention whether you are using VB.Net, C# or some other language to do your coding.
    If the code in your database is SM-R-2035, the file name is SM-R-2035.jpg and the path to the images foilder is Images\Products\SM-R-2035.jpg, Conceptually here is what you need to do:
    dim code_var
    dim path_var
    code_var = the code you obtain from your relevant field in the database
    path_var = "Images\Products\" & code_var & ".jpg"
    Now path_var is what you would call to obtain the image from your images folder.

  • Full File path of the uploaded fie in struts

    How do we get full file path from the FileForm component in Struts upload.
    Acutal requirement is that ,
    in the file browser component, the user may select a file or he may paste and external link like http://www.xyz.com/abc/index.html etc..,
    How do we get the value that is in the input in the File Browser component as it is?
    Any help, is highly appreciated.
    Praveen

    I don't have a clue, but I would see that as a security threat if I was a user. I don't want to send local path names to a server.
    /Kaj

  • HT203433 How do I retrieve an app that I bought.  The icon is in my library.  But the program isn't in my device. When I look in the file that contain the app and try to open it,  It doesn't open.

    How do I retrieve an app that I bought.  The icon is in my library.  But the program isn't in my device. When I look in the file that contains the app and try to open it, it doesn't open.

    Howdy Hestersfree,
    This can be done through the App Store on the device that you'd like the app installed on.
    Apps on iOS
    Open the App Store on your device.
    Make sure you are signed in with the same Apple ID used for the original purchase.
    Tap Updates from the bottom navigation bar. 
    Tap Purchased on the resulting screen.
    Locate the app in your Purchased tab.
    Tap the download button.
    The app will begin downloading and you'll be taken back to your home screen. 
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • How do we find out the file path which the IDOC is stored.

    Hi,
    If we use T-code: AL11, we can see the file path of the Unix server.  And some IDOC outbound file is also stored in some file path after generated.
    If i generated an outbound IDOC, how do i know in which file path it stored??
    Thanks

    Hi,
    Go to control record of the outbound IDOC.
    go to partner tab, check the port under sender information.
    the outbound file path will be configured with your port.
    Use T-code WE21, the concerned port will be available under section 'File'
    Directory under tab Outbound file will show the path under which file has been stored.

  • FM to validate the file path on the presentation server.

    Hi all,
                  We are downloading a file on to the presentation server.
    Is there any FM to validate the file path of the presentation server?
    Suggestions are also welcome.
    Regards,
    Sreekar

    You can call a class like a function module. See example below:
    TYPE-POOLS: ABAP.
    DATA: L_DIR TYPE STRING.
    DATA: L_BOL TYPE ABAP_BOOL.
    L_DIR = 'c:\windows'.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
      EXPORTING
        DIRECTORY            = L_DIR
      RECEIVING
        RESULT               = L_BOL
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        WRONG_PARAMETER      = 3
        NOT_SUPPORTED_BY_GUI = 4
        others               = 5.
    IF NOT L_BOL IS INITIAL.
      WRITE: / 'Directory exists.'.
    ELSE.
      WRITE: / 'Directory does not exist.'.
    ENDIF.

  • FM to validate the file path on the presenation server.

    Hi all,
    We are downloading a file on to the presentation server.
    Is there any FM to validate the file path of the presentation server?
    Its usgent.
    Thanks and Regards,
    Praveen

    Hi praveen,
    this may probably help you i think
    but its not a fm its a subroutine.
    FORM validate_pre_file USING fp_name TYPE rlgrap-filename.
    DATA : l_result,
    l_filename TYPE string.
    l_filename = fp_name.
    CLEAR l_result.
    CALL METHOD cl_gui_frontend_services=>file_exist
    EXPORTING
    file = l_filename
    RECEIVING
    result = l_result
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE s007 DISPLAY LIKE c_e.
    LEAVE LIST-PROCESSING.
    ELSEIF l_result IS INITIAL.
    MESSAGE s008 DISPLAY LIKE c_e.
    LEAVE LIST-PROCESSING.
    ENDIF.
    ENDFORM. " validate_pre_file_hdr
    regards
    srikanth tulasi.

  • File that contains the information for icons like Answers, logout etc

    Hi
    We have a requirement to remove the icons like Answers, logout etc on top of the OBIEE 10.3.3.0 application. It would be very helpful and greatly appreciated, if anyone could let me know the file that contains the information for these icons.
    Thanks
    Samrat

    OBIEE11g issue: hiding header banner in OBIEE 11g?
    That link talks about the 11g customization. But still the folder is "msgdb\common".
    Check whether you are able to find this file and see whether any of those tags are available.

  • File thta contains the information for icons like  Answers, logout etc

    Hi
    We have a requirement to remove the icons like Answers, logout etc on top of the OBIEE 10.3.3.0 application. It would be very helpful and greatly appreciated, if anyone could let me know the file that contains the information for these icons.
    Thanks

    OBIEE11g issue: hiding header banner in OBIEE 11g?
    That link talks about the 11g customization. But still the folder is "msgdb\common".
    Check whether you are able to find this file and see whether any of those tags are available.

  • File browse : How to keep the file path in the file browse field?

    Hello,
    I have
    1) file browse field called P2_FILE_PATH.
    2) a select list with submit : P2_REGION
    If i upload some file d:\abc.gif , then select some region in the P2_REGION,
    P2_FILE_PATH will become empty. But in the session, i can find the blob value. but not the "d:\abc.gif "
    Using the following script I could capture the value of P2_FILE_PATH in a field
    P2_TEST.
    onload="javascript:document.getElementById(P2_FILE_PATH').value = document.getElementById('P2_TEST').value;"
    P2_TEST contains d:\abc.gif .
    How to retain the file path, though some other field is selected and submitted?
    Thanks in advance.
    Regards,
    Archana

    Hello Archana,
    You can't do what you want because of some HTML security restrictions – nothing to do with APEX. As you found out, You can capture the value of this item. You can't set it. After submitting the page, the browser is the one to clear the item.
    The only workaround is to work with AJAX and not submit the page until the end of the user input phase.
    Regards,
    Arie.

  • How to Get the Source File Path in the Receiver Side

    Hi Experts,
    Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .
    According to the Michal Blog
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here we Are Able to Get only the File Name.
    But If I Want to get the Total File  Path Also means What Should I Do Here ????
    Please Let Me Know
    Regards
    Khanna

    Khanna,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey fkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey dkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String fname = conf.get(fkey);
    Sring path = conf.get(dkey);
    String final=fname""path;
    return ""final"";
    Best regards,
    raj.

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

Maybe you are looking for

  • Dead Locks

    Gurus, Please clarify me the three questions which I am posting below 1) What's the deadlock situation ? How oracle treats the dead lock situation 2) Disadvantages of having index 3) I have two tables A and B .. In table A, I have two columns (say co

  • Call JavaScript Function in PL/SQL

    Hello All, I need to call a JS function to open a popup, I'm in the middle of a PL/SQL Process that I use:    V_ERRO_VALIDACAO := 'S';   IF V_ERRO_VALIDACAO = 'S' THEN     HTP.p ('<script type="text/javascript">');     HTP.p ('javascript:popUp2(''f?p

  • JavaFx integration in Java swing api

    Hello! Can anyone please tell me how to integrate javafx 1.3.1 scene into java swing application. Regards, guis. Edited by: user7393177 on 2.2.2011 12:25

  • Operators in query

    Can someone tell me what doe this operator mean %A

  • Polish language on

    Hi, Creative Please, make the polish script for Zen Micro!!! There are a lot of ZM users in Poland and the polish script would be quite convenient for us Thx E