On demand process: addtional params

Hello,
I'm calling a on demand process just with the url.
http://localhost:8080/apex/f?p=200:0:0:APPLICATION_PROCESS=test
how is it possible to add additional GET parameters without writting them into a page-item/application-item?
thank you
Damien

Hi,
You can set in url items value. like
http://localhost:8080/apex/f?p=200:0:0:APPLICATION_PROCESS=test:::Px_MY_ITEM:value1Check URL syntax
http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref114
Regards,
Jari

Similar Messages

  • Error while using ajax addParam function in on demand process

    Hi ,
    I am calling an on demand process from a javascript that inserts value from a modal from into a table.
    function f_insert_transaction()
    var ajaxRequest = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=insert_manual_transaction',73);
              ajaxRequest.addParam('x01', $v('P73_ARRANGEMENT_ID'));
              ajaxRequest.addParam('x02', $v('P73_TRANSACTION_DIALOGID'));
              ajaxRequest.addParam('x03', $v('P73_CUSTOMER_NAME'));
              ajaxRequest.addParam('x04', $v('P73_CUSTOMER_NUMBER'));
    ajaxRequest.addParam('x05', $v('P73_SALES_ORDER'));
    ajaxRequest.addParam('x06', $v('P73_SO_LINE'));
    ajaxRequest.addParam('x07', $v('P73_INVOICE'));
    ajaxRequest.addParam('x08', $v('P73_INVOICE_LINE'));
    ajaxRequest.addParam('x09', $v('P73_ITEM'));
    ajaxRequest.addParam('x10', $v('P73_ITEM_DESC'));
    var ajaxResult = ajaxRequest.get();
    alert(ajaxResult);
    ajaxRequest = null;
    }The insert works fine as long as item names range from x01 - x10.
    When I add the below
    ajaxRequest.addParam('x11', $v('P73_QUANTITY')); The insert stops working, and the alert displays the following error message :
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    <H1>Not Found</H1>
    The requested URL /pls/dev1/wwv_flow.show was not found on this server.<P>
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at </ADDRESS>
    </BODY></HTML>
    Appreciate any help in debugging this
    Thanks,
    Dippy
    Edited by: Dippy on Aug 2, 2010 10:14 AM

    Hello:
    You could concatenate the page-item values into a single string where the values are separated from each other by a suitable delimiter ( a colon for example) and set, x01, to this concatenated value. You could then decompose this concatenated string in the ODP used in the AJAX call to obtain the individual values.
    varad

  • Calling an On Demand Process in PL/SQL Region without using AJAX

    Hi!
    I am trying to find a way to call an On demand Process in a PL/SQL Reports Region. The reason is that i need Reportings for about 20 Pages that look like the same but have different parameters. I already have some Processes that return SQL Statements and it works fine. But these Reportings are more complex and it's not possible to return it wirh a SQL Statement.
    I have seen some solutions in this forum that used AJAX to call such a process. The problem is, that I'm not allowed to use AJAX because activeX is diabled. I tried it and it works but i need another way to solve this process call.
    Thanks in advance
    Philipp

    At the moment I cannot say if your link can help. Right now the call of the On demand Process looks like this:
    Inside annonymous PL/SQL Region:
    <script type="text/javascript">
    get = new htmldb_Get(null,'||:APP_ID||'.,'APPLICATION_PROCESS=F_REPORT_NAME',0);
    gReturn = get.get();
    document.write(gReturn);
    </script>

  • Possible to download file using ajax on demand process?

    In the past I've used procedures with the wpg_docload.download_file function to download files by granting public to the procedure and executing the download from a report link (such as http://localhost:8080/apex/schema_name.download_blob?file_in=xxx)
    I'd like to move to the download to a link that's called from an ajax called on demand process. Is this possible? I have got the report link calling a javascript function passing the rowid in and running the same download_blob procedure via the on demand process but, whilst the code runs OK it does not return the prompt box for the user to open/save the file. I guess this might be because it's not returning it to the javascript in the proper way but I'm v flaky wrt to ajax.
    var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=download_blob' , 0);
    var ajaxResult = ajaxRequest.get();
    Thanks
    Simon

    To be honest, it's not a big deal, I wanted to do it this way as we have data stored as BFILES and some of the downloads are so big they take a while to load into a temp_blob and thus I wanted to call it from java script so I could call a loading "div" 1st, so the user does not see the screen hanging. However I've changed the code to load the BFILE into an actual blob 1st (through an ajax process) and then return a link to the screen pointing to an app process which opens the blob.

  • On Demand Process - Special Characters

    I have an on demand process (ODP) that I use to populate items in a page with. I followed the examples from Denis Kubrik and others on the OTN. The problem I have run into is data with ampersands. I know that there a special characters that need to be escaped in XML documents. I have used the replace function in the SQL Query to change '&' into '&amp;'. However, the process still seems to die. I am using the testing capability documented here.
    When I run the ODP that does not return the ampersand all is well, I see the XML document. When I retrieve a row with the ampersand I see:
    "Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The operation completed successfully. Error processing resource 'http://test:7734/pls/apex/f?p=128:0:8491..."
    When I run the SQL code from SQL developer using output I see a valid XML document.
    Does anyone have any insight to this?
    Thanks!

    DECLARE
    v_first_name VARCHAR2 (50);
    v_last_name VARCHAR2 (50);
    v_title VARCHAR2 (50);
    v_phone VARCHAR2 (25);
    v_email VARCHAR2 (50);
    v_dept VARCHAR2 (200);
    BEGIN
    FOR c IN (select first_name, last_name, nyc_title, desk_phone_number, email_address, kronos_badge_number, employee_id, replace(department_name,'&','&amp;') department_name
    from anc_employees_v
    where employee_id = TO_NUMBER (v('EMPLOYEE_ID')))
    LOOP
    v_first_name := c.first_name;
    v_last_name := c.last_name;
    v_title := c.nyc_title;
    v_phone := c.desk_phone_number;
    v_email := c.email_address;
    v_dept := c.department_name;
    END LOOP;
    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 ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P16_FIRST_NAME">' || UPPER(v_first_name) || '</item>');
    HTP.prn ('<item id="P16_LAST_NAME">' || UPPER(v_last_name) || '</item>');
    HTP.prn ('<item id="P16_TITLE">' || v_title || '</item>');
    HTP.prn ('<item id="P16_PHONE">' || v_phone || '</item>');
    HTP.prn ('<item id="P16_EMAIL">' || UPPER(v_email) || '</item>');
    HTP.prn ('<item id="P16_DEPARTMENT_ID">' || UPPER(v_dept) || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS THEN
    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 ('<body>');
    HTP.prn ('<desc>GET_EMPLOYEE_DATA</desc>');
    HTP.prn ('<item id="P16_ERROR">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;

  • Calling ON DEMAND process for outside APEX

    Hi All,
    I would like to call an ON DEMAND process from outside APEX (using HttpClient java class). I think i have to use wwv_flow.accept but i'm bit lost on how to specify that i'm calling a process on demand.
    Has someone already tried this ? samples or advices would be more then welcome ... The goal behind the scene , would be to have an Apex page acting like a servlet (HTTPClient send a xml request and receive an XML response from the apex page).
    Thks.
    Thierry

    Thierry,
    You need to set up the HTTP request as you would if invoking your application+process from a URL, e.g.,
    ..f?p=100:0:9876543210123456789:APPLICATION_PROCESS=<name of process>
    ..in which request header the authentication cookie is provided, and in which request the correct session ID is provided. You could alternatively do a POST to wwv_flow.show, bypassing the f procedure, but I don't know if that will save you any steps.
    Scott

  • AJAX & On Demand Process Error

    Hi All,
    I have a SQL report that display a group of employees with a check box column,when a button pressed i need to
    copy a value of an item to the text box corresponding to the selected employees without refreshing the page.to do this, i used AJAX and On Demand Process and it was the firist time to deal with on demand processes. . But when I clicked the button nothing happened and no java script error is raised.
    the report SQL query:
    select apex_item.checkbox(2,ID,'UNCHECKED') " ",ID, NAME, APEX_ITEM.TEXT(3,ID) "Value"
    from Emp
    where FK_USER_ID=(SELECT "FK_Emp_ID"
    FROM "Users"
    where "User_Name"=V('APP_user'))
    order by 1
    the java script function invoked by the button:
    var arr=new Array();
    var ajaxRequest=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=copy_process',0);
    arr=document.getElementsByName('f02');
    *for(i=0;i<arr.length;i++){*
    *ajaxRequest.addParam('f12',arr.value);*
    var ajaxResult=ajaxRequest.get();
    ajaxRequest=null;
    and the Process:
    FOR i in 1..APEX_APPLICATION.G_F12.COUNT LOOP
    FOR j in 1..APEX_APPLICATION.G_F03.COUNT LOOP
    if(APEX_APPLICATION.G_F03(j)=APEX_APPLICATION.G_F12(i)) then
    APEX_APPLICATION.G_F03(i):=:VALUE;
    end if;
    end loop;
    end Loop;
    Can any one help me??

    Hi,
    When you post code wrap it to {noformat}
    {noformat} tags so it is easier to read.
    I'm 100% sure you get some JavaScript error. How you have check that there was no errors ?
    Take Firefox and Firebug extension. Run page and check Firebug console.
    Also you do not pass f03 to On Demand process so below part of process do not never loop
    FOR j in 1..APEX_APPLICATION.G_F03.COUNT LOOP
    if(APEX_APPLICATION.G_F03(j)=APEX_APPLICATION.G_F12(i)) then
    APEX_APPLICATION.G_F03(i):=:VALUE;
    end if;
    end loop;Also your report select look strange. Is your table and column names really case sensitive ?
    And do not use v function in report query. Use bind variables like :APP_USERRegards,
    Jari

  • Problem with simple on demand process

    hi
    my on demand process
    declare
    art char := 'GT';
    begin date := '01.01.2006';
    end date := '31.01.2006';
    v_count number;
    begin
    select wvfk.fu_working_days(ART,begin,end)
    into v_count
    from dual;
    end;
    and that's the call
    function test()
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=WORKING_DAYS',0);
    gReturn = get.get();
    alert(gReturn);
    but the alert return nothing
    what is wrong

    So what is your on demand process supposed to return? You are returning a value from
    dual into a variable and the process is returning no value. How about having
    HTP.prn (v_count);
    in your on demand process. Debug it using SQL Workshop and see what you get.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Error Create on-demand process

    hi master
    i try to create ajax select list follow http://htmldb.oracle.com/pls/otn/f?p=11933:37:3536231966135114::NO:::
    -- first i create item TEMPORARY_ITEM --> Text Field
    in HTML Table Cell Attributes i fill with onblur="get_AJAX_SELECT_XML(this,'P37_SELECT_DROP_XML')"
    --2
    i create item P37_SELECT_DROP_XML type Select List
    list of value definition is
    select street_address d,location_id v
    from locations
    where country_id = :temporary_item
    --3
    in HTML Header in Page -- Below Page Randering , copy this
    <script language="JavaScript1.1" type="text/javascript">
    function get_AJAX_SELECT_XML(pThis,pSelect){
         var l_Return = null;
         var l_Select = $x(pSelect);
         var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=otn_Select_XML',0);
         get.add('TEMPORARY_ITEM',pThis.value);
         gReturn = get.get('XML');
         if(gReturn && l_Select){
              var l_Count = gReturn.getElementsByTagName("option").length;
              l_Select.length = 0;
              for(var i=0;i<l_Count;i++){
                   var l_Opt_Xml = gReturn.getElementsByTagName("option");
                   appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
         get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
         if(document.all){/* why is ie different ask bill */
              pSelect.options.add(l_Opt);
              l_Opt.innerText = pContent;
         }else{
              l_Opt.appendChild(document.createTextNode(pContent));
              pSelect.appendChild(l_Opt);
    </script>
    ... but when create on-demand process , there is error , step are
    -- under page rendering, in process (+) , i select category on-demand,
    name is otn_Select_XML , when i click next show the error message
    1 error has occurred
    To create an on-demand page process, at least one application level process must be created with the type 'ON-DEMAND'.
    how to solve this error ??
    is i'm wrong with this step to create ajax select list ?
    i use apex 3.1
    thanks
    Imansyah

    Imansyah,
    Instead of creating page level "On Demand - Run an "on-demand" application process", you need to create application level on demand process named "otn_Select_XML". To create:
    1. Go to Shared Components
    2. Click Application Processes
    3. Click Create
    4. Select On Demand as process point.
    - Christina

  • On-demand process in page processing - possible bug?

    Hi
    Came across a possible bug today, certainly not a big one and unlike to affect many people but...
    1. Create an on-demand application process
    2. Create an on-demand page process that calls the application process
    3. Delete the application process.
    Now at this point, the page process is still available for editing/deleting etc.
    4. Copy the application.
    In the new version of the application, the page process shows as plain text in the application builder with no link to edit or delete it and when the page is run, it predictably fails at the processing point of the page process when it tries to find the application process (the id from wwv_flow_processing is shown in the error for the old application process).
    The only way to get rid of the page process is to select 'Edit All' and then select and delete it - then everything is hunky dory again.
    A minor issue I know, but maybe someone will have the same issue one day and stumble across this thread :)
    Cheers
    Ben

    At the moment I cannot say if your link can help. Right now the call of the On demand Process looks like this:
    Inside annonymous PL/SQL Region:
    <script type="text/javascript">
    get = new htmldb_Get(null,'||:APP_ID||'.,'APPLICATION_PROCESS=F_REPORT_NAME',0);
    gReturn = get.get();
    document.write(gReturn);
    </script>

  • On demand process problem

    Hi,
    i wanted to creat in my aplication a process "on demand " to make the download of a file stored in my bd, but when i try to creat process the xe assistent returns this error:
    To create an on-demand page process, at least one application level process must be created with the type 'ON-DEMAND'.
    What does it meen?
    Thank's in advance

    Hi Pepe,
    This is a ordering issue,
    The steps are:
    1. Create the Application Level On-Demand process,
    then
    2. Create the page that will invoke the On-Demand process.
    Check out the APEX User Guide (Chapter 4). This is one area that seems to be well documented.
    Hope this helps
    Patrick

  • ON-DEMAND Process - DB Object

    Hello All,
    I'm not familiar with the object storage model of APEX objects and was wondering how On-DEMAND processes are stored? Can you access them via sqlplus (toad,pl/sql dev, sql dev)?
    The reason I ask, is once the app is published, is there a way to chage the pl/sql procedure attached to an on-demand process, or must you republish the entire application?
    Thanks in advance.
    Jan

    Just as any other setting or statement you make in APEX it's stored in a database table somewhere. So you might be able to access it, but not as you expect it.
    A good way of working is - to overcome - your problem, code your processes so that they contain only one line: a call to a db package/procedure/function. That way you can
    1. Compile and test the implemented logic separately.
    2. Change the logic without changing or redeploying the apex side of the app.

  • On demand process time limit.

    Hello, I would like to know if Apex has time out limit on "On demand process" ? I have a long running insert query in my on demand process and I was hoping that the process will complete when the query finishes, but it doesn't seem that way. Is the time out for an on demand process the same as the time out time for Apex pages?
    George

    I was hoping that the process will complete when the query finishesWhy should the Ondemand process run after the PLSQL block has completed.
    Do you have some kind of infinite loop happening over the ajax call ? Even so you might face something like "too much recursion" error in Javascript.

  • On-demand process query works only on some columns

    I've run into what seems a strange problem. I have an on-demand process that queries the DB and returns a populated select list, which I've successfully used in several places. The query used returns values as it should when I query the DB directly. Within my process however, it returns no rows. I know the process works because if I replace the query that i need, with one on another column in same table, my select list populates. There are several other columns that also don't work, though there is no pattern in terms of data type, size, etc, that I can see, except that the non-working columns are rather far down a list of over 30 columns for that table.
    Here is the process text:
    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 rec in (select distinct op_comm d, op_comm r from CPUJAN2006
    where upper(stream) = upper(:P100_TEMP_STREAM))
    loop
    htp.prn('<option value="' || rec.r || '">' || rec.d || '</option>');
    end loop;
    htp.prn('</select>');
    end;
    As mentioned, I can use this select statement directly on the DB and I can replace it in the process, with something like "select db_version from CPUJAN2006" and that works. Any ideas why this would not work on certain columns - could it have anything to do with number of columns in the table or column size?
    Any advice appreciated. Thanks,
    Michelle

    I can and will if this doensn't clarify. I've narrowed down problem to specific records returned from the process query.
    The text entries populating the select list sometimes contain the char '&'. When I get rid of these, my select lists look fine. The select list is populated with following bit:
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    I am thinking the & in some rec.d entries is interpreted as something other than text. I cannot change these text values in the DB, because they are fed from another DB. Can I somehow tell the process to view speacial characters as text?

  • On Demand Process Javascript

    I have a javascript to invoke an on demand process pass_menu_flag_to_db.
    function set_reminder1(pValue, pNumber){
              var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=pass_menu_flag_to_db',0);
              get.addParam('x01', pValue);
              get.addParam('x02', pNumber);
              gReturn = get.get();
    The ODP is
    declare
    v_number number;
    v_flag char;
    begin
    v_number = wwv_flow.g_x01;
    v_flag = wwv_flow.g_x02;
    pkg_t_ul.update_ul_menu_flag(:APP_USER, v_number, v_flag);
    end;
    I am calling the JS function in an on click event. However, I couldn't find the ODP is excuted and hence the values are not passed to the database. I need this to be done without the page submit also.
    Is there any issue with my code?
    Advance thanks,
    Natarajan
    Edited by: Nattu on Mar 18, 2011 6:02 AM

    Thanks Jari,
    As I am new to use firebug, I couldn't find the xmlhttprequest in the firebug console, however looking at console, helped me that I made mistake in the plsql block in on demand process. Fixed the issue, now it is working without page submit.
    I appreciate your timely help. Thanks.
    Natarajan

Maybe you are looking for

  • AD SSO with entry point for SAP users....

    A client would like to use Active Directory (AD) Single Sign On rather than SAP for authentication purposes.  There are two potential scenarios we would need to support: Scenario 1, access to SAP BW (General Ledger, Profit Centre Accounting) and rela

  • Connecting a Visio tablet to my wrt320n

    I have a wrt320n. works good with all my computers. I bought a Visio tablet and I can only hook up to an open network. I want to be able to use my router with security. Such as wpa/wpa2 or wep. I tried all connections. Only the open network is the on

  • Report on actual dispatches without WMS

    Dear All, My client has a requirement to get a report on actual quantity dispatched from a warehouse on a daily basis. With movement type 601, what we can find is the invoiced quantity for a particular date, which may be due for delivery on any other

  • Can't connect through sqlplus

    I can connect to a remote database through sqlplus only if i specify the sid: bash$ sqlplus system@dbsid Connected to ... if i don't, i get this error: ERROR: ORA-12545: Connect failed because target host or object does not exist local machine has ju

  • Why can't I open facebook using Safari?

    I am unable to open Facebook using Safari on my MAC desktop?