Are On-Demand Processes Conditional?

Hi,
Within Apex 4.1.1, when an Application Process is created it states, “Note: Conditions are not used for "on-demand" processes. All conditions for processes that run at the "on-demand" process point must be set by the calling process.” Within Apex 4.2.1 it no longer states this message.
1.     Does the note mentioned above apply regardless of whether or not you are calling the process from an apex page process (e.g. create process, choose on-demand option) or from an AJAX callback initiated from Javascript. Will the application process condition be ignored in one or both instances?
2.     Does the above note still apply in 4.2.1?
Thanks,
JIM

Found the answer.... Eventually.....
http://apex.oracle.com/pls/apex/f?p=38997:8:0::NO
Going to the above link and looking at the APEX 4.2 Early Adopter Changes
Feature : APEX 4.2 Early Adopter > APEX 4.2 Other Features > Remove the restriction that on-demand processes can't have a condition or authorization
Currently on-demand processes don't include the ability to define authorization or conditions. This has been incorporated to provide the same options for on-demand processes as for other components.
In 4.2 On-demand can now use conditions previously the could not.
JIM

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

  • Requirements are not fulfilled for condition PI01

    Dear SD guru,
            When i create sales order,it prompt that 'Requirements are not fulfilled for condition PI01'.
              For the specifical requirement,i use the intercompany processing.I want two invoices in this sale document,onr for customer,the other for internal processing.So i need two condition types for two price,i use the condition type ZABC&PI01(for internal) in the pricing procedure.But,when i  create sales order under the configuration,it failed.
          How can i solve the problem?
    TKS!
    Edited by: stephen chow on Sep 8, 2008 9:35 AM

    We need to change the condition class from prices to other like discount or surcharge in the condition type.
    For ex: If it is shipment cost document got to goto T_06 select the required condition and change the condition class and do not select grouping conditions..
    Thanks,
    ratna
    Edited by: ratna edpi on Oct 24, 2008 6:04 PM.
    Edited by: ratna edpi on Oct 24, 2008 6:05 PM
    Edited by: ratna edpi on Oct 24, 2008 6:07 PM

  • We are unable to process your request - account activation

    Hi
    I keep getting this error
    We are unable to process your request.
    Please go back to the previous page, or quit your browser and try your request again.
    I keep clicking on the activation link and then Activate and i keep going around in circles. How can i fix this ? Is there a problem with my account or is it a server issue ?
    I contacted the help using the link but no reply in 40 hours at time of writing.
    Thanks
    Hanson

    Change the "cookies setting" of browser as open at third parties.
    I had same situation, when get into the following URL for previous Xcode.
    (https://developer.apple.com/downloads/index.action?q=xcode)
    But 5 minutes ago, I was able to escape from this bored conditions.
    I surely registered on Apple dev-center, that the problem was on browsing,
    please alter security level temporarily!!
    <my Englis somewhat clash,....please overlook or point gradly>

  • 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.

  • 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 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 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

  • On Demand process get url query string

    Hi,
    When I call On Demand process , is there way inside that process get url query sting or whole url did call On Demand process?
    I did try below but it returns null
    owa_util.get_cgi_env('QUERY_STRING')Regards,
    Jari

    You'd know this better than me - but I seem to recall there are 2 Oracle sessions involved in normal page processing - one for the request and one for the response. wwv_flow.show seems to correspond to the response session, not the request session (that might have the env variables you're looking for). Could that explain what you're seeing?

  • Passing value to another form with on demand process

    Hi,
    This is my first post and I am an absolute beginner to apex (using 4.1)
    I would like to pass a value to another form, but to no avail.
    I have an on demand process that is being called when a button is clicked (ISSUE)
    This process is being called from P33 and I need the value to go to P33_ST_NUMBER_HOLD
    DECLARE
      v_rownum NUMBER;
    BEGIN
      for i in 1..apex_application.g_f01.count
      loop
        v_rownum := apex_application.g_f01(i);
        apex_debug_message.log_message('row selected: '||v_rownum);
        apex_debug_message.log_message('value: '||apex_application.g_f03(v_rownum));
        htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');
    end loop;
    END;What am I doing wrong?
    Edited by: Hansen_____ on 2012/06/15 1:15 AM

    Hansen_____ wrote:
    htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');This is PL/SQL and you have to use one of these methods to set the item value, But you are using javascript API's in PL/SQL.
    FYI - javascript is a client/browser side and it got nothing to do with PL/SQL
    :P17_ST_NUMBER_HOLD := apex_application.g_f03(v_rownum);
    //OR
    APEX_UTIL.SET_SESSION_STATE('P17_ST_NUMBER_HOLD',apex_application.g_f03(v_rownum));http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI181

  • Missing authorization for processing condition

    Hi  All,
    We are having  a problem with our pricing procedure zxxx.
    we created a pricing procedure and connect it to a java formula.
    this formula return an error message :
    " Missing authorization for processing condition zxxx "
    in debug we see that this message come from the formula and not some kind of authorization check.
    ( even a user with "sap all"  get this message ).
    does any one know how to solve this?
    or:
    does any one know how to debug the java formula ?
    thanks,
    Lilach.

    Hi,
    Check with your basis  consultant whether the authorization is change ?
    Regards,
    Chetan.

Maybe you are looking for

  • Differences between SOA Suite and BPM suite

    Hi All, Can any one tell us what are the differences between SOA Suite and BPM suite. Thanks parker.

  • What r all the tables  used for the following report

    hai what r all the tables  used for the following report report: <b> •     Report that displays all the late shipments in a particular period of time</b> send important fields for this tables also thanks in advance.

  • How to use the BAPI BAPI_ALM_ORDER_MAINTAIN

    HI experts, I am using BAPI_ALM_ORDER_MAINTAIN to update the Object list in ECC 6.0 for a service order txn code IE31. I dont know how to use this BAPI_ALM_ORDER_MAINTAIN for object list updation. It will be very helpful if anyone who worked on this

  • Table NCALE

    Hi experts, I have problems while debugging an application that extracts the information from table ncale in cluster PC. I would like to know the following: - Where is this table generated (payroll or rptime or elsewhere). - Is there any transaction

  • Does Apple keep warrenties on file in the store?

    I can not find my warrenty slip that was in my Ipod when it first came and the headphone jack isnt working anymore.  Does Apple keep warrenties on file at the Apple store? Please help!