Call Stylesheet from RTF file

Hi
I’m working using EBS.
We have an Oracle template to print the RFQs using stylesheet (xsl file)
One of the requirements is to add five pages before the RFQ is printed.
My problem is: How can I from a RTF print my first pages, go to stylesheet and print the RFQ?
What I did:
I have created a template “supp” in the Stylesheet; in this template I call the root in the stylesheet
I created a RTF to create my 5 pages and import the Stylesheet
I’m able to call the new template supp in the Stylesheet
After that the RTF didn’t print anything and it generates and exception.
I appreciate any help.
Many thanks,
Alex

http://www.apps2fusion.com/forums/viewtopic.php?f=60&t=533
http://winrichman.blogspot.com/
http://winrichman.blogspot.com/2008/09/using-xsl-template-eliminate-carrigae.html
http://winrichman.blogspot.com/search/label/BIP%20Call%20templates

Similar Messages

  • How to display data from *.rtf file with apex in user-frienldy format?

    Hello!
    Well, in my database I have column "Problem" which type is CLOB, and there is text from some *.rtf file, e.g.
    "{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset238{\*\fname Arial;}Arial CE;}{\f1\fmodern\fcharset238{\*\fname Courier New;}Courier New CE;}{\f2\fnil Arial;}} {\colortbl ;\red0\green0\blue0;\red0\green0\blue68;} \viewkind4\uc1\pard\cf1\lang1045\f0\fs20 Dla podanego poni\'bfej dokumentu XML zdefiniuj schematy XML (pliki XML-Schema), kt\'f3re pozwoli\'b3yby na jego walidacj\'ea. Przy definicji ka\'bfdego ze schemat\'f3w okre\'9cl jego nazw\'ea. \par \par \pard\cf2\b\f1 <?xml version="1.0" encoding="UTF-8"?> \par <s3:A1 xmlns:s1="udasie" xmlns:s2="czy" xmlns:s3="nie" \par xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \par xsi:schemaLocation="nie schemat3.xsd czy schemat2.xsd" \par C3="u"> \par \lang1033 <C3>d</C3> \par <B2>a</B2> \par <s1:A1 s1:A1="s"> \par \lang1045 <s1:B2>i</s1:B2> \par <s1:C3>e</s1:C3> \par <s2:B2> \par <A1>na pewno</A1> \par </s2:B2> \par </s1:A1> \par </s3:A1>\fs28 \par \pard\cf1\b0\f2\fs20 \par } ?
    And the problem is:
    in my APEX appliactions I only want to display this *.rtf text in user-friendly format (http://cerber.cs.put.poznan.pl/~inf71287/screen.png).
    Is there any simple way to do this?
    This is how it looks now: http://cerber.cs.put.poznan.pl/~inf71287/not_good.png - unreadable ;-)
    Thanks for any suggestions :)
    Buczuss
    Message was edited by:
    Buczuss

    A new preference has been added to customize the import delimiter in main code line. This should be available as part of future release.

  • Calling method from jsp file

    Hi
    is it possible to call any method with in the class except handle method from jsp file?

    You can call , but it would not be a good design approach.A droplet can do the same task for you.
    otherwise :
    eg :
    <%@ page import="com.mypackage.MyClass"%>
    for Static access :
    <%
    String test= MyClass.myMethod();
    %>
    for normal classes :
    <%
    MyClass object = new MyClass();
    String test= object .myMethod();
    %>
    http://stackoverflow.com/questions/10918526/call-java-method-in-jsp-file
    http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html?page=2
    ```
    Praveer
    Edited by: Praveer Rai on Mar 26, 2013 5:08 PM

  • Calling  Midlets from WML file

    Hi all,
    We are developing a J2ME application to download and Play ringtones from a server. We need to integrate this with a WAP browser application. Our client has a WAP site used to browse for different kind of tones. But, they don't have any option to download and preview the tone. We have a J2ME Midlet which can do that. So, How can we embed this Midlet in the wml file ( like embedding an applet in HTML file) . I understood that we can install the Midlet by giving links to the .jad file from wml file. Once it is installed how do I invoke that MIDlet for different events in the WML file.
    Thanks
    Ibrahim

    Hi ,
    No answers to this good question :-) . I got an answer which says it is NOT possible to invoke MIDlet application from a WML code . All we can do is download the .jad file using a WML page . JAM ( Java Application Manager) will install the app using the information in the downloaded .jad file .
    If this is true , What does this following Paragraph, extracted from one of the papers of Mr.Bill day, (Technical Evangelist from SUN) mean
    " In a sense, then, Java technology is very good at many of the things in which WAP is
    lacking: Java techology and WAP are complementary technologies.
    One option for using the two together is to have a WAP browser in the phone, and to
    have a VM that implements the CLDC and MIDP specifications. This virtual machine
    might be the KVM, or it might be another VM, so long as it is compliant with the J2ME
    CLDC and MIDP specifications. The WAP browser and the J2ME environment could
    then call each other via an API between the two. When the JAM wants to run a Java
    application, it has the WAP browser do the download via its standard mechanisms,
    and then the JAM manages the installation of the Java application and its execution
    by the JVM. If the JVM wants to put some text up in the device screen, it tells the
    browser that, "This is what I'd like you to display" via the standard callback
    mechanism.
    Hopefully, what we will see in the longer term are WAP and other micro browsers
    written in the Java programming language themselves. (In fact, there are several
    Java technology based WAP micro browsers available already; refer to the J2ME
    Archive for examples.) In most of the non-Java technology browsers in phones now,
    if you want a new version or a new feature you have to buy a new phone. A micro
    browser based on Java technology could give you extra flexibility in that you could
    update your WAP browser itself, on-the-fly, ieven over the air. You could keep the
    same phone and download browser updates as they become available. This would
    benefit consumers by keeping their handset costs down and benefit operators by
    allowing them to add new features to their service more easily and quickly. ".
    Can any one explain what he was trying to say, if calling Midlet application from WML is NOT possible.

  • How to generate XLIFF File from RTF file

    Hi,
    I have my rtf file template. I need this report in English as well as in Russian. Ho to generate the xliff file for Russian translation.
    Thanks in advance!
    Arvind

    You can basically upload your rtf file to the oracle apps templates repository. There you can export the xliff file, and bring it back to your desktop. Edit the file ( the xml field target ), and upload it back to oracle apps.
    Let me know if you have questions

  • What is the syntax for calling function from class file by jsp

    does anyone here knows what is the syntax of how to call a function from java class file by javascript code or any way to call it?
    and where should i put the calling function code? because the function is called depend on the user click.
    for example
    <%=pc.functionName(a,b)%>
    for the variable a and b, how can i get the value from html textbox and put it in a and b...
    urgent needed...
    thx

    Jsp's are executed before the Html forms are created and loaded. Dont try to use a java code function calling on a javascript click. You'll have to explicitly redirect it into a servlet where in you can call the function you want.
    Well! another way could be using AJAX. That seems to be powerfull enough and it might also serve your purpose.
    Hope this helps

  • Simple Question Calling methods from Java files through JSP without JVM

    Hi.
    I've got a simple question (forigve my newbieness)...
    If I'm running Tomcat can I exectue a method in a compiled Java file from a JSP page without having the JVM installed on the server?
    Any thoughts or additional comments would be appreciated.
    Many thanks.

    No... but that's because you can't run Tomcat without
    a JVM installed on the server.
    If you are running Tomcat, you are running a JVM for
    the JSP pages to run in, in which case, yes, the JSP
    pages can call the other Java code... as long as it's
    in the classpath.Thanks a lot for the replies.
    So just to check, if I sign up with a hosting company that offers Tomcat then the JVM will be installed on the server and I can call other Java code as long as it's in the classpath?
    I just want to make sure before I sign up with a hosting company =D
    Thanks again!

  • Calling method from SWF file wtih javascript, when swf file is not loaded in any browser

    Hi There,
    I have a question regarding flex and javascript integration:
    1. We have created certain components and bundle them in swf. these swf file uses webservice to connect to backend code written in java.
    2. We have deployed swf file and backend on the same tomcat server.
    3. Backend server send some datapoint to UI and plot graph and displyaed to user.
    4. Now if user generate graph from datapoint and want to export it, we are tranferring image of that graph from UI to backend. No issues in this process.
    5. Now the question is. let say user has not open any swf file in browser and backend scheduling job want to generate the graph. How we will connect to swf file.
    6. Is ther any way we can connect or call method of swf from java/jsp/html/javascript code in this scenario without loading swf file in browser??
    Please help me!!!
    Thanks
    Sonu Kumar

    Both test sites work just fine for me.
    The "Update plugin" message is exactly what would be displayed if no .swfobject file at all was found... so it may not be the "version11" thing but rather, perhaps something else is messed up with the .swfobject file.
    File can be found in both folders:
    http://www.pureimaginationcakes.com/test/Scripts/swfobject_modified.js
    http://www.pureimaginationcakes.com/Scripts/swfobject_modified.js
    and file does download when downloading the html page (just check the cache).... but for some reason it doesn't seem to be working.... Hummmmm????
    Adninjastrator

  • Call procedure from batch-file

    Hello,
    I want to write a batch-file which call a stored procedure and deletes a file in a directory.
    I wrote in my batch-file this. But it doesn't work.
    SQLPLUS scott/tiger@ proc
    del c:\test.txt

    You put the space on the wrong place.
    Try this:
    SQLPLUS scott/tiger @proc
    del c:\test.txt

  • How to call methods from .mxml file from actionscript file

    I have a Example.as and a Test.mxml.
    In this Test.mxml, I have a function which is something like:
    public function doTest():void
         Alert.show("testing!");
    How do I from example.as call this function doTest() from Test.mxml?
    I tried declaring public var test:Test inside my Example.as but I'm still unable to call that function out.
    Any idea how?

    Hi Bryant,
    You need to create an instance of the component and then attach it to the display list then only you can access the Controls with in your component other wise the controls and components are not created or initialized that's why you are thrown the null object reference error.
    So you need to do somethink like below:
    var myTestObj:Test = new Test();
    this.addChild(myTestObj); //Adds the component to DisplayList(You need to add this line of code in order to avoid the error)
    myTestObj.doTest();
    If you add your component in mxml then the component will be automatically added to the display list and you dont need to add explicitly to the display list.
    <comp:Test id="myTestObj" />
    And now if in your actionscript you call myTestObj.doTest(); no error occurs and you can see the Alert message.
    Thanks,
    Bhasker

  • Error in calling servelt from html file

    Hi All,
    In my application
    Servlet class looks like this:
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SelectBeer extends HttpServlet {
         public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
         response.setContentType("text/html");
         PrintWriter out =response.getWriter();
         out.println("Beer Selection Advice<br>");
         String c= request.getParameter("color");
         out.println("<br>Got beer color"+ c);
         BeerExpert be = new BeerExpert();
         List list=be.getBrands("amber");
         Iterator it = list.iterator();
         while(it.hasNext()){
              out.print("<br>try:"+it.next());
    }The XML file as follow:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>HelloWorld</servlet-class>
      </servlet>
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>SelectBeer</servlet-name>
        <servlet-class>Test/SelectBeer</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/servlet/HelloWorld</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SelectBeer</servlet-name>
        <url-pattern>SelectBeer</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>The html file as follow:
    <html><body>
    <h1 align="center">Beer Selection Page</h1>
    <form method="POST"action="Test/SelectBeer">
         Select beer characteristics<p>
         Color:
         <select name="color" size="1">
              <option>light
              <option>amber
              <option>brown
              <option>dark
         <select>
         <br><br>
         <center>
              <input type="SUBMIT">
         <center>
         </form></body></html>but after running the form.html i am geeting Selelctbeer is unavailable?
    Could you please explaing if i am missing anything?
    Regards,
    Divya

    hi,
    make sure that the class is in the package TEST.
    manik;

  • How to include preset in RTF import option while importing RTF files?

    Dear all,
    I created a script which will place text from rtf files present in a folder to an active document on different page based on match. I am using a preset name "myRTF" which i will use when i import rtf files without script.
    Is there a way to include this preset in script?
    I have checked many places....... but did not found.
    #target Indesign
    var myDoc = app.documents.item(0);
    var sourceFolder = Folder("/Users/admin4/Desktop/ec_txt");
    myFiles = sourceFolder.getFiles("*.rtf");
    var myFrame1 = myDoc.pageItems.itemByID(111076);  // switerland
    var myFrame2 = myDoc.pageItems.itemByID(111114);  // eurozone
    var myFrame3 = myDoc.pageItems.itemByID(111146);  // germany
    for (var i=0; i < myFiles.length; i++)
        switch (myFiles[i].name.slice (6, myFiles[i].name.lastIndexOf("_")))
            case "Switzerland_en":
            myFrame1.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
            break;
            case "Eurozone_en":
            myFrame2.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
            break;
            case "Germany_en":
            myFrame3.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
            break;

    Hi Dave, Peter,
    thanks for your reply. In that case i will check WordRTFImportPreference but not sure if customize style import can be done for paragraph style sheets.
    for example: word has "normal" and "head1" style but i want to map to indesign Body_light and H1 styles respectively.
    Virender

  • Inputting an object of class Student into a program from a file

    Hi,
    I need to read in objects of a class called "Student" from a file.
    The Student class looks like this:
    import java.io.Serializable;
    public class Student implements Serializable
    private int id;
    private String lastName;
    private String firstName;
    private double gpa;
    public Student(int a, String b, String c, double d)
    id = a;
    lastName = b;
    firstName = c;
    gpa = d;
    public int getId()
    return id;
    public String getlastName()
    return lastName;
    public String getfirstName()
    return firstName;
    public double getgpa()
    return gpa;
    public String toString()
    return "ID: " + id + " FIRST NAME: " + firstName + " LAST NAME: " + lastName + " GPA: " + gpa;
    I know how to read text from a file, however I do not know how to read an object from a file. I know that the class has to be serializable in order to read in the objects, however I am having trouble reading and saving the objects read into a variable.
    Can someone explain or give a same algorithm to do this?
    Thanks,
    Jackson

    Hi,
    You will have to use java.io.FileInputStream class to create a file stream where you will be storing the object state and and java.io.ObjectInputStream to actually dump the object state into it.
    Further, you have to use java.io.FileOutputStream and java.io.ObjectInputStream to open the file and read back the object state into the Student objects. However, you have to explicitly cast them into Student objects since the return type for the readObject() method is java.lang.Object.
    Here is the code where I serialized 2 Student objects and un-serialized them back into the program. (You can do this within different programs, or even different JVM instances).
    class serializeDemo
         public static void main(String args[])
              Student s1 = new Student(11, "Hanks", "Tom", 8.55); //creating a student
              Student s2 = new Student(22,"Pitt", "Brad", 7.87); //another student
              try
                   // SERIALIZE STUDENT DATA
                   FileOutputStream fo = new FileOutputStream("studentSer.ser");
                   ObjectOutputStream os = new ObjectOutputStream(fo);
                   os.writeObject(s1);
                   os.writeObject(s2);
                   System.out.println("The student objects have been serialized");
                   os.close();
                   //UN-SERIALIZE THE SERIALIZED DATA
                   FileInputStream fi = new FileInputStream("studentSer.ser");
                   ObjectInputStream oi = new ObjectInputStream(fi);
                   Student s1_recovered = (Student)oi.readObject();
                   System.out.println("Object S1 recovered : " + s1_recovered.getfirstName() + " " + s1_recovered.getlastName());
                   Student s2_recovered = (Student)oi.readObject();
                   System.out.println("Object S2 recovered : " + s2_recovered.getfirstName() + " " + s2_recovered.getlastName());
                   oi.close();
              catch(Exception e)
                   e.printStackTrace();
    }You can actually try printing the contents of the studentSer.ser file and you will find the object members and their values separated by some non-printable text.
    Regards,
    Nagendra U M
    Edited by: Nagendra_U_M on Mar 30, 2010 11:18 PM

  • API to extract text from RTF to XLIFF

    Can the java api be used to extract text to XLIFF from RTF files? If so, can someone point me to the javadoc for this feature.

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

  • HOW TO PARSE RTF FILES ?

    Hi,
    I need some help regarding RTF files in Java. I need to parse content from RTF file and upload it into a database. i have been facing difficulty selecting the text out from the RTF file. Is there any API available in J2SE 1.3 which i could use to parse the text from the RTF files ?
    Help would be greatly apperciated
    Thanx
    Sampath

    You can find some RTF parsers at
    http://cobase-www.cs.ucla.edu/pub/javacc/

Maybe you are looking for