Does APEX re-write output HTML from an application process

I have a process which has the following line
htp.prn('<input type="hidden" name="F05" value="' || l_submitted_previously || '"/>');this however is outputting the following html
<input name="F05" value="N" type="hidden">as you can see the parameters in the tag are not in the order I specified and also the closing slash is omitted.
Can anyone explain this?

APEX 3.2.1.00.12
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
Unfortunately I doh't know the web server architecture
Firefox v13
Custom theme
Custom templates
Hidden item
I don't think the last 4 items listed above will have a bearing on this because it's a dynamically produced item created by an application process. I have pasted the entire code for the process in case that helps.
DECLARE
     l_year_passed number := wwv_flow.g_x01;
     l_expenditure_value number;
     l_submitted_previously varchar2(1) := 'N';
BEGIN
     SELECT DECODE(COUNT(*),0,'N','Y')
     INTO l_submitted_previously
     FROM F_EXPENDITURE
     WHERE FINANCIAL_YEAR_KEY = l_year_passed;
    for rec in (SELECT *
                FROM l_service_group
                WHERE service_designated_year<=l_year_passed
                AND service_designated_year>0
                order by NON_SERVICE_GROUP_FLAG, SERVICE_GROUP_SHORT_NAME)
     loop
     BEGIN
          SELECT EXPENDITURE_VALUE
          INTO l_expenditure_value
          FROM F_EXPENDITURE
          WHERE FINANCIAL_YEAR_KEY = l_year_passed
          AND SERVICE_GROUP_KEY = rec.SERVICE_GROUP_KEY;
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
          l_expenditure_value := NULL;
     END;
          htp.prn('<tr><td><label for="F01_' || rec.SERVICE_GROUP_KEY || '"><span class="t13RequiredLabel"><img src="/i/requiredicon_status2.gif" alt="">' || rec.SERVICE_GROUP_SHORT_NAME || '</span></label></td><td><input type="text" name="F01" id="F01_' || rec.SERVICE_GROUP_KEY || '" value="'||l_expenditure_value||'"/><input type="hidden" name="F02" id="F02_' || rec.SERVICE_GROUP_KEY || '" value="' || rec.SERVICE_GROUP_KEY || '"/></td></tr>');
     end loop;
     if l_year_passed = 0 then
          htp.p('<p>Please select a financial year</p>');
     end if;
     htp.prn('<input type="hidden" name="F05" value="' || l_submitted_previously || '"/>');
END;

Similar Messages

  • How can I put an output stream (HTML) from a remote process on my JSF page

    Hello,
    I've a question if someone could help.
    I have a jsf application that need to execute some remote stuff on a different process (it is a SAS application). This remote process produces in output an html table that I want to display in my jsf page.
    So I use a socket SAS class for setting up a server socket in a separate thread. The primary use of this class is to setup a socket listener, submit a command to a remote process (such as SAS) to generate a data stream (such as HTML or graphics) back to the listening socket, and then write the contents of the stream back to the servlet stream.
    Now the problem is that I loose my jsf page at all. I need a suggestion if some one would help, to understand how can I use this html datastream without writing on my Servlet output stream.
    Thank you in advance
    A.
    Just if you want to look at the details .....
    // Create the remote model
    com.sas.sasserver.submit.SubmitInterface si =
    (com.sas.sasserver.submit.SubmitInterface)
    rocf.newInstance(com.sas.sasserver.submit.SubmitInterface.class, connection);
    // Create a work dataset
    String stmt = "data work.foo;input field1 $ field2 $;cards;\na b\nc d\n;run;";
    si.setProgramText(stmt);
    // Setup our socket listener and get the port that it is bound to
    com.sas.servlet.util.SocketListener socket =
    new com.sas.servlet.util.SocketListener();
    int port = socket.setup();
    socket.start();
    // Get the localhost name
    String localhost = (java.net.InetAddress.getLocalHost()).getHostAddress();
    stmt = "filename sock SOCKET '" + localhost + ":" + port + "';";
    si.setProgramText(stmt);
    // Setup the ods options
    stmt = "ods html body=sock style=brick;";
    si.setProgramText(stmt);
    // Print the dataset
    stmt = "proc print data=work.foo;run;";
    si.setProgramText(stmt);
    // Close
    stmt = "ods html close;run;";
    si.setProgramText(stmt);
    // get my output stream
    context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    ServletOutputStream out = response.getOutputStream();
    // Write the data from the socket to the response
    socket.write(out);
    // Close the socket listener
    socket.close();

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • How to output HTML from com.sun.HTTPExchange

    My trival web server outputs output plain text. How do I output HTML?
    Thanks,
    Siegfried
    package xml.webservicesDemo;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.InetSocketAddress;
    import com.sun.net.httpserver.HttpContext;
    import com.sun.net.httpserver.HttpExchange;
    import com.sun.net.httpserver.HttpHandler;
    import com.sun.net.httpserver.HttpServer;
    public class WebApp implements HttpHandler {
         public static void main(String[] args) {
              try {
                   HttpServer server = HttpServer.create(new InetSocketAddress(8123),0);
                   HttpContext ctx = server.createContext("/apps/myapp/myNewApp",new WebApp());
                   server.setExecutor(null);
                   server.start();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public void handle(HttpExchange t) throws IOException {
              InputStream is = t.getRequestBody();
              byte[] bBody = new byte[1000];
              int count = is.read(bBody);
              String sBody = bBody.toString();
              String response = "hello siegfried";
              t.sendResponseHeaders(200, response.length());
              OutputStream os = t.getResponseBody();
              os.write(response.getBytes());
              os.close();          
    }

    For that kind of work, I wouldn't recommend this class ( sorry, my other reply is to your first question ).
    This is a SIMPLE http server. You would have to emulate an application server ( like Tomcat ) yourself if you want full-blown servlet / jsp functionality. You could define a simple jsp-ish domain specific language and parse it yourself, though.
    That might be an interesting exercise, but not one that would appeal to me.

  • Apex 2.2 copying pages from other applications

    Is it possible to copy reports and pages from other applications with APEX 2.2 ?

    Ben,
    Pages, yes. On the Page Definition page, use the Copy button and follow the wizard.
    Scott

  • Display A Success Message From An Application Process

    Apex 3.2
    I have an on demand application process, which is resetting my application, except application items
    BEGIN
       FOR c IN (SELECT page_id
                   FROM apex_application_pages
                  WHERE application_id = :app_id)
       LOOP
          apex_util.clear_page_cache (c.page_id);
       END LOOP;
    :F270_REFRESH_INTERVAL := null;
    END;
    I have a list item that calls some javascript on page zero
    <script type="text/javascript">
    function resetapp(){
    var answer=confirm("Do you really want to reset the application ?");
    if(answer==true) {
    var get = new htmldb_Get(null, null, 'APPLICATION_PROCESS=RESET_APPLICATION');
    var gReturn = get.get();
    redirect('f?p=&APP_ID.:1:&APP_SESSION.');
    </script>
    The user clicks on the item in the list. A confirmation appear and when they click ok,
    then the on demand process runs and they are directed to page 1.
    This is all working ok.
    My problem is that I would like to display a message (a sucesss message) on page 1.
    I have an unconditional branch on page 1 with the tick box checked for include process message.
    I have tried the following in my application process, but none seem to work.
    apex_application.g_print_success_message := 'Application Has Been Reset';
    htp.prn('Application Has Been Reset');
    HTP.P('Application Has Been Reset');
    How can I do this ?
    Gus

    Can anyone help ?
    Gus

  • Apex: output message from pl/sql process

    Apex 4.2
    THis is kind of an Apex and Pl/Sql question, but more so Apex because I'm using that environment. I have a pl/sql process with an IF - Else statement. It's a real simple process where you check:
    IF P101_Count > 1 Then
       Do stuff;
    Else
       Output an error message.
    The process runs when I click a button.
    I am just not sure how to get an error message to display to the screen. I am not sure of the syntax.
    Any help on this topic would be greatly appreciated. Thanks in advance.

    Well, there a lots of ways to do this but, if you just want to see it on the screen, the easiest way is to add a Page Item (a Text Field for example). Then, in the Else portion just set it equal to the message that you are trying to display.
    If ( :P101_Count > 1 ) Then
    -- Do Stuff
    Else
    :P1_MY_MESSAGE := 'Hello World!';
    End If;
    -Joe

  • Where does apex get user details from for login in

    sorry for this stupid question. I have been looking up in google "where does apex get user details from for login in" and nothing answers my question. Basically I wanted to know when you log in your application how does apex know you have access to this application. How does it know you are a valid user because I am creating an application which basically checks if a user exist in one database and also checks if he/she exist in the second database.
    Thanks you and sorry if this is very newbie

    In the page 101 which is the login in page in the login in process. I have this in the source its not working in term of it is not letting me login in anymore even though I exist in the user table.
    DECLARE
    v_access_level number;
    BEGIN
    SELECT count(*)INTO
    v_access_level
    FROM USER
    WHERE UPPER(USER_NAME) = UPPER(:APP_USER);
    IF NVL(v_access_level, 0) !=0 THEN
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => :P101_PASSWORD,
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':9'
    ELSE
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => 'YtYuTrFRd',
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':9'
    END IF;
    end;
    please bare in mind that my USER table DOES NOT have a password because the authentication scheme as all the details of login in to any systems. I am only trying to check if the username exist in my USER table.
    Thanks

  • UNC Path is not valid or does not have write permissions

    Hi,
    I've just downloaded the MVMC 3.0 SA as well as the admin guide. My environment is the following setup:
    - Windows Server 2012 R2 as Hyper-V (SRV-1-011-HypV1, not domainjoined!)
    - Windows Server 2012 R2 as VM SRV-1-011-HypV1 (SRV-1-030-DC01, Domaincontroller)
    - Windows Server 2012 R2 as VM for Conversion with MVMC 3.0 hosted on SRV-1-011-HypV1 (SRV-1-032-File1, not domainjoined!)
    - VMWare ESXi 4.1, where the source VM resides (stone001)
    I've completed the wizard for converting a VM to Hyper-V and I'm Stuck at the Summary Check:
    "Blocking Issue(s):
     1: UNC Path '\\srv-1-011-hypv1\Converted' is not valid or does not have write permissions."
    From the admin guide this is described as Issue number 2:
    The machine, on which you   are running the conversion, and the destination Hyper-V host are not members   of the same Active Directory
    domain.
    Ensure that the machine on   which you are running the conversion and the destination Hyper-V host are   members of the same Active Directory
    domain.
    SRV-1-011-HypV1 and SRV-1-032-File1 are both Member of the "Workgroup" and are not domain joined. Right now, it is impossible to join the
    Hyper-V host to its VM-hosted Domain due to the required system restart at the domain join, while domain is going to be shut down. How can this issue be resolved?
    Further: Is there any conflict known operating MVMC from the destination Hyper-V host itself? Will the issue occur in this scenario too, as long as
    the hyper-V has not joined the domain?
    Kind regards
    S.Kuemmel

    Hi,
    in my case it worked when the Server(-VM) on which we installed the MVMC AND the target-file server were joined to the domain.
    We also created a domain account, which has write-permissions to the target fileshare. We used this domain account for logon on the MVMC-machine and for running the MVMC Wizard.
    Hope that helps
    Regards
    Robert

  • Make Firefox open URLs passed from external applications in new tabs

    I upgraded Firefox (Mac) from 3.6.13 to 3.6.14 yesterday.
    Since then Firefox does not respond to URLs passed from external applications, as it has always done.
    The external apps pass the URL, FireFox is brought to the front, but no Tab (or new window) is opened.
    Nothing else has changed. Firefox is selected as my default browser (in Safari Prefs) and there is only one copy of FireFox on my laptop,

    Hi David
    Go to Safari Preferences>General. At the bottom you'll see an option for opening in a tab. Makes sure Tabs are enabled in your Tab panel.

  • How to output HTML when called from a browser

    We are trying to replace a small web app with a bpel app so it has to return HTML. I keep getting XML of the HTML as output from this simple app. It doesn't interpret the html. The bpel uses a simple assign that puts an HTML string into the "body" message then passes it to the "reply".
    I have found out how to call this from the browser by changing "orabpel" in the url to "httpbinding" and then adding the "operation" onto the endpoint.
    from: http://server:7777/orabpel/default/ws1/1.0
      to: http://server:7777/httpbinding/default/ws1/processIs it possible to output html back to the browser and have the bpel look like a web page? Setting the mimetype of the output message type to "text/html" seems to have no effect at all.
    Here is my wsdl:
    <?xml version="1.0"?>
    <definitions name="HTTPGetService"
                 targetNamespace="http://services.otn.com"
                 xmlns:tns="http://services.otn.com"
                 xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                 xmlns="http://schemas.xmlsoap.org/wsdl/"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
                 xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
        <message name="HTTPGetServiceRequestMessage">
            <part name="Region" type="xsd:string"/>
            <part name="EffectiveDate" type="xsd:string"/>
            <part name="EndDate" type="xsd:string"/>
            <part name="acc1" type="xsd:string"/>
            <part name="acc2" type="xsd:string"/>
        </message>
        <message name="HTTPGetServiceResponseMessage">
            <part name="body" type="xsd:string"/>
        </message>
        <!-- portType implemented by the HTTPGetService BPEL process -->
        <portType name="HTTPGetService">
            <operation name="process">
                <input message="tns:HTTPGetServiceRequestMessage"/>
                <output message="tns:HTTPGetServiceResponseMessage"/>
            </operation>
        </portType>
        <binding name="HTTPGet" type="tns:HTTPGetService">
            <http:binding verb="GET"/>
            <operation name="process">
                <http:operation location="/process"/>
                <input>
                    <http:urlEncoded/>
                </input>
                <output>
                    <http:urlEncoded/>
                    <mime:content type="text/html" part="body"/>
                </output>
            </operation>
        </binding>

    Hi,
    Open up admin console. Expand "Servers" node to view servers in domain.
    Right click on a server (or select Logging/ General tab) and select "view
    server log".
    Regards,
    Jon

  • How to get multiple html output file  from an xml document via xslt?

    Hi,
    the purpose is to generate multiple html output file from one xml file
    depending on special tag.
    exp: i have an xml file which contains sevreral articles so how to get each article section in an independant html file
    Thanks for help

    Not a standard feature of XSLT. But Michael Kay's XSLT implementation, SAXON, provides that as an extension. Get it here:
    http://saxon.sourceforge.net/

  • Write HTML Files from java application

    Hello,
    i have to write HTML files from a java application.
    I am asking if anybody can give me a hint about a good simple solution (library) which can do some of the job for me.
    i know FOP for example is good to create pdf or html from xml, but i dont want to go via xml.
    the sites i need are really very simple presents emails.
    body and maybe a link for next and pervious.
    however, thank you in advance.
    a little hint will also help :)
    Sako.

    That, too, is my question.
    Be the "server" local or remote, wouldn't JSPs still
    be the easier solution? No. it will not. because you need a server. Server for a stand alone application is not esier. according to who said JSPs are easy?
    Its very very difficult.
    >
    When answering, please clarify. I'm a bit of a newbie
    here. :)To get sence about how hard is JSP, check Struts. this is very good open source Framework to simplify the JSPs. but it still complecated enough.
    or Tapestry my lovely open srouce Framework.
    its easier than Struts. but sill complecated because of the documentation.
    All in all, using JSP is the purpose of Java in the internet. but not for me. My application will not be available in the internet, i.e. no server, i.e. no need for JSP.
    i hope that helps a little.

  • Is html/pdf output format from BO 508 compliant?

    Hi Experts -
    I heard BO reporting tool can output html/pdf format.  Are they 508 compliant?  If not, how can I make them into 508 compliant please advice.
    Thanks

    Hi
    You can make it 508 complaint  by choosing/check marking this option from BusinessObjects InfoView > Preferences > Webi > 508 Complaint.
    Please note that this forum is not the right area to discuss BO technical questions.
    Raise your future queries at: SAP BusinessObjects Web Intelligence
    Hope this helps.
    Best,
    DeepB

  • Immediately write outputs - more on modbus plus performance

    more on modbus plus performance
    I have more dilemmas considering modbus plus. I'm trying to reduce the unnecessary traffic as much as possible, so I've unchecked "immediately write outputs" in advanced settings for modbus plus hoping that lookout will write to plc only when modbus object is polled. However, it seems that it doesn't happen that way, looks to me like lookout is writing to plc poll or no poll. I need to cut down the traffic because I have delay in system response and I'm considering lookout's share in it.
    I have a feeling that making a system with deterministic response (which should be one of mb+ highlights) is quite cumbersome and sometimes impossible.
    Can anyone comment on this issue and maybe share ideas for improving modbus response time? Is there anything about modbus plus and lookout on ni.com that I'm not aware of?
    Darko

    By default, Lookout writes Outputs immediately (without waiting for the poll).  BUT, if you uncheck the "immediately write outputs" setting, it should write only when polled.  If it's not doing this, it's a bug -- can someone at NI verify this? 
    Couple of things you can try for improving communication performance:
    1. Make sure you're not writing outputs every-so-many polls (unless you really have to).  By default, Modbus Object writes the Outputs every 100th poll -- even if none of them have changed.  Use the Modbus INI settings to change this behaviour:
    http://digital.ni.com/public.nsf/allkb/2E64D5CF87CA6A1086256BB30070DC1A
    2. If you have some IO points which don't need to be read as fast as others, use a second Modbus object for these with a slower poll rate (but on the same address, etc.). 
    3. Use an appropriate update deadband for your analog reads -- you can filter out "noise" from data this way.  Note that the IO are still read every poll, but aren't propagated to the rest of the system unless the deadband is surpassed.
    Hope this helps,
    -Khalid

  • Output HTML to proper page

    I call a servlet from a second window(thirdWin) that was created/opened by the first window(window) in HTML. The servlet writes out HTML to the browser using the following code(note HTML$ is a java class that contains methods of HTML code lines):
    PrintWriter out=response.getWriter();
            HTML$.pageBegin();
            HTML$.tableHeader("Murph");The problem is that the servlet writes/ outputs the HTML code to the third window(thirdWin). I want to call the servlet from the third window and write/output the new HTML to the first window. There must be a way of accomplishing this. One, by setting the browser window directory to the original window(first window) before the servlet is called so that the new HTML gets written to that page, or two, by setting the brower window to the proper window in the servlet before writing the HTML out to the window.
    The following is the code in the servlet that opens the thirdWin. It is a javascript function whose body is a Servlet that has been written it out to the browser page. Do not get confused with me calling it the thirdWin it is acually a second window opened by the opener, I have just called it thirdWin.
    out.println("thirdWin = open('', 'UserName', 'height=300, width=500 scrollbars=yes');");
          out.println("thirdWin.document.write(\"<TITLE>Enter UserName</TITLE>\");");
             out.println("thirdWin.document.write(\"<BODY BGCOLOR=white>\");");
             out.println("thirdWin.document.write(\"<FORM name='showEdit' method='post' action='showEditProfile'>\");");
             out.println("thirdWin.document.write(\"<table><tr><td width=120>User Name :</td><td width=300><input type='text' class='listRow' name='user_name'></td></tr></table>\");");
             out.println("thirdWin.document.write(\"<table><tr><td width=120>Password :</td><td width=300><input type='text' class='listRow' name='user_name'></td></tr></table>\");");
             out.println("thirdWin.document.write(\"<table><tr><td width=120>Search :</td><td width=300><input type='submit' name='showEdit' value='Show Profile'/></td></tr></table>\");");
            /**out.println("thirdWin.document.write(\"<table><input id =\"subfds\" type=\"button\" name=\"Submit5\" value=\"Enter Information\" onclick=\"\"/></table>\");");**/
             out.println("thirdWin.document.write(\"</FORM>\");");
             out.println("thirdWin.document.write(\"</BODY>\");");
             out.println("thirdWin.document.write(\"</HTML>\");");
          out.println("thirdWin.document.close()");

    I have a database, it holds information of a user, my applet interacts with the database to retrieve/write etc. What i want to do is when some1 clicks a button to open a new Internet Explorer page and then output a record from the database. Just like System.out.println(forname + surname + date + score);
    I dont know how to open a new IE and then output the info to it.
    I dont have any code for this part as I havent written it and I dont think there is any value in posting code to retrieve from database. We can just treat them as strings? String forname, surname etc.

Maybe you are looking for

  • How do I install iphone configuation utility?

    How do i install iphone configuration on an ipad2?

  • Cannot Save Alternate IP Address WIN8/8.1

    I have several Windows 8/8.1 computers that we cannot set a static alternate IPv4 address.  In my case I have both Ethernet and Wifi adapters and I cannot set an alternate IP address for either adapter.  I can configure the IP.  Click ok and ok again

  • SEO for iweb..... any suggestions

    Having used iweb for a while now and hosting our site through mobileme, I am looking at optimising it and generating some search engine traffic. I have tried iweb Buddy with not much success and was hoping someone could help point me in the right dir

  • Voices on IPad Air Movies Quiet but BackGround Sounds (music, explosions, etc) really Loud

    Hello: I've having an issue when playing movies on my IPad Air.  To hear the voices in the movies, I have to turn the sound all the way up to the max, but when other background sounds play such as music, the sound is so loud I have to turn the sound

  • Upgrade From Standard Broadband

    Hi I might be being thick, but all the information for Infinity Broadband seems to be for new customers. I am an existing phone/broadband/btvision customer, and would be interested in upgrading to infinity, but can't find any information in respect o