Using a variable to insert into a URL for redirecting clients

I got a good one, can anyone help on this?
Using RoboHelp Version 8.02.208.
My company uses MicroStrategy to deploy several web-based data analysis products.
Each of these data products (there are 5) are deployed on different servers.
I have set up a single source WebHelp project and use build tags for product specific help output.
(I also have to modify the Start Page, TOC and Default Topic settings prior to generating each product help)
Everything on this works fine and is not a problem.
We have just implemented an Excel add-in for one of the products.
That add-in uses a locally installed CHM file for its help.
In order to provide customized help that can be updated without forcing the clients to reinstall the CHM help file locally, the source for the CHM file has one dummy topic. In that topic, I have used HTML code to redirect the client to the WebHelp for the product and have integrated the Excel add-in help to that product’s customized help. The result is that the CHM file is opened locally in the HTML help viewer. Inside the HTML help viewer window, I open the WebHelp.
The redirect HARD CODES the URL with the product specific server name and Start Page help topic.
That works fine and is not a problem for ONE PRODUCT.
We are in the process of adding this Excel add-in to other products.
Now here is where I cannot get this to work with my implementation.
The URL for each product is different and to make matters worse, the Start Page is different for each product as well.
So, I am working on options for implementation of multiple products and here is my question:
(1)    The following is an example of the redirect in the single topic of the CHM file:
<meta http-equiv="refresh" content="0;URL=https://server.com/ProductName/WebHelp/StartPage.htm#mergedProjects/ExcelPlugIn/ Overview.htm" />
(2)    The red portion of the URL above will need to be modified to support each individual product with a custom server, product name and start page HTM file name.
Is there a way to:
(1)    Add a variable in this HTML code
(2)    Once the product is identified, update the variable with the product specific URL content
(3)    Integrate the variable into the target URL of the HTML code that does the redirect
I think this is either not possible or more work than needed. My other option is to provide standalone Excel add-in help on a server and just have the Excel plug-in go to that (right now it is integrated into the product specific help and the client has access to the plug-in help AND the application help all at the same place).
Thanks to all in advance for any help/suggestions.
Michael F Weart
[email protected]

Thanks for the feedback - here is more informtion on the challenges of this implementation:
I can only distribute one CHM file to cover all 5 web-based products that can be accessed through the Excel plug-in.
Regardless of which of our 5 products is used to install the plug-in on the client's local hard drive, the same installer is used.
That one CHM file is installed locally on the client's hard drive.
(The out of the box CHM file for the plug-in only has general plug-in help content the locl install causes problems for updating the content).
We needed to be able to easily update the help without inconveniencing the clients.
So, I am not creating 5 different CHM files for each installer, since there is only one installer regardless of how many of the 5 products they have.
The plug-in has a server setting and web service setting for each product and the client must choose which they are accessing when they fire up the plug-in.
They may be accessing the plug-in for any of our 5 web-based products they have subscriptions for.
Which means, the one CHM file must be able to:
(1) determine the product they are accessing
(2) direct to one of the 5 servers with the online help.
Each of the 5 online helps are deployed on separate servers with different URL links (and the helps have all different URL links as well).
These online webhelp outputs have some identical content but also some customized content for the specific product they are actually accessing.
My original approach was pretty much the same as William's above. Have a variable in the CHM help, determine the server they are accessing from the plug-in and insert the customized portion of the URL to access the appropriate webhelp.
Keep the ideas/suggestions coming.
I also have a development person looking into how to update a variable on the CHM side to populate the URL.
Michael F Weart
[email protected]

Similar Messages

  • Using a variable as part of a url

    Hi
    Thanks for checking in!. I am trying to define one folder in
    a url as a variable
    //Here is what my code looks like before I try to use a
    variable as part of the url. And this works just fine.
    var nextImage:String = "events/1.jpg";
    this.loaderTarget_mc.loadMovie("loader.swf")
    //But when I try define the events folder as a variable I am
    having no luck.
    var gallery:String = "events";
    var nextImage:String = "(gallery)/1.jpg";
    this.loaderTarget_mc.loadMovie("loader.swf")
    I am hoping what I am doing wrong here will be obvious to
    someone who knows more than I do. Any ideas?
    Thanks again
    Scott

    Using variable inside a String Delimeter will make it as
    String. So put the variable out side the double code.
    var nextImage:String = gallery + "/1.jpg";

  • Using select query to insert into a field

    Hi,
    I am working with a jdbc-to-jdbc scenario, in which on source side iam geting data from 2 tables t1 & t2 and inserting this data into two tables tb1 & tb2 on target side.A field in tb2 has to be inserted with a value which is equal to the number of records inserted into the table tb1 i.e with the number equal to 'how many records from the table t1 has been retrieved inorder to insert into table tb1'.
    Can anybody please suggest me.....
    Thanks & Regards,
    Radhika.

    consider ur strucutre
    <Data>
    <id> 1 </id> 0..1
    <id> 2 </id>
    <id> 3 </id>
    <id> 4 </id>
    </Data>
    here i meant context to <id>. Mapping id > count > target will give the nunmber of records in Data i.e. 4
    note: here u have change the context of <id> to <data>
    Message was edited by:
            Prabhu  S

  • Using default values in INSERT INTO..SELECT..

    Hi,
    I like to do following insert in Oracle 10g
    INSERT
    INTO tab1
    x1,
    x2
    SELECT
    NVL(y1,DEFAULT),
    y2
    FROM tab2
    but oracle throws missing expression error. I don't want to substitute default values as it involves code change for any default value change. I suppose Oracle changes context to tab2 while SELECT, but is there any way to accomplishing the above INSERT?
    Edited by: ponn_raj on Jan 14, 2009 4:52 AM

    Hi,
    Welcome to the forum!
    DECLARE
      var number;
    BEGIN
        INSERT INTO test
            (col1,
             col2)
        VALUES
            (1,
             NVL(var, 0));
        COMMIT;
    END;
    /Also you can create the table and assign default values to the columns that you want. See [CREATE TABLE|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2095331].
    From the link above:
    DEFAULT
    The DEFAULT clause lets you specify a value to be assigned to the column if a subsequent INSERT statement omits a value for the column. The datatype of the expression must match the datatype of the column. The column must also be long enough to hold this expression.
    The DEFAULT expression can include any SQL function as long as the function does not return a literal argument, a column reference, or a nested function invocation.
    Regards,
    Edited by: Walter Fernández on Jan 14, 2009 10:44 AM

  • NULL values are inserted into interface table for read only columns

    Hi, I developed a custom Integrator where some of the columns has to be displayed as read only in the layout. I am using SQL content to populate the data. When I upload the data NULL values are inserted into table interface? Is there any work around for this?
    Thanks
    Edited by: user593879 on Jan 12, 2010 7:21 PM

    Doesn't WebADI drive you insane at times?
    I must say, when it's all working it looks great and it is very user friendly (end-user that is, NOT for developers!) but before you get to that stage… please please Oracle invest some time making Web ADI a bit more logical an coherent, get the obvious bugs out, please let us not have to update BNE tables anymore to get things done.
    Anyway, I sorted this one out by setting the Width to zero (0) in the Layout. HTH.

  • Reading content to insert into a database for file content searches

    I have a new challenge that has been brought to me.
    There is and existing application that has files being inserted into the database and the customer is having great difficulty in being able to have a search capability against those files. I was thinking that I could do a secondary lookup before the file is actually uploaded and there would be use of the cffile to read the file then insert that data from the read and insert that data into a column of that database the equiled that record. The most important part of this is that the file's content is read from cffile and inserted into a column that actually get's that data into the RBDMS system that will allow for a full text search that would point to that system.
    Any other ideas of how to insert document content into a data record other than using the cffile tag would be most appreciated.
    Thanks in advance.
    Gene

    Most, if not all, database management systems have their own features to read text data from files.  You may prefer that functionality over piping the data through ColdFusion and the database drivers.
    <cffile...> can "read" .doc and .pdf file as in it can read the file from the file system as the binary data they are, but that does not extract the text from the content.  You can do some stuff with CFML to read the text in a pdf file with the <cfpdf...> and related tags and functions.  I'm not aware of similar CFML features that work with doc files, but I know of Java tools that do such as POI.  These are usually fairly straight forward to tap into with ColdFusion.

  • How to Improve inserts into Template table for Query Processing

    Hi guys!
    I need your advice. How can i improve inserts into template table (/BI0/0P00000010 for exemple)? In my scenario i forced to load data from cube C_X to cubes C_1, C_2 and C_3.
    To get a goal i created a transformations and a DTP process with delta upload to each of cubes (C_1, C_2, C3). And that proccess takes about 3 hours! (it doesn't matter 1.000 or 100.000 records). But when i tried to load data with full update (with a filter) a proccess get data takes about 1 minutes.
    I traced process and saw that inserting into template table (which create each time when proccess started) take the longest time. How can i improve it?

    Hi Mahendar,
    It will require some efforts to investigate it so I propose to open a support ticket with Microsoft (through portal).
    Your first question interest me and I am not sure if you are doing proactive or reactive real time reporting. You can try with
    HBase for storing and retrieving data. HBase known for providing good read and write speed. If you are not comfortable writing HBase syntax then you can add an abstraction layer i.e. HIVE. It might take little more time when you
    query HBase from Hive.
    If you are doing real time analytic, then you can choose from Strom and Microsoft Azure Stream Analytic.
    Thanks and Regards,  
    Sudhir Rawat

  • Can I use creative cloud marketplace assets in my projects for my clients. By definition I mean that I can add them as part of say a clients website

    I've started using Creative Cloud Marketplace and I need to check that I can use the assets from it in my projects and what I mean by this is the projects that I create for my clients. So if I have a website and they like some icons I've created using some Marketplace assets then is this okay to do?
    Thanks

    Cloud Market http://terrywhite.com/adobe-creative-cloud-market/ may help
    -and http://helpx.adobe.com/creative-cloud/help/market.html
    or
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Insert variables from script into HTTPService url

    I'm trying to insert values from script into a HTTPService
    url. How do I go about doing this? I tried the code below, but it
    gives an error. Can anybody help?
    <mx:HTTPService
    id="httpCall"
    url="
    http://api.service.com/user/{userName}/list?count={apiCount}&offset={(apiOffset)}&sort={ap iSort}&appkey=1234"
    resultFormat="e4x"
    result="callHandler(event);"
    fault="httpFaultHandler(event);"
    showBusyCursor="true"
    />
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var userName:String = "myName";
    private var apiCount:uint = 10;
    private var apiOffset:uint = 0;
    private var apiSort:String = "desc";

    Set the HTTPService properties in an AS function.
    <mx:HTTPService id="httpCall" resultFormat="e4x" ...
    result="callHandler(event);" ...../>
    private function getUserData():void
    var sURL:String = "
    http://api.service.com/user/"
    _ userName + "/list:;
    var oRequest:Object = {count:apiCount,offset:apiOffset,
    sort:apiSort, appkey:"1234" }
    httpCall.url = sURL;
    httpCall.send(oRequest);
    Tracy

  • Use session variable in Insert record

    Help, please!
    I need to add a record to a table; one of the fields in the
    table is the user_id. When I try to use the insert record server
    behavior, there is no way to select the user_id session variable!
    How is this done?

    .oO(Ted Dawson)
    >>>> to select the user_id session variable! How
    is this done?
    >>>
    >>>Use a hidden variable in the form, and assign it
    the value of the session.
    >>
    >> And what if the user manipulates that value? Hidden
    form fields _always_
    >> require a validation on the server. One purpose of a
    session is to avoid
    >> that sensitive data is sent to the client, where it
    can be manipulated.
    >
    >
    >Exactly how is the value of a SESSION VARIABLE
    manipulated by the client?
    It can be manipulated if it's put into a hidden form field.
    Micha

  • Using path variable to CI under transaction file for DBTABLOG archiving

    Hello Colleagues,
    I have to configure DBTABLOG archiving among others under transaction file.
    Here you have to configure archive path to the filesystem.
    E.g.this is the path to the development system:
    DEV23015\Interfaces\Outbound\Archiving_IDOCs\<FILENAME>
    It's clear, for test as well production we are using different hostname.
    So the consideration was to use a respective variable for the server system.
    E.g.
    <HOST>\Interfaces\Outbound\Archiving_IDOCs\<FILENAME>
    But now the problem, we are using CI (centra instnace) and application server for test as well as production and the archiving path respectively the archiving folder are only configured at CI server.
    So the HOST variable is not sufficient in this case.
    The variable SAPGLOBALHOST pointing directly to the CI server but not possible to configure under TC file.
    Any idea which variable possible and pointing direct to CI server?
    Or is the only possibility for pointing direct to CI server for archiving to use the HOST variable and modify the archiving job to run only on CI server?
    Many thanks in advance!
    Regards,
    Jochen

    You have two options...
    First one is to mount that path into all your instances
    Second is to use a Server Group Name under Cross-Archiving Object Customizing -> Technical Settings to force that particular object jobs to run on your CI.
    Regards
    Juan

  • Upload csv file and insert into a table for user

    Hello,
    i want to create a Page on which, the User of my Application can upload a semicolon delimited file and the data of the file should automatically be stored in a table.
    I can upload the file and the file is then stored in the htmldb_application_files table.
    But I do not no how to parse the file....
    Can anyone help me or is there anyone who have done that before?
    Thank you,
    Tim

    Tim...
    Here is what I did in a similar situation.
    Let the user download a csv file to use as an excel turnaround document.
    I check digit the primary key. They are not supposed to touch that column.
    They do their excel thing adding data in columns next to the ones they are updating. They now have the original and new data on the same row in the excel document. They save it on a share drive as a csv. A perl script wakes up and parses the csv. Verify's the check digit, checks that the old values still exist in the table... etc, and then does the update if all is well at the row level. The csv is replaced showing the success or failure of the update on each row.
    Probably lots of other ways to accomplish this but I have gotten years of use out of the script. The original csv can come out of almost any application. Mine come from apex, discoverer and some excel queries.
    Bob

  • Ampersands in URLs for redirect

    I ran my website address through the W3C Markup Validation process and got errors stating that url variables such as http://www.test.com?var1=one&var2=two is incorrect. You are supposed to use the & instead of the & symbol. This works great for all of my HTML links however it doesn't work for JSP response.sendredirect("") so I still get a few W3C errors. The only way I can get the response.sendredirect("") to work is by using the & symbol.
    Thank you for any suggestions

    You don't need to change it in the sendRedirect() method. It is part of serverside code and I really don't see how the W3C validator sees serverside code.

  • Escape special characters in url for redirection

    In my web page, I want all the characters of the URL to be lower case. For that I created the following method:
    private bool UrlFormatoCorrecto(string url)
    bool formatoCorrecto = true;
    bool upperCa = url.Any(c => char.IsUpper(c));
    if (url.Any(c => char.IsUpper(c)))
    formatoCorrecto = false;
    if (url.Contains(" ") || url.Contains("+"))
    formatoCorrecto = false;
    return formatoCorrecto;
    This works like a charm until a special character appears. The url that I get then will be the following:
    http://localhost/web/coches/proven%C3%A7a-aribau,-08036-barcelona,-barcelona
    So I have upper case characters. When I redirect it using the following code:
    if (!UrlFormatoCorrecto(urlActual))
    Response.RedirectPermanent(urlActual.Replace(" ", "-").Replace("+", "-").ToLower());
    I get the code again with the same URL with upper case. How can I escape the special characters so they won't bother me anytime I want to make the redirection?

    hello,
    you could escape special caracters with :
    Regex.Escape Method
    Regards
    Cédric

  • Get URL for J2EE client application

    Please forgive me if this question has an obvious answer, but I can't see it.
    Once Web Start has downloaded and started my J2EE Swing application client, how can my client get the name of the host (or entire URL) from which the client was downloaded?
    I would rather not have to hard code this into my client, so that the WAR file I deploy to the server is platform independent.
    bobj5000

    Use the JNLP BasicSevice API getCodeBase() to get the URL of the server.
    BasicService bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
    URL url = bs.getCodeBase();
    Hope this helps
    Jeff

Maybe you are looking for