Define presentation outside the HelpSet file?

Hi!
I use DocBook 4.5 and the JavaHelp converter from DocBook-XML. The newest version only supports JavaHelp 1.0, but that's not the problem. I can create a working JAR file with my help files.
The problem is, that I can't define the presentation in the HelpSet file, because this is created automatically by the converter.
Ok, I can change the content of the HelpSet file manually, but this is not verry economically. This will be a big effort, because I have to do this for every language and by every little change.
Is there a solution to set the look of the window which displays the JavaHelp?
Greetings,
Christian.

DATA: FILE_TAB TYPE STRING.
SELECTION-SCREEN BEGIN OF BLOCK B02 WITH FRAME TITLE TEXT-B02.
PARAMETERS:
           P_FILE TYPE RLGRAP-FILENAME OBLIGATORY LOWER CASE.
SELECTION-SCREEN END OF BLOCK B02.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
  PERFORM OPEN_FILE USING P_FILE.
FORM OPEN_FILE USING L_FILE.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    CHANGING
      FILE_NAME     = L_FILE
    EXCEPTIONS
      MASK_TOO_LONG = 1
      OTHERS        = 2.
  IF SY-SUBRC <> 0.
    SY-MSGTY = 'I'.
    MESSAGE ID     SY-MSGID
            TYPE   SY-MSGTY
            NUMBER SY-MSGNO
            WITH   SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    STOP.
  ENDIF.
ENDFORM.
FILE_TAB = P_FILE.
  CALL FUNCTION 'GUI_DOWNLOAD'
*Complete the FM
Greetings,
Blag.

Similar Messages

  • How To Access a jar file present outside the war file through a jnlp

    Aoa
    I m new to this forum
    I m having problem with my jnlp file
    i want to know is there any way to access a jar file through jnlp.The problem is that my jnlp file is present in the war file
    and i want to know how to acess a jar file through this jnlp.The scenerio is as below
    I m using ear file on jboss.Its hirerchy is as
    -PAN-war.war
    -launch.jnlp
    -PAN-app-client.jar
    my jnlp file is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="PAN/launch.jnlp">
    <information>
    <title>PanEmirates</title>
    <vendor>M Fazal Ur Rehman</vendor>
    <description>PanEmirates</description>
    <description kind="short">PanEmirates</description>
    <homepage href=""/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="PAN-app-client.jar" download="eager"/>
    <jar href="lib/javafxrt.jar" main="true" download="eager" />
    <jar href="lib/Filters.jar" download="eager"/>
    <jar href="lib/javafx-netbeans-fxuserlib.jar" download="eager"/>
    <jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
    </resources>
    <application-desc main-class="net.java.javafx.FXShell">
    <argument>pan.Main</argument>
    </application-desc>
    </jnlp>
    when i run launch.jnlp file it says unable to download resource http://localhost:8080/PAN/PAN-app-client.jar
    how to access this jar file
    Any help or comment would be highly appreciated
    Regards
    M Fazal Ur Rehman

    Excellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
    Write another EAR file with the following structure:
    ear:
    META-INF/application.xml
    util.jar
    client.jar
    client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
    Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
    If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
    Points to note are:
    you have to repackage util.jar again inside this ear file.
    For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
    Hope this helps,
    Sahoo

  • How to point to the HelpSet file which is inside a Jar

    Hi All,
    Can anyone please help me out on as to how I incorporate my help files (which are inside a jar) with JavaHelp. They are working fine when they are in a folder. But giving an error when i am trying to reference it from a jar file.
    Thanx in advance,
    Debopam.

    Hello,
    I have a little Example, and I hope this will help you.
    Melly
    * Opens the documentation in an JavaHelpViewer.
    protected void showDocumentation() {
         String jarFilePath = ".../test.jar";
         HelpSet hs = getHelpSet(jarFilePath);
         if (hs!= null) {
         HelpBroker hb = new HelpBroker(hs);
    hb.setDisplayed(true);
         else {
         System.out.error("Can't find the helpSet-file.");
    * Returns the HelpSet file which is in included into the given
    * jar file.
    * @param jarFilePath
    * @return the HelpSet file, or null, if the HelpSet file is not found.
    protected HelpSet getHelpSet(String jarFilePath) {
         HelpSet hs = null;
         try {
         String hsName = null;
         JarFile jar = new JarFile(jarFilePath);
         Enumeration entries = jar.entries();
         while (entries.hasMoreElements()) {
              ZipEntry entry = (ZipEntry) entries.nextElement();
              String entryName = entry.getName();
              if (entryName.endsWith(".hs")) {
              hsName = entryName;
              break;
         URL url[] = getURLs("file:" + jarFilePath);
         ClassLoader cl = new URLClassLoader(url);
         URL hsUrl = HelpSet.findHelpSet(cl, hsName);
         hs = new HelpSet(cl, hsUrl);
         catch (Exception exc) {
         System.out.error("Can't find a HelpSet file in: " +jarFilePath");
         hs = null;
         return hs;

  • Should I define tables in the CSS file or from the Table option on the menu bar?

    I am having trouble understanding which table definitions are the ascendant ones: the CSSfile table definitions or the definitions from the Table option on the menu bar. Is there a conflict if I am applying the CSS style to every topic? Who wins...CSS or Table?

    Hi there
    Sorry, but I think you are a bit confused. I'm assuming here that you are referring to defining tables via the toolbar? Where you use this button?
    That simply inserts the table structure which is later styled using CSS.
    Then there is the other option where you click Table > Insert > Table and you do two things. You insert the table structure as well as some special CSS codes that are added to your CSS file.
    Cheers... Rick

  • J2EE, possible to serve clients jsp files that are outside the war file?

    Hi, I was wondering with a J2EE webserver if it was possible to serve clients webpages from jsp files that were outside the client.
    For example say you got your war file in the auto deploy directory on the server and also on the server you got a directory full of jsp files that could be accessed by the webserver just like normal jsp files inside the war file?
    ...I want to do this because I want to be able to add jsp files without rebuilding the war file.
    ....Or is it possible to make the webserver rebuild itself, eg to add or remove files?
    Thanks

    If you are using a S1WS6.1, please try to find a line with WEBAPP in server.xml.
    You should find a line like this.
    <WEBAPP uri="/simple" path="/opt/SUNWwbsvr/https-test/webapps/https-test/simple" enabled="true"/>
    The path parameter shows the directory where the S1WS refers to when the webapplication is executed.
    You can put a jsp into the directory and modify it accordingly.
    Please refer to the following docs. They might help.
    http://docs.sun.com/source/817-6251/pwadeply.html#wp25317
    http://docs.sun.com/source/817-6251/pwadeply.html#wp25890
    thanks,
    -Yuji

  • No dsn is present in the configuration file in the reporting services 2008

    HI i have found this error in the log file of my reporting services ,
    when i comes to the Configuration file in that
    my DSN path is empty no input code is there in that DSN tags
    <DSN>
    <DSN/>
    it shows the empty tags,
    and my Current Report Server Report Credentials are Windows,Service account credentails
    will it take the problem or what
    We have repair the BIDS setup also still not able to solve my issue.
    once this is  resolved now able to send the emails using subscriptions.
    pls infom abut this , i have sufferd this problem last 20 days.
    Please update the above query with high priority
    TanQ

    Hi Ychinnari,
    According to your description, you found error in log file of reporting services, when you come to rsreportserver.config file, the DSN tag is empty.
    DSN specify the database server that hosts the report server database connection string.  The report server database is created, this value will be encrypted and added to the configuration file. To solve the problem, we need to connect to either an
    existing report server database or create a new one for this instance. For detail information, please refer to the following steps:
    Start the Reporting Services Configuration Manager and connect to the report server instance for which you are creating the database.
    On the Database page, click Change Database.
    We can create a new report server database or select an existing database, then click Next.
    Connect to the instance of the Database Engine that you will use to create and host the report server database.
    Specify properties used to create the database.
    Specify the credentials used by the report server to connect to the report server database.
    Review the information on the Summary page to verify the settings are correct, and then click Next.
    Verify the connection by clicking a URL on the Report Server URL page or Report Manager URL page.
    For detail information about Configure a Report Server Database Connection, please refer to the following document:
    https://msdn.microsoft.com/en-us/library/ms159133.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How can I call a Jscript function from XML, which is written seperatly outside the xml file

    Dear All,
    I have made a SharePoint ribbon button which should display an alert message with SharePoint custom list
    ID information. But it has problem for calling the Jscript methods, It may be a XML tag mistake!!! Unable to
    find the error in code line!!!, can somebody please tell me this error by referring my code snippet????
    It is a farm SharePoint solution I have kept the Jscript file in mapped folder named "Layouts"
    It  is showing the error as : JavaScript runtime error: The value of the property 'myFunction' is null or undefined, not a Function object
    That means, as I understand the control is not moving or not calling the function from JScript file....why it
    is so...not able to debug JScript or xml using Visual Studio that makes my effort tedious!!!
    Code:
    Elements.xml
    <CommandUIHandlers>
    <CommandUIHandler Command="ShowAlert" CommandAction="javascript:retrieveListItems()" EnabledScript="return true;"/>
    </CommandUIHandlers>
    <CustomAction Id="Ribbon.Library.Actions.Scripts" Location ="ScriptLink" ScriptSrc="/_layouts/RibAlert.js"/>
    </Elements>
    RibAlert.js
    <script>
    var siteUrl = http://A5-1224';
    function retrieveListItems()
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('Measurements'); //getByTitle('Custom List');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    </script>

    Hi,
    I suggest you write an alert() in your function to check whether it can be executed first.
    If alert() is ok, then it would be an issue of the code with Client Object Model, you can take a look at the link below about How to retrieve List Items Using JavaScript:
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    If alert() can’t be executed, then please check whether the steps of created ribbon button is correct.
    The links below about how to add a custom button to the ribbon:
    http://aarebrot.net/blog/2010/09/adding-a-custom-button-to-the-ribbon-using-a-feature-in-sharepoint-2010/
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-create-custom-button-in-sharepoint-2010-ribbon-user-interface/
    https://pholpar.wordpress.com/tag/custom-actions/
    What’s more, there seems no query succeeded handle function in your code, please take a look at the link provided above for a reference.
    Thanks
    Patrick Liang
    TechNet Community Support

  • How to set  max-heap-size outside the jnlp file?

    Due to bug_id=6631056 It may not be possible to specify max-heap-size within
    the JNLP file for certain jnlp java applications.
    Are there other possibilities to specify this Jvm parameter?
    In the ControlPanel there is the possibility to specify Xmx for applets but not for jnlp.
    I have tried to add properties like
    "deployment.javaws.jre.0.args=Xmx\=128M" without success
    Many thanks

    Even in JNLP also you can specify the max heap size
    <j2se version="1.5+" initial-heap-size="128m" max-heap-size="512m"/>
    Thanks,
    Suresh
    [http://sureshdevi.co.in|http://sureshdevi.co.in]

  • ODI to delete those members which are not present in the source file

    Hi John,
    Using ODI we can delete members by using delete option in the Operation column
    Fine. I would like to delete members from planning which are not there in the source file.
    For e.g if my source file has members A1,A2,A3,and A4 and Planning outline has A1,A2,A3,A4,A5 and A6. I would like to delete only A5 and A6.

    Hi John,
    Its only a one time process. The issue is, we have to concatenate two segments of the COA into one dimension in Planning. But if we concatenate it creates a cartesian product which is not the requirement. Only a particula value of segment 1 are to be joined with segment 2.
    E.g Company 1 is to be joined with Cost center 1.
    Company 2 with Cost center 2
    Company 1 should not get joined with Cost Center 2 and Company 2 with Cost Center1.
    So when we use ERPI and load the first outline it creates all the possibilities of the concatenation. So we would like to delete the unrequired members. If we have the values of the required members in a file, I would like to delete the unrequired members in the planning hierarchy.
    So would like to use the NOT IN function

  • Best practice?-store images outside the WAR file?

    I have an EAR project with several thousand images that are constantly changing. I do not want to store the images in the WAR project since it will take an extremely long time to redeploy with every image change. What is the best practice for storing images? Is it proper to put them in the WAR and re-deploy? Or is there a better solution?

    Perryier wrote:
    Can you expand on this? Where do they get deployed and in what format? How do I point to them on a jsp?
    I am using Sun Application server 9.0, and I don't really think this has a "stand alone" web server. How will this impact it?You could install any web server you want (Apache?). The request comes in and if the request matches something like .jpg or .gif or whatever, you serve up the file. If you have a request for a jsp or what not, you forward the request to the app server (Sun App Server in your case). i.e. your web server acts as a content-aware proxy.

  • How to make an applet to read the Text file present inside a jar

    Hi All,
    I have writen one applet named ReadFile.java which reads a text file present in the same directory and does some manipulation of text file contents.
    The applet code runs successfully when i run the applet in command prompt like
    {color:#ff0000}*java ReadFile*{color}
    And i am getting the needed results.
    Then i made a jar file with the applet code and text file as
    {color:#ff0000}*jar cvf rf.jar ReadFile.class File1.txt*{color}
    Then i have inlcuded this applet inside a html file as
    {color:#ff0000}*<applet code= "ReadFile.class" width= "500" height= "300" archive = "rf.jar" ></applet>*{color}
    after this when i load the html file, the applet code is not executed fully. Its throwing FileNotFoundException: File1.txt.
    Applet is not recognizing trhe text file present inside the jar file.
    Can any body explain me how to overcome this problem. Any setting needs to be done for making the applet indicate the presence of Text file inside the jar file.

    what code in your applet gets the text file and reads it? are you using getResource or something similar?

  • Where does Keynote store the audio files in a presentation

    I have slides with individual audio files. When I import or attach the file and then save the presentation, it changes the file name to .mov extension. Where does Keynote store those files? I would like to edit the saved Keynote version, but cannot locate the .mov file!

    I'm not exactly sure of what you want to do, and I'm not sure if my answer is the most efficient, or even wholly correct, but here goes ...
    When you save a KN presentation (a KN doc) which includes an audio (or movie) file, you can save it 2 (3?) ways: either without or with the file being copied into the document, or as a "package". In a test file I just made with 3 white slides (title, slide with song, second slide with song) the results:
    without: 3.8 MB; with: 9.4 MB; package: 9.4 MB. The essential difference, aside from size, is that if saved without, if you play the KN on another machine which doesn't have those audio files on it, the audio won't be there. To make the KN truly portable, you must save with, or as a package. (I'm not too sure of the concept of package in KN. In PP, saving as a package means you end up with a folder, which contains the PP and the media files, each as separate entities. Saving a KN package yields not a folder but a file, which looks to me identical to the result achieved by simply saving with, and seems to behave identically, as well.) The audio file you used will in any case remain where it was before you used it, but, if the KN doc is saved with, or as a package, a copy of it will go into the KN doc.
    But then, what do you mean by "edit"? What do you want to edit, the KN presentation, or the audio file within it? If the former, I don't understand where the problem might be. If the latter: using the QT inspector within KN, you can change the length of the audio file (where in the song it starts and stops), whether to start it on click, or automatically after transition, or to loop it. If you wanted to do some other, more exotic audio editing, like reverbs or other effects, I'd do that on (a copy of) the original audio file (found wherever it was before) with another app (GarageBand, for instance), and then I'd replace the first, non-edited, version of the audio file in the KN doc with that.
    Have I missed something?
    Message edited by gbdoc: maybe someone will chime in to clarify the difference between "saved with" and a "package"

  • How to add a Font Button in the Top of the Help File

    Dear all,
    In some of the Help Files (HTML Help), i've seen a Font
    button being added in the top of the Help File (for e.g next to
    Home button)...when we click this font button, the font size of the
    Content present in the Help File Increases/decreases
    accordingly....how to add this button in our Help File.
    At present i'm creating a HTML Help using Adobe 6..Kindly let
    me know, if there are any options...
    Thanks with regards

    Hi usureka
    Take a look at the following link. It should guide you.
    click
    here
    Cheers... Rick

  • Problem with the field length restrictions in the WSDL file

    Hi all,
    We have created a XSD file where we have defined fields and given some restrictions (like minLength, maxLength) for each field. See below one ex of one element "Id":
    {code     <xs:simpleType name="Id">
              <xs:restriction base="xs:string">
                   <xs:maxLength value="40"/>
              </xs:restriction>
         </xs:simpleType>
    {code}
    Here we have defined maxLength of this field as 40 chars. Our WSDL uses (refers/import) this XSD file and we ganerates java skeleton using RAD. But at runtime if we set more than 40 chars then also it is accepting. It is not throwing an exception. (In the generated java skeletion these restrictions are not reflected antwhere)
    I have one question that, if such restrictions defined in the XSD file works or not? and is it a industry standard to define restriction in the XSD file?
    If yes then what i need to do more to make it working?
    If not then is there any way to do such validation of the fields that are input to the webservice? Or shall i have to just write my own java class to validate each field?
    Regards,
    Ravi

    Or is it possible that we give length restrictions in the XSD (and import this XSD in WSDL) and generate java skeleton from WSDL then the restrictions defined in XSD are mapped into java classes?
    For ex:
    <xs:simpleType name="Id">
        <xs:restriction base="xs:string">
            <xs:maxLength value="40"/>
        </xs:restriction>
    </xs:simpleType>so when in generated java skeleton we set value to "Id" element which is more than 40 charsthen it should throw a exception?
    Is it possible by default or do we need to write custom validation classes to do validations on such fields?
    Has anybody worked in such scenerios?
    Or how to do field validations in webservice? Simple question.
    Thanks In Advance.

  • Format for Helpset file URL

    I'm running on windows Windows XP.
    I'm new to Javahelp and I downloaded a simple demo app (source at the end of this post).
    I set up an Eclipse project and got the sample to compile fine.
    I placed the help files in the parent of the folder where my compiled class resides. I started
    the app and the help viewer displayed just fine.
    I then moved the help files to another location, and changed the URL to point to the new location as follows:
    URL url = HelpSet.findHelpSet(cl, "file://D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");This time a null pointer exception occurred and my debugger showed the "url" variable to be null.
    I also tried the following with no success:
    URL url = HelpSet.findHelpSet(cl, "file://localhost/D|/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");
    URL url = HelpSet.findHelpSet(cl, "file:///D|/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");
    URL url = HelpSet.findHelpSet(cl, "file://localhost/D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");
    URL url = HelpSet.findHelpSet(cl, "file:///D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");What format should i use?
    Thanks.
    Sample App:
    import javax.help.*;
    import java.net.URL;
    import javax.swing.*;
    public class JavaHelpTest {
       public static void main(String args[]) {
          JHelp helpViewer = null;
          try {
             // Get the classloader of this class.
               ClassLoader cl = JavaHelpTest.class.getClassLoader();
             // Use the findHelpSet method of HelpSet to create a URL referencing the helpset file.
             // Note that in this example the location of the helpset is implied as being in the same
             // directory as the program by specifying "jhelpset.hs" without any directory prefix,
             // this should be adjusted to suit the implementation.
               URL url = HelpSet.findHelpSet(cl, "jhelpset.hs");
             // Create a new JHelp object with a new HelpSet.
             helpViewer = new JHelp(new HelpSet(cl, url));
             // Set the initial entry point in the table of contents.
             helpViewer.setCurrentID("Simple.Introduction");
            } catch (Exception e) {
               System.err.println("API Help Set not found");
          // Create a new frame.
          JFrame frame = new JFrame();
          // Set it's size.
          frame.setSize(500,500);
          // Add the created helpViewer to it.
          frame.getContentPane().add(helpViewer);
          // Set a default close operation.
          frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
          // Make the frame visible.
          frame.setVisible(true);
    }

    Luca-Sanna,
    Thanks for this help. My setup and probably my post are a little confusing. The helpset is on my D drive in this location:
    D:\D_ProgramFiles\JavaHelp\MyStuffI changed the value of the second parameter to findHelpSet to:
    "D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs" But this did not work.
    I placed the helpset files in the same directory as the compiled class and changed the parameter to:
    "helptest/jhelpset.hs"where helptest is the package name and the viewer loaded fine.
    However when it comes to a real application and help files, putting the help files in the same location as the compiled class files is probably not the best technique. I'll have other questions at that time I'm sure.
    It still would be good to know why the first path I indicated above did not work.
    Thanks.

Maybe you are looking for

  • HD movie download problems (error 1000)

    I have recently purchased two HD movies (which I have downloaded) and just purchased Guardians of the Galaxy. Every time I try to download it onto my computers it gets to the end and I get an error (error 1000), I can watch it on my apple TV, but it

  • Referancing objects in the level above the movie clip

    i want to referance objects in the level above the movie clip that i have the AS in.  what i mean is that i have a movie clip on the stage, and that movie clip has some actionscript in it, and that AS needs to refer to an object on the main stage, ho

  • Slow booting mac mini..

    Hi. I have a mac mini (early 2009, 2ghz, 4gb ddr3 memory). For some reason it seems to boot slower than my girlfriends mac mini (late 2006, 1.6ghz 2gb ddr2memory). Both are running 10.6.7 fully updated, connecting to the same network with only a keyb

  • How to use Garage Band to play a live gig (voice and acoustic guitar)

    Hello! I'd like to know if I could I use Garage Band to play a live gig (voice and nylon acoustic guitar). I have an M-Audio fast Track PRO (with 2 plug-ins) as well. Is the M-Audio Fast track strictly for recording or could it be used for live too?

  • I e and how do I remove them

    I found two unknown calendars on my 4g iPhone. How did they get there and how do I remove them