How to call an "ON DEMAND" application process

Dear HTML DB Team,
With HTML DB you can define "on demand" application processes. ("On Demand: Run this application process when requested by a page process.") These should be callable from page processes.
How should a call in a page process to such an "on demand process" be written?
Tried several options, no success. Please help.
Could not find any information in this forum or html.pdf and help.
Regards, Erik

when you create an application-level process in htmldb, you have the option of creating it with a "Point" of "On Demand: Run this application process when requested by a page process". after doing that, you can then add processes to your htmldb application pages with a "Type" of "On Demand - Run an 'on-demand' application process". the next screen after indicating that Type lets you choose the On Demand process you'd like to use.
hope this helps,
raj

Similar Messages

  • How to call an On Demand Application Process on PL/SQL

    Hello
    I need your urgent help. I developed an On Demad Application Process that inserts a new record in a table. Then I need to call that Process from another page after while the user is pressing a button on that page. Do you know the code that does that?
    Thank you very much for your help

    Hi,
    APEX processes are written as anonymous blocks i.e. have no names. Procedures and functions stored in the database must have names. Packages are simply a way of grouping procedures and functions into manageable units. There are also security reasons which are not important for this explanation but use packages instead of stand-alone procedures and functions from the beginning. It is not difficult and it will save you some headaches in the future. Packages have a specification and a body. The specification is basically the interface to the package and the body contains the code. Just basically, no flames please from the PL/SQL gurus out there. The name of a procedure or function and their parameters must be published in the spec for the procedure or function to be called from outside the package.
    Creating a packaged procedure is as simple as this:
    Using SQL Workshop/SQL Scripts, create a script giving it a name like CREATE_MY_PACKAGE
    <pre>
    CREATE OR REPLACE PACKAGE my_package IS
    PROCEDURE helloworld;
    PROCEDURE log_user(p_app_user IN VARCHAR2);
    END my_package;
    CREATE OR REPLACE PACKAGE BODY my_package IS
    PROCEDURE helloworld IS
    BEGIN
    HTP.PRINT('Helloworld');
    END helloworld;
    PROCEDURE log_user(p_app_user IN VARCHAR2) IS
    BEGIN
    INSERT INTO my_table(app_user) VALUES (p_app_user);
    END log_user;
    END my_package;
    </pre>
    You can then, for instance, call procedure helloworld from a PL/SQL region in APEX by simply including
    <pre>
    my_package.helloworld;
    </pre>
    in the region source.
    or you can call procedure log_user from an APEX process by simply including
    <pre>
    my_package.log_user(:APP_USER);
    </pre>
    Important: This explanation is only a brief intro to whet your appetite. It is no substitute for good books including the Oracle PL/SQL Reference.
    Hope this helps;
    Regards Garry
    p.s.
    There are several options available to edit the package or work with DB objects generally. Each with different degrees of comfort.
    1. If you DO NOT have SQL*Net access as with oracle.apex.com then use the Apex/SQL Workshop/Object Browser.
    2. If you DO have SQL*Net access you can use Oracle SQL Developer which is the best free option.
    3. If you DO have SQL*Net access and are not short of cash then use either Toad or SQL Navigator from Quest
    Needless to say, option 3 is the only professional choice. They are amazing tools. No, I did not and do not work for Quest - lol.
    Garry
    Edited by: GarryLawton on Jul 19, 2011 2:08 PM

  • On Demand Application Processes

    Hi,
    I was trying to create a report like the one that was posted in the thread Question for Carl Backstro: http://apex.oracle.com/pls/otn/f?p=11933:13.
    Except that I had some problems with the creation of on-demand process, because when I go to create it always gives me an error:
    "To create an on-demand page process, at least one application level process must be created with the type 'ON-DEMAND'."
    I also tried to follow the guide: http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/bldr.htm # BABEAIIE
    but I could not find a solution.
    To start where I put the following string:
    http://hostname.com: <port> / pls / apex / f? p = <APP_ID>: <PAGE_ID>: <SESSION_ID>
    Thank you in advance.

    Hi,
    P13_MULTI_0 is the checkbox at the top-left on Carl's page called "Show Multiple". This allows you to click Show Details for more than one row - if this checkbox is not ticked, then when you click on a second "Show Detail" link, the first one is hidden again. If you want to be able to see more than one "Details" at any one time, you would need to include a checkbox like this. If, however, you only really need to see one "Details" at a time, then you can ignore the checkbox and remove this part of the javascript.
    For the Ajax part, the three lines that I quoted before:
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=Random_Desc',0);  
    get.add('TEMPORARY_ITEM',pID)  
    gReturn = get.get();relate to using Ajax to get the "Details" information to display within the report. Ajax is a means of javascript calling a procedure on the server without having to submit the page. On normal HTML pages, this code would be more complicated, but Apex have provided shortcut functions for us to make this easier to use.
    The first line prepares the Ajax call - htmldb_Get() is the Apex shortcut function. $x('pFlowId').value is the Application ID for your application. 'APPLICATION_PROCESS=xxxx' is the On Demand application process that you want to call. The last parameter is usually either 0 (zero) or your page number.
    The second line is how you can update Application Items with a value that can be used by the Application Process. In this example, there is an Application Item called TEMPORARY_ITEM and it will be set to the value of pID. pID is the ID for the "Show Details" item that has been clicked.
    Finally, get.get() is how the Ajax call is actually made and runs the Application Process. The results from the process are stored in the gReturn variable. What you do with gReturn depends on your reason for using Ajax. In Carl's example, we just transfer the entire thing into the new row that is created underneath the current row, by using:
    myNewCell.innerHTML = gReturn;"myNewCell.innerHTML" refers to the contents of the TD cell that has been created by the javascript code to show the details.
    Andy

  • DOC BUG 4.2: About On Demand Application Processes

    There is an error in Oracle Application Express Application Builder User's Guide Release 4.2 §8.8.1 "About On Demand Application Processes":
    An On Demand process is special type of application process which has a Process Point of On Demand and executes when called from a page-level On Demand process or from an AJAX call from the browser. On Demand processes are useful when you have PL/SQL logic that you would like to run from different execution points across multiple pages.
    On Demand processes should typically be created on a page and not at the application-level. On Demand processes created at the application-level are created with an initial authorization scheme of Must Not Be Public User. This prohibits the processes being invoked from users in authenticated sessions.
    As it is perfectly possible (and indeed desirable) for On Demand application processes to be invoked [only] by authenticated users, this should presumably read:
    An On Demand process is special type of application process which has a Process Point of On Demand and executes when called from a page-level On Demand process or from an AJAX call from the browser. On Demand processes are useful when you have PL/SQL logic that you would like to run from different execution points across multiple pages.
    On Demand processes should typically be created on a page and not at the application-level. On Demand processes created at the application-level are created with an initial authorization scheme of Must Not Be Public User. This prohibits the processes being invoked from users in unauthenticated sessions.
    Furthermore, the second paragraph is a new addition to the documentation for APEX 4.2. What is the reasoning for not creating On Demand processes at application level? I have used them for a number of years as a means to provide reusable, application-wide components (for example, file downloads and AJAX content) only to authenticated APEX sessions.

    Hi,
    thanks again. I added a note to the 5.0 docs.
    It is certainly fine to still create application-level On Demand processes. However, if a process is related to a single page only, it is immediately clear that the process is part of this page's interface. This is good from a maintenance point of view, because if you only use app-level processes, it can be harder to determine whether the process is still in use and where it is called from.
    Regards,
    Christian

  • How is call web method in application?.

    Hi,
    I have created java web application(Web Service).
    I want to call the setName() method in java application(GUI).
    how is call web method in application?.
    package sv;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    @WebService()
    public class MyService {
    @WebMethod(operationName = "setName")
    public String setName(@WebParam(name = "name")
    String name) {
    return "my string is "+ name;
    }

    The model layer should never depend on a specific view layer - this breaks reusability.
    What you need to do is expose a service method on your AM. Then your view can call this method and pass a parameter into the model layer.

  • How to execute a statement in application process on new authentication

    Hi all,
    How can i execute a statement such as
    set role TABLE_NAME identified by sunil;
    in my application process?
    I have tried exec('set role TABLE_NAME identified by sunil');, but wasn't successful. Does anybody knows the problem in my syntax?
    Thanks,
    Sunil Bhatia
    Edited by: Sunil Bhatia on Jun 25, 2009 12:33 PM

    Can you proceed me to this direction?No, it's still the wrong one.
    DB roles are not used in APEX due to fundamentals of APEX and Oracle architecture: this is clear when it is understood Re: Priveleges to create procedures/functions in schemas (points 3 &amp; 4 being most relevant to this issue &ndash; and read "APEX" for "HTML DB")
    (If anyone knows of a more "official"/complete description of what goes on under the covers than the referenced Forum post it would be helpful to know about it.)

  • FPM Form Scripting - How to call a web dynpro application as pop up

    Hi All,
    I want to call a web dynpro application as a pop up from FPM form scripting.
    Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
    Thanks In Advance.

    Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
    Hope this helps.
    Regards,
    Sahir.

  • How to call a WD JAVA application from a WD ABAP application

    Hi experts,
    Here I have two applications with me. One has been created through WebDynpro ABAP while the other one has been created through WebDynpro JAVA. Now i have to call upon the JAVA aplication from my ABAp application. In other words in need to integrate both the applications so as to have an easy navigation in between them.
    In the whole process I need to take care that the data is not lost from both ABAP or JAVA side.
    Please help me someone knows the solution.
    Regards,
    Kaustubh Maithani

    Hi,
    Usally to run WebDynpro for Java Application, we get the Application URL.
    If you want to call this WebDynpro Java Application from Webdynpro Abap, then create UI element like Link to Action or LinktoURL and give the url as WebDynpro for Java URL.
    Regards,
    Lakshmi Prasad.

  • How to call webservice from Java application

    Hi XI gurus
    Pls let me know how to call a webservice from Java application.
    I wanted to build synchronous interface from Java Application to SAP using SAP XI
    For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
    Regards
    MD

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

  • How to Call Standardapplication in Custom Applications in SRM-ABAP ?

    Hi,
      I want to Create a Custom Apllication in SRM 5.0 & i have to call a Standard Application.
    I am new to SRM ABAP , can anyone help me how to Create Applications in SRM ABAP & How to Call Standard Application in SRM ABAP.

    thank u

  • How to call web dynpro ABAp application into workflow

    Hello All,
    How to call webdynpro application into workflow .Is it possible ?
    Scenario is : A web dynpro application should flow into 3 levels of approvals .
    Please share your knowledge .
    Thanks
    Sonal

    >
    Saurav Mago wrote:
    > hi,
    > I dont think from workflow , you can call WD application. 
    >
    > Thanx.
    Actually you can configure a workitem to launch WDA via UWL ( http://help.sap.com/saphelp_nw70ehp1/helpdata/en/59/d516690e854c7090ae15bf492a869f/frameset.htm ) or in the NetWeaver Business Client using the Business Workflow Workplace (WDA Application SWF_WORKPLACE).
    There is also a chapter in the upcomming SAP Press 2nd edtion workflow book on different aspects of Web Dynpro ABAP integration into Workflow:
    http://www.sappress.com/product.cfm?account=&product=H3057

  • ORA-01403: On Demand Application Process

    Hi
    I have an application process that I pass the customer name into and it returns the SUGGESTED field.
    declare
      l_ID varchar2(100);
    begin
        select distinct SUGGESTED into l_ID from dealers, sr_customers
        where AGREED = 'Y'
        and dealers.CORP_NAME = sr_customers.corp
        and sr_customers.corp = :TEMPORARY_ITEM;
        IF l_ID IS NULL THEN
           htp.prn('NONE');
        ELSE
           htp.prn(l_ID);
        END IF;
    end;The problem I have is when there isn't a record for this customer instead of returning NONE it returns sqlerrm:ORA-01403: no data found
    How can I fix this?
    Regards
    Adam

    Hi Adam,
    Use a cursor instead:
    declare
      l_ID varchar2(100);
      c  SYS_REFCURSOR;
    begin
        OPEN c FOR
                  select distinct SUGGESTED
                  from dealers, sr_customers
                  where AGREED = 'Y'
                  and dealers.CORP_NAME = sr_customers.corp
                  and sr_customers.corp = :TEMPORARY_ITEM;
          FETCH c INTO l_ID; 
          IF c%NOTFOUND THEN
             htp.prn('NONE');
          ELSE 
          htp.prn( l_ID);
        END IF;
    CLOSE c;
    end;
    And it is considered a best practice, to use V('ITEM') in PL/SQL to reference items.
    Bind variable will do just fine..
    Hope it helps,
    Greetings,
    Rutger
    Edited by: Rutger on Oct 8, 2008 7:57 AM
    Edit: Sorry mixed something up, should work now
    Edited by: Rutger on Oct 8, 2008 8:02 AM

  • On Demand Application Process not working on IPad or IPhone

    I have application processes that use AJAX to refresh my select list values (see code below). They all work fine on normal devices, but they do not populate at all if I try from an IPad or IPhone. Any ideas?
    HTML Form Element Attributes:
    onactivate="get_select_list_xml1(this,$x('P507_FORMS'),$x('P0_LOGIN_SCHOOL_YEAR'),this,'REFRESH_REPORT_LAYOUT_LOV');" onfocus="if((typeof this.onactivate)!='function'){get_select_list_xml1(this,$x('P507_FORMS'),$x('P0_LOGIN_SCHOOL_YEAR'),this,'REFRESH_REPORT_LAYOUT_LOV');}"
    Application process:
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<select>');
    FOR c IN (SELECT '2' o, A.report_layout_desc d, A.report_layout r
    FROM form B, report_layout A
    WHERE A.fk_form = B.pk_id and
    B.form = :REFRESH_LOV_PK_ID
    ORDER by 1,2)
    LOOP
    HTP.prn ('<option value="' || c.r || '">' ||
    c.d || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;

    bobmagan wrote:
    It fires on both onactivate and onfocus. I had to do that to work on the Mac clients. Look at the code:
    onactivate="get_select_list_xml1(this,$x('P507_FORMS'),$x('P0_LOGIN_SCHOOL_YEAR'),this,'REFRESH_REPORT_LAYOUT_LOV');" onfocus="if((typeof this.onactivate)!='function'){get_select_list_xml1(this,$x('P507_FORMS'),$x('P0_LOGIN_SCHOOL_YEAR'),this,'REFRESH_REPORT_LAYOUT_LOV');}"What about just
    onfocus="get_select_list_xml1(this, $x('P507_FORMS'), $x'P0_LOGIN_SCHOOL_YEAR'), this, 'REFRESH_REPORT_LAYOUT_LOV');"If not, supply the following information:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s)/version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/Item type(s)
    and the <tt>get_select_list_xml1</tt> JS code.
    Post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.

  • How to call infotypes from webdynpro applications

    Hi friends
    My requirement is, I need to call infotypes in r/3 system. Exact requirement is I got a dropdown, which gets the data from infotype, I got a textview which also gets the the data from other infotype.My question how to call  these infotypes. Is this is the same way like importing bapis or different. Please let me know the detail procedure, and any doccuemnts mail me to [email protected]
    Regards
    keerthi

    Hello Keerthi,
    it is no special way to call infotypes, you have to find a Bapi which return data you want (or part of this thata). When there is no Bapi which fill your requirements (or you must call to much bapis) i think you should write your own bapi. Last step is using this (own or found) in wdp.
    Regards
    Bogdan

  • How to call infotypes from webdynpro application

    Hi friends
    My requirement is, I need to call infotypes in r/3 system. Exact requirement is I got a dropdown, which gets the data from infotype, I got a textview which also gets the the data from other infotype.My question how to call these infotypes. Is this is the same way like importing bapis or different. Please let me know the detail procedure, and any doccuemnts mail me to [email protected]
    Regards
    keerthi

    For reading HR infotypes you have to do the following
    a. Create a Remote enabled function module (FM) in the HR syste. This FM shall wrap the standard FM HR_READ_INFOTYPE.
    b. Create a Model in your webdynpro project for the FM you developed in step a.
    Thanks and Regards,
    Prasanna Krishnamurthy

Maybe you are looking for

  • X200 Fan Issues with Windows 7

    Hi all, I've just done a fresh install of Windows 7 Ultimate 64-bit onto my X200, and everything works great except for 1 thing - the fan constantly runs and doesn't stop at all as long as the laptop is on. I've seen a few other posts of other X200 o

  • Oracle Express homepage won't load

    When 2000 loads I'll click start database, try to go to the homepage but it isn't broadcasting. I've tried stopping and restarting but it does no good. I haven't installed any firewall's or anything like that, but I don't see what difference that mak

  • I cant get my phone off of mute.

    How do i get my phone off of mute.  I hit the mute button but nothing changes the dash is still through it.  I also did a system restore and that didnt work either.

  • How to load 2 sub on QuickTime?

    Hi mac experts how how, really how? I will appreciate for help this and i have bad language for load persian(farsi) sub on QT how fix it ? for end how load 2 sub (EN&PN) on QT Simultaneously tanx tanx tanx

  • Error message and shut down

    While watching a youtube video an error messgae came up saying that Inneed to shut mac down Accompanied by a loud beeping sound. I have restarted Mac using safe mode, normal and with snow leopard disk and sometimes I get a blue screen. Other times I