Page level process through javascript.

Hi,
How to call page level process through javascript in apex.
Thanks in advance...
shan.

Hello,
>> Based on the text filed value I want to show the corresponding values(from database) in the second region dynamically
It seems to me like you are talking about the cascading text or select list effect. You should search the forum for “cascading && select” and also check the following example - http://htmldb.oracle.com/pls/otn/f?p=11933:37 .
I believe Scott is referring to the auto complete effect. You can search the forum for that or for Google suggest.
Regards,
Arie.

Similar Messages

  • Syntax for page level process to invoke an on-demand app level process?

    I want to use a page level process (if that's the right thing to do) to run an application process on-demand each time certain pages load. What is the proper syntax for the page level process?
    I tried many variations of the following but it does not pass syntax checking.
    1.
    APPLICATION_PROCESS=GLOBAL_UPDATE;
    2.
    begin
    APPLICATION_PROCESS=GLOBAL_UPDATE;
    end;
    What is the proper syntax?
    Thanks,
    Linda

    Linda - If you want to run an application process when certain pages load, just create an application process (PL/SQL type) with the desired firing point, e.g., On Load: Before Header and in the process condition use a condition type like "Current Page Is Contained Within Expression 1 (comma delimited list of pages)". No need to create either a page process or an on-demand application process to do this.
    Scott

  • Page level process doesn't works for tabular form.....

    I am developing an application on inventory of an chemical factory.......
    I have an master-detail form where detail table is in tabular form.......
    I have an LOCATION1 AND QUANTITY1 COLUMN in detail table..........
    I have location say...LT01A02 AND limit of each location to hold an quantity is .....say 1000.
    I wrote an process for these but it doesn't work.......
    declare
    x NUMBER(6);
    z number(6);
    begin
    selecT NVL(SUM(QUANTITY1),0) INTO x from RM_LOCATION1 where LOCATION1 = :P3_LOCATION1;
    z := x;
    if :P3_LOCATION1 LIKE'%1)' or :P3_LOCATION1 LIKE'%2)' then
    if z > 1200 then
    raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 1ST OR 2ND PALLETE ,WHICH CAN HAVE MAXIMUM 1200KG,PLEASE CHECK IT PHYSICALLY');
    end if;
    elsif :P3_LOCATION1 LIKE'%3)' or :P3_LOCATION1 LIKE'%4)' then
    if z > 800 then
    raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 3RD OR 4TH PALLETE ,WHICH CAN HAVE MAXIMUM 800KG,PLEASE CHECK IT PHYSICALLY');
    end if;
    elsif :P3_LOCATION1 LIKE'%5)' or :P3_LOCATION1 LIKE'%6)' then
    if z > 750 then
    raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 5TH OR 6TH PALLETE ,WHICH CAN HAVE MAXIMUM 750KG,PLEASE CHECK IT PHYSICALLY');
    end if;
    elsif :P3_LOCATION1 LIKE'%7)' or :P3_LOCATION1 LIKE'%8)' OR :P3_LOCATION1 LIKE'%9)' or :P3_LOCATION1 LIKE'%10)' OR :P3_LOCATION1 LIKE'%11)' or :P3_LOCATION1 LIKE'%12)' then
    if z > 600 then
    raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 7TH OR 8TH OR HIGHER PALLETE ,WHICH CAN HAVE MAXIMUM 600KG,PLEASE CHECK IT PHYSICALLY');
    end if;
    end if;
    end;
    I HAVE SEEN THAT APEX DOESN'T PICKS VALUE CALLED... _:P3_LOCATION1_*
    NOW WHAT TO DO ,CAN ANY ONE HELP ME....HOW TO RUN THESE PROCESS......

    Hi User XY,
    tabular forms do not have Page Items. The values you entered in the tabular form are stored in arrays like APEX_APPLICATION.g_f01 to g_f50.
    Here are some links you might find helpful: http://www.talkapex.com/2008/07/manually-creating-tabular-form.html
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21676/apex_app.htm#CHDICJDA
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at and http://www.wirsindapex.at

  • Call Process Through AJAX

    Hi,
    I am looking to call a page/application process through AJAX. This does not need to return any data or perform any updates to the page etc, it just has a piece of SQL in there which adds some data to a table. I want this to happen when a user clicks the row of a report (I'll edit the template to include an onlick event before each row).
    Any help is much appreciated! :)

    This is too easy!
    If you have an existing report that is AJAX enabled, hover over the "Next" link.
    It will show something like: javascript:$a_report('3989532629577825','16','15','15');
    This is calling the javascript function $a_report(pId,pMin,pMax,pFetched,pSort), the first value refering to the id of the report region.
    You simply need to call this function after your AJAX submit, to refresh the region starting at record 1, like so:
    $a_report('3989532629577825','1','15','15');
    Mark

  • Internationalize Page titles added through page hierarchy

    Hi All,
    JDev + Webcenter : 11.1.1.5
    Is there a way to Internationalize Page titles added through page hierarchy in web center portal ? Title property of page hierarchy does not seems to recognize bundle files.
    Thanks
    Amit

    currently there is no provision to set page titles in page heirearchy.
    Same topic has been discussed earlier on -Re: Multi language portal
    You can very well set the page titles in navigation model and in page level also through af:document tag.
    Regards,
    Hoque

  • Error while invoking BPEL Process through HTML Page

    Hi ,
    I have created a HTML Page to invoke BPEL synchronous process .
    HTML Page contains :
    <html>
    <head>
    <title>Untitled Document</title>
    <h1>Add Macro Task Input Form </h1>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="cyan" text="#000000">
    <form name="form1" method="get" action="/httpbinding/default/AddMacroSync/process">
    EmployeeId :
    <input type="text" name="EmployeeId" ><br>
    <br>
    TaskName :
    <input type="text" name="MacroTaskName" >
    <button
    id="identifier"
    class="dialog"
    label="OK"
    accesskey="t"/>
    <br>
    </form>
    </body>
    </html>
    I am able to invoke my BPEL Process named as " AddMacroSync" .
    It also creating instance for this BPEL Process .
    But when I go BPEL Console and check my instance , it is always faulted .
    I am providing two inputs : Employee Id and Taskname through HTML Page .
    These inputs got assigned to their respective output variables .
    But when I click on audit link ..it shows error while invoking the Process .
    It Show error :
    when invoking endpointAddress 'http://152.69.248.232:8990/AddMacroTask-AddMacroTask-context-root/AddMacroTaskWebService', [java.lang.NumberFormatException]
    But this end point address is working when I put this address in URL .
    Please someone help me how to solve this problem .
    Thanks
    Prashant Dwivedi
    Message was edited by:
    Prashant Dwivedi

    Hi Clemens ,
    I changed My HTML ...Now it looks like as :
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="application/x-www-form-urlencoded; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <form name="form1" method="post" action="/httpbinding/default/AddMacroSync">
    <input type="hidden" name="msg_part" value="payload">
    <input type="hidden" name="namespace" value="http://xmlns.oracle.com/AddMacroSync">
    EmployeeId:
    <input type="text" name="EmployeeId">
    TaskName :
    <input type="text" name="TaskName">
    <input type="submit" name="Submit" value="Submit">
    </form>
    </body>
    </html>
    After this when I try to incoke my BPEL Process through this HTML :
    I am gettign following error :
    500 Internal Server Error
    java.lang.IllegalStateException: IOException: Premature end of POST data
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletRequest.getParameter(EvermindHttpServletRequest.java:2452)
         at com.collaxa.cube.ws.http.HttpBindingServlet.checkSecurity(HttpBindingServlet.java:281)
         at com.collaxa.cube.ws.http.HttpBindingServlet.doPost(HttpBindingServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

  • How to reference page attributes (e.g. name) in application level process

    How can I access the NAME of a page while in an application process? Is this possible, without setting some sort of app-level current page name variable? (Which would defeat the purpose of the app level process :)
    Thanks,
    Carol

    When an application process runs at a firing point other than On Demand the current page name can be obtained using this SQL:
    select page_name from apex_application_pages where application_id = v('APP_ID') and page_id = v('APP_PAGE_ID');
    When an application process is invoked "On Demand" by way of AJAX, the page ID in the request is usually 0, so there is no page context available. However you could pass an item name/value into these requests and use that item value in the query against apex_application_pages.
    Scott

  • Convert web page to PDF automatically through JavaScript

    We have ASP.NET application and Adobe Acrobat 8 Standard installed in each users machine where users are able to convert our ASP.NET site pages into PDF document (by right click on web page and select "Convert to Adobe PDF).
    we are looking the direct method of how to trigger “Convert to Adobe PDF” event automatically through JavaScript on the browser (IE 6.0).
    Any suggestions and helps are greatly appreciated, thanks!

    Bill,
    Thanks again for the reply.  I am using the Convert Web Page to PDF selection on the Adobe toolbar which is available in IE.  I printed the page from File >> Print and it looks good except no links.  It is also printed in a Portrait style page layout.
    Sample:
    When I used the Convert Web Page to PDF from the Adobe toolbar, it looks like it is attempting to 'print' it in a landscape mode and that may be where the problem is.
    Sample:
    These are the same report.  However, I can't find a preference to tell it to convert in a Portrait mode instead of landscape.  Any clues on how to force it to always convert Portrait?
    Thanks again,
    Gilley

  • Aplication Vs. Page level items for application process

    Hi,
    I have many application processes in my applications, many of them take parameters.
    Right now I am passing parameters using page level temporary items. This is causing each page to have many items that are only used for calling the application process.
    Is it better to use application level items for this purpose?
    any pros and cons for each of these?
    ~Ketan

    Arie,
    Are you saying that the condition only apply to rendering the item, but the APEX engine will still consider such an item a valid “internal” variable?
    Yes. The absence of a condition on a page item or a condition that evaluates to true simply allows it to be rendered on the page. The existence of the item in the page definition allows it to hold session state.
    We're planning to introduce a non-displaying page item type just for this purpose, sort of a scratchpad variable with no display properties, like an applicaition item but defined on a page.
    Scott

  • How to execute workflow through javascript in CRM 2013

    Hi,
    I have created a business process and I want to execute workflow on custom button through javascript. I tried this script but this script does not run after message box show. Please tell me how to execute my workflow through javascript
    function RunWorkflow() {
        var _return = window.confirm('Are you want to execute workflow.');
        if (_return) {
            var url = Xrm.Page.context.getServerUrl();
            var entityId = Xrm.Page.data.entity.getId();
            var workflowId = '541B45C9-3F88-4448-9690-2D4A365C3172';
            var OrgServicePath = "/XRMServices/2011/Organization.svc/web";
            url = url + OrgServicePath;
            var request;
            request = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
                          "<s:Body>" +
                            "<Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">"
    +
                              "<request i:type=\"b:ExecuteWorkflowRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"
    xmlns:b=\"http://schemas.microsoft.com/crm/2011/Contracts\">" +
                                "<a:Parameters xmlns:c=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\">"
    +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>EntityId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + entityId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>WorkflowId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + workflowId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                "</a:Parameters>" +
                                "<a:RequestId i:nil=\"true\" />" +
                                "<a:RequestName>ExecuteWorkflow</a:RequestName>" +
                              "</request>" +
                            "</Execute>" +
                          "</s:Body>" +
                        "</s:Envelope>";
            var req = new XMLHttpRequest();
            req.open("POST", url, true)
            // Responses will return XML. It isn't possible to return JSON.
            req.setRequestHeader("Accept", "application/xml, text/xml, */*");
            req.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            req.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute");
            req.onreadystatechange = function () { assignResponse(req); };
            req.send(request);
    function assignResponse(req) {
        if (req.readyState == 4) {
            if (req.status == 200) {
                alert('successfully executed the workflow');

    Hi,
    I used this script for execute the workflow but its not working. When I used alert(req.status); then 500 show. Please tell me what did I mistake in my script.
    function RunWorkflow() {
        var _return = window.confirm('Are you want to execute workflow.');
        if (_return) {
            var url = Xrm.Page.context.getClientUrl();
            var entityId = Xrm.Page.data.entity.getId();
            var workflowId = '541B45C9-3F88-4448-9690-2D4A365C3172';
            var OrgServicePath = "/XRMServices/2011/Organization.svc/web";
            url = url + OrgServicePath;
            var request;
            request = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
                          "<s:Body>" +
                            "<Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">"
    +
                              "<request i:type=\"b:ExecuteWorkflowRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"
    xmlns:b=\"http://schemas.microsoft.com/crm/2011/Contracts\">" +
                                "<a:Parameters xmlns:c=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\">"
    +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>EntityId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + entityId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>WorkflowId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + workflowId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                "</a:Parameters>" +
                                "<a:RequestId i:nil=\"true\" />" +
                                "<a:RequestName>ExecuteWorkflow</a:RequestName>" +
                              "</request>" +
                            "</Execute>" +
                          "</s:Body>" +
                        "</s:Envelope>";
            var req = new XMLHttpRequest();
            req.open("POST", url, true)
            // Responses will return XML. It isn't possible to return JSON.
            req.setRequestHeader("Accept", "application/xml, text/xml, */*");
            req.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            req.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute");
            req.onreadystatechange = function () { assignResponse(req); };
            req.send(request);
    function assignResponse(req) {
        if (req.readyState == 4) {
    alert(req.status);
            if (req.status == 200) {
                alert('successfully executed the workflow');

  • Using client listener on page level

    Hello All,
    I am having a jspx page and i am able to add client listener on individual components but my requirement is i want to add a client listener on page level so that when I run the page, through client listener lets say on keydown it will call a javascript and do the required action.
    But I am not able to add client listener on entire page region. It is not working. Is there any solution or workaround?
    Thanks
    -- Navin Kumar

    dup to {thread:id=2287973}

  • How to terminate java process from javascript

    How can we terminate architecture flow in between of process ? suppose once we have submitted form to insert the record but we want to terminate the process started at java side before inserting record in database, how is it possible through javascript?

    The thing is I wish to terminate the current java process when user clicks on any other action on jsp page. I am calling these process from ajax. when user click any other action on the page I abort the current XMLHttpRequest but only the request on the page stop but the process on java side don't stop exetuting

  • Page level total in a mulipage matrix report

    hi!
    I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
    Regards
    simer
    The Oracle Reports Team
    http://otn.oracle.com/

    Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
    forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
    Thanks & Regards
    Eamon

  • Quotes in a page level item not showing up as " when used in a hyper link

    Hi all,
    In my app, I need to hyper link to a crystal report application with parameters from my page. I have a page level item that puts my parameter in quotes, but when the item is utilized in the hyperlink, the quotes come across as & q u o t ; (spaces were put in to the post to avoid html conversion) how can my string be used to appear the way I want?

    I don't use Crystal Reports, but, in general, you should encode your URL. When you create your link, run the URL through utl_url.escape() first. Put it in your select statement.
    E.G.,
    select utl_url.escape('http://oracle.com/foo"bar') from dual;
    will escape/encode the quotation mark and give you:
    http://oracle.com/foo%22bar
    This translates the " into a URL-safe escape code, %22, that should (I hope) be understood properly by your Crystal Reports server.
    Good luck.

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

Maybe you are looking for

  • How to set user parameters in transaction MD61 through a report?

    Hi, I want to set default values for 'Requirement Type' in user parameters of transaction MD61 through a report. Please help. Thanks in Advance.

  • Streaming from Shared USB storage to Ipad

    Hi Everybody, Is it possible to connect a harddrive to a wifi router such as a netgear r7000 and stream video content to multiple ipad users? Basically the router would need to be a stand alone unit not connected to the internet and solely for stream

  • IDoc message type cut off in WE02

    Hi, i have IDoc2IDoc Scenario. I already checked IDx1 and IDx2 for IDoc Metadata and in SXMB_MONI the Inbound IDoc looks like it should with right Basic and MessageType of the IDoc. But when i check WE02 in reciever system the Message type is cut. In

  • A third party plug-in disappears after a localization patch installation

    I have a third party plug-in installed for PhotoShop CS3. The third party plug-in disappears after installation of a localization patch. I tried reinstalling the plug-in, but that does not work. It appears that after the patch is installed, tw10428.d

  • Is FLASH part of Internet Explorer?

    I am trying to persuade our IT department to allow Flash to be used on our internal network system and I am being told that FLASH is not installed on over 50% or our desktop PC's and that it too big a job to update them. Am I correct in saying that F