Running APEX application process

Hello!

Application process (with htp.p in it) is not running when onSubmit process page returns the error (and shown in the notification bar).

How can I make the process to run? Or is it a bug?

You can see example in the application of test Report 1

Just press the "SUBMIT" button and see difference about the expression "'application process is here" at the top. "

Thank you!

You can do this by using a chain of substitution as mentioned above. Rather than display the results of the query of the user using lifestyle htp.p , create a USER_STYLES application point and store them in it:

declare
  l_user_styles varchar2(4000);
begin
  for cur in (select t.param, t.value
                  from USERDATA t
                where t.authid = :APP_USER
                    and t.application = :APP_ID
                    and t.page = :APP_PAGE_ID) loop
        l_user_styles := l_user_styles || '#' || cur.param || ' {' || cur.value ||'}');
  end loop;
  :user_styles := '';
end;

The application can then be referenced in heads of page template using the substitution string syntax:&USER_STYLES.

This approach is more effective than what you try to do what the style of the user information must be defined in the application element when connecting and when the styles are changed, rather than on each page show that you propose.

Tags: Database

Similar Questions

  • How to run the application process

    Hi all

    I have create an application at the request and when I called him he seems to return nothing.

    How can I run only the process?

    Thank you

    Eric

    Eric

    The basic syntax to run an ODP of the browser URL window is

    f? p = application_id:page_id:session:APPLICATION_PROCESS = ID_processus

    More on http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldr_pgs.htm#BABEAIIE

    CITY

  • Is there a problem with APEX Application processes and the CAE?

    I have a table that has a political function. When I select in the table directly from the page, it seems to be only return lines appropriate for the user.

    But, when I select from the same table using an application process (On Demand), PL/SQL block.

    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    FOR c IN (SELECT '1' o)
    name | ' (' | school |) ')' d,
    pk_id r
    OF sch_base
    WHERE pk_id = nvl(:REFRESH_LOV_PK_ID,'null')
    UNION
    SELECT '2' o,
    '%' d,
    r 'null %.
    OF the double
    UNION
    SELECT '3' o,.
    name | ' (' | school |) ')' d,
    pk_id r
    OF sch_base
    WHERE pk_id <>nvl(:REFRESH_LOV_PK_ID,'null')
    ORDER BY 1, 2)
    LOOP
    HTP.prn ("< option value ="' | c.r |) '">' ||
    c.d | ("< / option >");
    END LOOP;
    HTP.prn ("< / select >");
    END;

    It returns all rows in the table.

    Try something like

    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pApp,$v('pFlowStepId') )
    

    CITY

  • Question of the application process

    +(First OFF, we're using ApEx 4.0 through IE8) +.
    I have a report that serves as a "shopping bag" of sorts, with a "Delete" button to cancel the Articles of him. But the button 'Delete' is not to go to the page, it leaves just a blank white page. (Fortunately, the process works in the removal of the element)

    The link to the column in the report Page 11 goes back to Page 11. (I tried to change to a new Page 12, including a few branches immediately back to the 11 Page, but it does not solve the problem) The link name is APPLICATION_PROCESS = REMOVECART, clears the cache on Page 11 and sets the value of a hidden element (P11_ITEMCODE) to be referenced in the App.Process.
    The REMOVECART process is a SQL/PL block running On-Demand"that says:

    DELETE FROM INFO_CART WHERE ITEMCODE =: P11_ITEMCODE;
    UPDATE the STATUS value INFO_INDEX = 'In', ORDEREDBYUSERID = '0' where ITEMCODE =: P11_ITEMCODE;

    There is no Conditions, permissions or authentication on the process or the link in the column. Ideas, why the process is not back to the Page based on its execution?

    It appears when you run the application process of the URL which deal with the application will run and that's it. You will need to provide a code in the process of redirection request to the url of the page you want to go.

    Another option is to create a process to run the application process and make it conditional to a certain request value that you can set in your link. Look at the page 4 ("basket 2") for an example.

  • Application process, do not run after the validation error

    Hi all.

    APEX 4.1
    XE 11 GR 2
    WIN7
    Firexfox

    I have a page where I add additional javascript code to a page by using htp.p in a process of application "before the footer. It works fine as long as there is no validation error. When the validation fails (for example a UK-check with the location of the error value "Inline notification"), the page is re-fondue, but the application process is not running and so my extra code is missing from the page.

    Is this intended behavior or am I doing something wrond?

    Andreas

    Addition:

    I tried the sam using a 'local' page process, but these do not seem to fire.

    Published by: Andreas Weiden on 22.12.2011 21:31

    Andreas Weiden says:

    Is this intended behavior or am I doing something wrond?

    This is the expected behavior. Generally, the process and calculations source item, the actions are not executed when the page is re-made after validation errors. They also provide great potential for confusion of side effects (for example reset to a default value for an item that had an invalid value sent).

    However, the engine provides a special treatment for the process with the built-in Inline Validation errors displayed condition so that they will be run when a page is rendered with validation errors. See + {: identifier of the thread = 493070} + for an interesting discussion on this topic.

    An alternative (and in my opinion a more classic and rather more clear) would be to generate the JS in a dynamic region of PL/SQL code on the Page zero. Always reuse the code on all or several pages, but is more clearly part of the rendering of the page as an application process and does not rely on a very obscure condition, being the only way you can make it work.

  • Bug report: application process runs even if the user is not authenticated.

    Hi all

    I just stumbled on something that looks like a bug or a security problem for me:
    When you have an application at a point 'Load - before the header (header of page template)' this process is executed no matter if a user is logged on or past validates a session ID in the URL.


    Example:
    In my Application, I have an application process to download a file when a certain application is defined. I chose the application process to hide the url/location of the user files and make sure that this file can only be downloaded in an application context (thank you Dene for inspiration: [http://apex.oracle.com/pls/otn/f?p=31517:15]). This works really well and did all the things I want to do.
    But then I tried to call my download URL (for example http://myhost:myport / mytest/pls/f? p = 1234:0:123123123123:DOWNLOAD_FILE:NO ::) from another computer without logging in.) I expected to get the login screen of my application and all my pages require authentication, but I got the file.

    To work around this problem, I put in condition of the pl/sql process ": APP_USER IS NOT NULL AND: ASK 'DOWNLOAD_FILE' = ', now it works as expected and shows the login page if the user is not authenticated or given to the session id is null/not valid."


    I am mistaken and that the process should not run? I put same authorization "must not be public user" who has been ignored as well.

    Peter

    Peter and Dene,

    Thank you for this comment. I agree that this is a bug and we'll fix it. A solution you can set the attribute Public user of your application to PUBLIC_USER. As long as your FATHER connects as apex_public_user it shouldn't break anything.

    Scott

  • Eception exception: application already running in this process

    I have 2 classes:

    myPackage.Class1

    myPackage.Class2

    When I call 2 in Class1 like this: class2 cl2 = new class2();

    my application cannot return the following error message: Eception exception: application already running in this process

    problem solved.

    My 2 constructor was already creating an instence in its class.
    I removed this instence and enforcement has been happy.

  • application running in this process?

    When I run an app, it throws RuntimeException and the message as

    application running in this process

    When this exception will come and what scenario?

    Thanks for any help.

    I found the solution. Thank you.

  • How to set the value of a * APPLICATION * with apex.server.process?

    If I have a page named point P1_MY_PAGE_ITEM, I could put its value in the session by doing this:

    $s('P1_MY_PAGE_ITEM', 'I Like Pie!');
    
    apex.server.process(   'dummy'
                           , { pageItems: "#P1_MY_PAGE_ITEM" }
                           , { dataType: "text",
                             async: false,
                               complete: function( ajaxResponse )
                                     {
                                          var ignoredReturn = ajaxResponse.responseText;
                                     }
                             });

    Which works very well. If you check the session, the P1_MY_PAGE_ITEM will now have the value: I like pie!

    However, if I have an Application element (not a page element!) named MY_APP_ITEM, how could I do the same thing? How can I use apex.server.process to set the value of MY_APP_ITEM in the session? I wouldn't be able to use "pageItems" because MY_APP_ITEM is not a page element, it is a part of the application.

    What is the correct syntax to do this?

    Thank you

    -Joe

    Hey Joe,

    Returning to that thread you made a couple of months ago, the answer is here:

    Post adjustment Application items in the apex.server.process for a * process application *.

    Defining a point of application is as easy as providing the name of the application element to p_arg_names Bay and set a corresponding value in the p_arg_values table.

    For example, in an application with article SOME_ITEM of the application, I can put the value as follows:

    (function(){
    var arrNames = [], arrValues = [];
    arrNames.push("SOME_ITEM");
    arrValues.push('some value');
    apex.server.process(   'dummy'
                         , { p_arg_names: arrNames, p_arg_values: arrValues }
                         , { dataType: "text"
                           });
    })()
    

    Any required application process. Should the item be free that you set it from the browser.

  • Post adjustment Application items in the apex.server.process for a * process application *.

    We were spending the entirety of our method of apex.server.process htmldb_get request the favorite (and documented and supported!). It has worked well so far for the AJAX JavaScript process call, as long as the process of AJAX in question was one * Page * level process. However, when we try to eat a * application * process, it just doesn't seem to work.

    For the examples below, we have two elements of Application named PRS_PRODUCT_PROFILE_ID and PRS_PROFILE_OPERATION. We have a process to request on request (* not * a process page!) named MAINTAIN_PRODUCT_PROFILE_2.

    Here are the previous htmldb_get approach (which works fine):

    function resynchronizeProductProfile (productProfileID)

    {

    var profileOperation = 'EDIT_PROFILE ';

    var ajaxRequest = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is MAINTAIN_PRODUCT_PROFILE_2', 0);

    ajaxRequest.add ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    ajaxRequest.add ("PRS_PROFILE_OPERATION", profileOperation);

    var resynchronizeResult = ajaxRequest.get ();

    ajaxRequest = null;

    Return resynchronizeResult;

    }

    Here's the (what I think is the) same call using the new approach of apex.server.process:

    function resynchronizeProductProfile (productProfileID)

    {

    var resynchronizeResult;

    $s ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    $s ('PRS_PROFILE_OPERATION', 'EDIT_PROFILE');

    Apex. Server.Process ("MAINTAIN_PRODUCT_PROFILE_2"

    , {pageItems: ' #PRS_PRODUCT_PROFILE_ID, #PRS_PROFILE_OPERATION '}

    , {dataType: "text"}

    Async: false,

    complete: function (ajaxResponse)

    {

    var resynchronizeResult = ajaxResponse.responseText;

    }

    });

    Return resynchronizeResult;

    }

    However, in the new version, arguments don't appear to be preparing when the MAINTAIN_PRODUCT_PROFILE_2 application process is called. PRS_PROFILE_OPERATION, for example, is on "even if above, you can see that it is, in fact, pre-programmed on 'EDIT_PROFILE '.

    As a general rule, the call to apex.server.process sets the item values in the page and in the session in a single step. This doesn't seem to be the case with elements of the Application (although it works very well for the items on the Page).

    What's up with that? Everyone see my mistake?

    Thank you

    -Joe

    Post edited by: Joe Upshaw

    Joe,

    Using the pictures I showed you can simply use your application objects in the process. This is exactly the same as what htmldb_Get: when you use. add(), you provide a key pair / value that will be added to the respective tables, it is just behind the scenes. By manually adding to the table with apex.server.process, you get the same exact behavior and apex define elements of page/application corresponding to the value in the table of p_arg_names with the value in the p_arg_values table.

    When test you it in your demo application by assigning the value of the page element, and then using the 4 button (point), you can see that the question of the application session state has changed by inspecting the session state of the elements of the application through "session" in the developer toolbar. (it's in the "apex of ajax samples - forum" app)

    Of course, you can use the scalar parameters x # to provide values for the process, but why would you do the extra arch? If the elements of the application would set the restrictions, you still get the same result as if they were not, and they are easily manipulated through the same ajax call. I added an extra button with an ajax call using x 01. I never had problems with the help of the scalar parameters.

  • Sending page apex to the application process (JSON) values

    Hi all

    A page 5 apex has a value in a hidden item, P5_CLASS
    In the apex 5 page, I wrote a JavaScript to call for a process of application (PL/SQL) to retrieve the values of a table on Page 5.
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is Get_Class_Data', 0);
    and I use the JSON object to display the rows in the table.
    -----------
    Problem
    -----------
    It works pretty well. But I need to send the value of the hidden element P5_CLASS to Get_Class_Data so that I can ask P5_CLASS-basedapplication process.

    Help, please.

    Shiva says:
    Thank you Paul,.

    So I can use

    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = GET_CLASS_DATA', 0);
    ajaxRequest.add ('F15_GLOBALVAR', $v ("#P5_CLASS")) to send the value to the application process?

    (F15_GLOBALVAR is an application-level element, I created in the shared components)

    And to use this application in my sql in GET_CLASS_DATA, I can use sql... where class =: F15_GLOBALVAR?

    Yes.

    (Please zip code wrapped in \

    ...\
    

    Tags to preserve the special characters and formatting.)

  • user name of the user who runs an Apex application in a database trigger

    Hello

    I need to fill a field of the audit in a trigger of database with the username of the user who runs an Apex application.
    In Oracle forms, I would have used the keyword "USER", I tried to use
    the word 'USER' in my trigger, but it is up to the user "APEX_PUBLIC_USER". I guess
    all users get connected as long as 'APEX_PUBLIC_USER' at a certain level.

    Can someone tell me how I can get the real of the user connected to the application of the Apex of a database trigger?

    I thank in advance for any assistance.

    Might want this in addition:

    nvl(v('APP_USER'), user)
    

    Since the database has no notion of the Apex, if you never update/insert/etc ' ing outside a session of Apex, v() will return a null value. That may be fine for your needs, but if your column is not nullable, it will throw an error.

    Just something to consider.

  • Apex 4.0 broke my removeNullValues application process

    I'm having a devil of a time finding why my process integer applicatio, which replaces the parameter of "null" values % with a real NULL, has stopped working. The session view indicates that page elements are always linked with "null %" so it suggests something is off with the following search query.

    Maybe something changed with the definition of APEX_APPLICATION_PAGE_ITEMS? What follows is based on messages from the forum here long ago for this problem to the APEX 3, so I guess everyone who did it and need to upgrade is to be bitten by the same bug. Is there a new and preferred way to handle this? I did some digging here, but saw nothing in the last 90 days.

    Tangent: it's a shame that 4 APEX is not only to take care of that. Or does?

    Application process: RemoveNullValues
    Point process: submit to the: after the layout of Page - before the calculations and Validations.

    BEGIN
    wwv_flow. Debug ('Application process RemoveNullValues!');
    FOR rItem IN
    (SELECT NOM_ELEMENT
    OF APEX_APPLICATION_PAGE_ITEMS
    WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)
    AND PAGE_ID = TO_NUMBER(:APP_PAGE_ID)
    AND LOV_DISPLAY_NULL = 'Yes'
    AND LOV_DEFINITION IS NOT NULL
    AND LOV_NULL_VALUE IS NULL
    )
    LOOP
    wwv_flow. Debug ('DEBUG' | rItem.ITEM_NAME |) ': ' || V (rItem.ITEM_NAME));
    IF V (rItem.ITEM_NAME) = "% null."
    THEN
    Apex_Util.set_session_state (rItem.ITEM_NAME, NULL);
    END IF;
    END LOOP;
    END;

    After debug output, nothing is never returned by this query, then maybe that is no longer a valid way to get the LOV page elements? Is there a better way to do this? The Application Builder Guide and reference on the API had nothing on the subject (and should, each APEX developer should not tackle the problem "null %" somehow?)

    Thanks for the tips!

    APEX 4.0, we have removed this behavior of null % weird with LOVs, but because of backward compatibility (someone might expect this value) we filled all the LOVs existing null % during the upgrade/import.
    All new LOVs you create have null % more unless you set.

    But there is more good news, there is a sorcerer in APEX 4.0 that eliminates the % of all LOVs null if you know that you need in your application. So, it is unnecessary for your process.
    Go to the request Builder\\Utilities\Upgrade Application and follow the steps in the wizard.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to remove an APEX application installed as a "Run Application only"

    How can I remove an APEX application that is installed as an application "Application only". Whenever I try to open the application I get a message indicating that the "application is installed but not editable. I also tried to re - install the application by setting the status to build 'run and build the Application' and the ID ID appliction to the single race App., but an error message appears that the 'Application ID reserved.'

    Thanks for any help you can provide.

    -Connect to APEX as an administrator to a workspace
    -In the administrative region on the right side of the page, click on Manage Services
    -Under the workspace, click on manage the State build request

    On this screen, you can configure each application to Run the Application only or Run & Build Application.

    Thank you

    -Scott-

    http://spendolini.blogspot.com
    http://www.sumneva.com

  • AJAX and APEX wooes application process

    I have an interesting problem where JavaScript is running and that it not postbacks, as I confirmed this by looking at the html via Firebug events but On Demand process does not (confirmed through a debugging log table). What has to be really puzzled is that right after I created the application process, it worked perfectly up until some time after I left the game and returned. Can anyone offer any suggestions?



    JavaScript in the Page header:
    <script language="JavaScript" type="text/javascript">
    function f_checkid ()
    { 
      var get = new htmldb_Get(null,$x('APP_ID'),'APPLICATION_PROCESS=CheckID',0);
      get.add('P20_STAFF_ID',html_GetElement('P20_STAFF_ID').value)
      gReturn = get.get();
      if(gReturn)
        {
    var sepPos = gReturn.indexOf("|");
      html_GetElement('P20_STAFF_PIDM').value = gReturn.substr(0,sepPos);
    html_GetElement('P20_NAME').value = gReturn.substr(sepPos+1);
    }
        else
        {  html_GetElement('P20_NAME').value = 'Invalid: None Selected or ID is Invalid!'  }
      get = null; 
    }
    </script>
    Request for application process:
    Name: CheckID
    DECLARE
       idn   varchar2(1000);
    id number(8);
    BEGIN
    SELECT FUNCTIONS.PROCESSID(:P20_STAFF_ID) INTO id FROM DUAL;
       SELECT TO_CHAR(id) || '|' || FUNCTIONS.GETNAME(id)
         INTO idn
         FROM dual;
       IF(TRIM(REPLACE(idn,'|','') IS NOT NULL) then
       HTP.prn (TRIM(idn));
    end if;
    INSERT INTO DEBUG (VAL1,VAL2) values (idn, id);
    commit;
    END;
    JavaScript function is triggered onBlur in P20_STAFF_ID.

    Hello

    Are you sure that your code in the process is correct

    This line seems incorrect to me
    IF (Trim (Replace(IDN,'|','') IS NOT NULL) then)

    It should instead be
    IF TRIM (REPLACE (idn,'|)) ((', ") {color: #ff0000} *) * {color} IS NOT NULL then

    Because I think that you close your clause works

Maybe you are looking for

  • Blackberry blackBerry 10 world does not

    BlackBerry world does not https://www.box.com/s/f2vz1vxjv6c7ore936r6

  • After XP downgrade, sound comes through the headphones and speakers

    Hi family Forum,. Recently, I've killed my dv2615nr Pavilion from Vista to Windows XP. Managed to install all the drivers and then followed the advice of CherylG (to whom I owe my ability to do something with this laptop, frankly) for the operation.

  • I want to home network Windows 7 64 bit PC and XP Pro 32 bit PC over a wireless network.

    I have problems to make the 64-bit machine to recognize the 32-bit computer.  I followed the advice help and support on 7 64-bit computer, but it just won't work.  They seem to see and recognize each other sometimes, but I can't share files between t

  • Dynamic array sum does not calculate to commit

    I use the code for a dynamic table in summary below.  Whenever I have add a second line "Table1.Row1", then select the value that would make countU == true 0, the Livecycle form will not re - calculate the query properly unless I re - select the firs

  • How it get off the ground?

    I taught my self, first Pro, InDesin, enough, PhotoShop and Dreamweaver. I have my site. I tried each HowTo with Adobe to get my site in Business Catalyst and I can't do anything in Business Catalyst to work. Miss me something of so incredibly basic