Before the header

Hello

I have a page that is supposed to be doing some work and then redirect to another, it is because this page should take arguments through the URL (HTML link is used, not a form submission to pass arguments) and avoid the pressure of the user refresh and repeating the action I want to create a page that does the job and then redirects to the page of the user clicks on the link with some action (for example. ("Delete row" in a tabular presentation).

Now for my problem, which seemed perfect for this is a header and branch process. In the process I get the job done and then in the direction of redirect to the page. But unfortunately, APEX is not what I want, if there is no branch that processes are running but with a branch, the processes are ignored. Don't you think that it is a bug in APEX? The use of a branch "before the header" decreases a lot when you can run any process "before the header" before the branch is made, is not it? At least it is unexpected and does not seem logical, I want to redirect without making the process you could always solve that with conditions, in this way the problem is unsolvable using built-in apex mechanism and I have to resort to the use of Javascript to redirect the page (and how you even include process using the Javascript redirect success message?)

So, in short, I am missing a more common idiom to set up a page that makes a few treatment via parameters in the URL and then performs a redirect to another page, or will be the only solution using Javascript?

Search for suggestions or solutions, as always on this forum useful.


PS. I can't use a form, there must be a link located in each row of the table. "Column links" could not be used because I have multiple links in the same cell in the report, so I haven't looked into them. I generate the links myself in my SQL statement using this function:

FUNCTION CreateLink (p_page in varchar2 default p_items null, varchar2 default NULL,
p_values in varchar2 default null, p_request in varchar2 default null)
return varchar2
is
Start
-for example. f? p = 123:4:3660195698136138:P4_PACK_NAME, P4_FUNC_NAME:PKG_FILE_NAME, GENERATE_FILE_NAME_US
return ' f? p =' || APEX_APPLICATION. G_FLOW_ID | ':'
|| NVL (p_page, APEX_APPLICATION. G_FLOW_STEP_ID) | ':'
|| APEX_APPLICATION. G_INSTANCE | ':'
|| p_request | ':::'
|| p_items | ':'
|| p_values;
end;

Published by: user10858232 on January 26, 2009 03:44

Published by: user10858232 on January 26, 2009 03:45

Published by: user10858232 on January 26, 2009 03:46

Hello:

You may reach the redirection using 'owa_util.redirect_url' as in the example below

owa_util.redirect_url('f?p=::v('SESSION')::NO:::');
apex_applicaiton.g_unrecoverable_error=true;

So do treat your 'work' a header and add the 2 statements at the end of this before that the process the header.

CITY

Tags: Database

Similar Questions

  • How to insert a < script > code before the < / head > tag?

    I would like to insert a < script > code inside pages of my site, and it should be placed before the < / head > code.

    Can I handle this with muse? Otherwise, every time when I export the site in HTML, I need to open the files updated and copy and paste the SCRIPT code in the HEAD again.

    Adding scripts to the head section of your documents is not currently supported in Muse, however it is planned for future versions of Muse.

    You can add links to the scripts by using the object-> Insert HTML code, but it will be inserted at roughly the position of the element in HTML page.

  • "before the header" process and page elements

    I want a process running in 'On Load before the header' page X see an element value them was introduced to her page Y.
    How this can be done?

    The element on page X will have its value before executing the process "before head". You can see if your page in "debug" mode.i

    CITY

  • redirect with notification before the header

    I have a report pages that have "edit" buttons that invite you to the URL of the page change the APEX with the important information such as primary keys. If the data changes (i.e. a record has been deleted) under the user and the user clicks on 'Edit', the user receives the message "ugly":

    ORA-01403: no data found
    < stop sign > error on line cannot.
    Ok

    It occurs due to forward the process of the row header. I could put some additional areas to inform the user and conditions to see the/run the page differently. But I expect to do is to redirect the user to the page of report and have a notification message indicating the change data and the current data.

    I have a process before the fetch line process that checks if the data is there. If the data does not exist, then owa_util.redirect_url () redirects to the page of the report. However, I was unsuccessful by displaying a notification message. I tried setting g_notification, g_print_success_message as well as to the news of success in the redirect URL. However, I was unsuccessful in creating a notification. Here is forward the process of the header:
    declare 
    cnt PLS_INTEGER;
    
    begin
    select count(*) into cnt
    from board 
    where board_id=:P220_BOARD_ID;
    
    if cnt != 1 then
      apex_application.g_notification :='Data Changed';
      owa_util.redirect_url('f?p=&APP_ID.:200:&APP_SESSION.::NO:220:::&success_msg=changed data');
      apex_application.g_unrecoverable_error:=true;
    end if;
    end;
    Any thoughts would be greatly appreciated. Thank you.
    -Carmine

    Carmine:

    You can try the following

    Create an application called g_error_msg
    In the redirect url the value g_error_msg to the value desired

    owa_util.redirect_url('f?p=&APP_ID.:200:&APP_SESSION.::NO:220::G_ERROR_MSG:changed data');
    

    Define a 'Load On - before heading' process in the report with the following code page

    apex_application.g_notification:=:g_error_msg;
    :g_error_msg := null;
    

    Make this process depends on "g_error_msg", with a value non-zero

    CITY

    Published by: city was on October 26, 2009 06:26
    Change of apex_application.g_notification_message: =: g_error_msg to apex_application.g_notification: =: g_error_msg;

  • scroll the content before the header below it and not on top

    Hello

    At my header and footer any place in this content on the homepage rode underneath

    woke up today and the content on the home page is scrolling on the header

    any thoughts on how to address them to the home page and other pages scroll in my head of sticky which is pinned at the top? \

    Thank you

    Hello

    Please try the following steps to resolve this problem.

    • A - master page open in Design view.
    • Open the layers panel and create a new layer and name as "navigation" to ensure that it at the top of the list.

    • Select the navigation elements as shown in the screenshot below.

    • Once selected, right-click on it and select "move layer".
    • Then select the top layer of most "navigation".
    • This will bring the items selected in the top of the stacking order and will solve these two issues.

    Kind regards

    Vivek

  • Strange question before the header function call

    Hello

    I use Oracle APEX 3.2.1.00.10 with a database of Oracle 10.2.0.4. It seems that when I call some functions in an anonymous plsql block a page header before I get

    ORA-01858: a non-digit character was found here where was waiting for a digital

    errors. The functions in question accept 2 types of NUMBER and RETURNS a type NUMBER. The code works correctly PLSQL. Is there a limit on the size of a function I can call
    directly from APEX or maybe theres some type conversion happening?

    All the ideas that it is rather strange that the other functions seem to work well

    Thanks in advance!

    As Paul said, there are probably some date related code in the body of the function. The reason why it performs very well outside the APEX is perhaps because the default NLS_DATE_FORMAT value is different to what uses the APEX. Try to play with it, hope that helps.

  • PL/SQL conditional Progess to before the header to page 0

    Hello, all THE

    I want to run PL/SQL processes on all on the application page. based on the condition...

    Can someone help me on this

    Kind regards
    Rahul

    Hello Rahul,

    Go to the shared components / application process. There you can define when (the Point), what (PL/SQL) and the conditions for a process of PL/SQL 'global '.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

  • Saving a file of the APEX help before the process of Header error

    Hello

    I am current trying to simply allow the user to download and save a text file after pressing a button on a page of the APEX. Links to a new page which does nothing except button perform a process before header containing the following pl/sql code:
    begin
    
    -- Set the MIME type
    owa_util.mime_header( 'text/plain', FALSE );
    
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="alphafile.txt"');
    
    -- Close the HTTP Header
    owa_util.http_header_close;
    
    htp.prn('Hello World');
    
    htmldb_application.g_unrecoverable_error := true; 
    
    end;
    When I then press the button to access this page, I get a blank page which shows:

    Content-type: text/plain; Charset = UTF-8 Content-Disposition: attachment; filename = "alphafile.txt" Hello World

    Any help is greatly appreciated.

    Kind regards

    Alex

    Hello

    I think you should do application process state for example PRINT_FILE, and then the url button

    f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:PRINT_FILE
    

    For this application process "on the load before the heading" need you from your code

    Or try htp.init place start your code

    Hope that helps

    BR, Jari

    Published by: jarola on January 12, 2010 21:40

  • EXC in ev handl: TypeError: this.oRoot.enable is not a function that is popping up when I befor I open my browser in a box pop up under the heading JAVA SCRIPT EXE. That is - what, how can I get rid of him?

    TypeError: this.oRoot.enable is not a function

    This is popping up when I befor I open my browser,in a pop up box under the heading JAVA SCRIPT EXE. What is it, how do I get rid of it?
    

    For me, this happened from disabling, but do not uninstall McAfee site Advisor. Recommend site completely uninstalled and the problem disappeared completely. I had turned off before site Advisor, but it seems after a update to McAfee, he was back and then turn it off again caused this problem.

    Go to "uninstall a program" or "add/remove programs" in control panel. Find McAfee in your list (McAfee total protection for me). Click it and then click "Uninstall/Change" (right there in XP, up above in Vista or 7). I don't remember exactly what you see after that, but at one screen I was given the choice to uninstall the McAfee total protection and/or the Site Adviser. You can just check the Site Adviser and just uninstall the Site Adviser while retaining the rest of the McAfee protection.
    

    Good luck!

  • '=', ', ';', 'asm' or '__attribute__' before error for the header WHEREAS C++ file.

    The path location type Resource Description
    EXPECTED '=', ', ',';', 'asm' or '__attribute__' before 'geolocation '.

    I searched high and low in Google to find a solution to this.  The header file is GeoLocation.hpp and it is the class declaration "class location". "."

    Any thoughts?  My C++ is a few years old.

    My experience tells me that you try to use a C++ class (class doesn't exist in C++ I suppose you know) in a C project.

    The key is:

    #if defined (__cplusplus) || defined(__CPLUSPLUS__)
    

    so that it compiles only in a C++ 'context' (I guess you'd call it).

    Test case:

    //------Test 1 (just the class)
    class GeoLocation //Error
    {
      public:
        GeoLocation();
        ~GeoLocation();
    };
    
    //------Test 2 (extern C)
    extern "C" {
    class GeoLocation //Error
    {
      public:
        GeoLocation();
        ~GeoLocation();
    };
    }
    
    //------Test 3 (extern C++)
    extern "C++" { //Error
    class GeoLocation
    {
      public:
        GeoLocation();
        ~GeoLocation();
    };
    }
    
    //------Test 4 (only use for C++)
    #if defined (__cplusplus) || defined(__CPLUSPLUS__)
    class GeoLocation //No error :D
    {
      public:
        GeoLocation();
        ~GeoLocation();
    };
    #endif
    
    //------Test 5 (only use for C++ and extern C++)
    #if defined (__cplusplus) || defined(__CPLUSPLUS__)
    extern "C++" {
    class GeoLocation //No error :D
    {
      public:
        GeoLocation();
        ~GeoLocation();
    };
    }
    #endif
    

    I did the code in the same way (with the if statement) then did::GeoLocation() GeoLocation and everything worked and compiled correctly.

  • Error message: unable to save this article before you save the header entry

    Hi all

    I'm trying to insert data into the table of okc_k_processes using an API. When I run my application, I get this error message: unable to save this article before you save the header entry. I tried to open the API package body and locate the error but could not find it. How to solve this?

    Thanks in advance.

    3065204 wrote:

    No, there is no trigger on the table. But what he really tell by the error and to save the header entry?

    We do not know your code, and we do not have access either!  So, how are we supposed to know what a particular error message?  You can not save the ticket before you save the header entry is NOT an Oracle error, it's a validation error request that someone who wrote the API set.  We can only guess why you get it.

    Your API call should be to create a detail record and requires that you create a header record.

    The validation is

    • okc_contract_pub.create_contract_process and one of its dependencies
    • pa_interface_utils_pub.get_Messages
    • a trigger on a table.

    run the following

    Select *.

    from ALL_SOURCE

    where the TEXT like '% you can not save this entry before saving the header entry %.

    and you'll probably find where.

  • Apex 5 - pl/sql, before the process of the header

    Hi all

    I have a PL/SQL process before header which read a table (with a key of the application element) and many elements of the page linked to the (authorized) db with a procedure in a package.

    In version 4.2, I could use page elements related to the column of the source table ' only when null... ", to place this items with PL/SQL, before that process the header and then submit them to update the db.

    Now in version 5, db binded items must have source "Always, replacing everything..", so how can I set this value points at a meeting with the process of pl/sql?

    I tried with the apex_util.set_session_state, but it does not work.

    Is there a way to do this without the need for dynamic action?

    Thanks in advance for your suggestions.

    Robi

    Hi Robi,

    Robi says:

    I have a PL/SQL process before header which read a table (with a key of the application element) and many elements of the page linked to the (authorized) db with a procedure in a package.

    Do you mean 'Automated line Fetch' process usually generated in the type wizard forms?

    In version 4.2, I could use page elements related to the column of the source table ' only when null... ", to place this items with PL/SQL, before that process the header and then submit them to update the db.

    Now in version 5, db binded items must have source "Always, replacing everything..", so how can I set this value points at a meeting with the process of pl/sql?

    I tried with the apex_util.set_session_state, but it does not work.

    Yes. It is newly introduced in Oracle APEX 5.0 forced a Page mapped to the DB column element should have used Source as "Always, replace the value that exists in the session state.

    You can change the Compatibility Mode of the APEX Application 4.2 to substitute the constraint.

    Reference: base Oracle: APEX 5 Source - attribute tolerates less mistakes

    Is there a way to do this without the need for dynamic action?

    If you want to stick to Oracle APEX 5.0 (and not to change the Compatibility Mode), then dynamic actions is the rest of the solution.

    Kind regards

    Kiran

  • Can't access: REQUEST in the page before the process of the header

    4.2.1

    THM: 2

    Hello world

    I have a button on a page with all pages to submit and demand set to "RESET". I want access to this: ASK the sur-avant charge that the process the header, but cannot. In fact, when I click the button, it submits the page. and on the load, I should see the: ASK as "RESET", but it seems to be empty.

    I do wrong?

    Thank you

    Ryan

    ryansun wrote:

    I have a button on a page with all pages to submit and demand set to "RESET". I want access to this: ASK the sur-avant charge that the process the header, but cannot. In fact, when I click the button, it submits the page. and on the load, I should see the: ASK as "RESET", but it seems to be empty.

    By default, the value of the CLAIM is reset before show page processing begins. To apply a value available in the page see the transformation, it must be defined in the URL of the page when a request or redirect or specified in the property of the request of an industry. In both cases, the current value of the APPLICATION can be stored by reference using the substitution of static text ( &REQUEST. ), or the value of an element of a page or application session state provided using static text substitution ( &P101_FOO. )

    In this case, you will need to create a branch and make it conditional on the submit button.

  • in Muse put a script before any script of Muse in the head of each page

    I need to place a cookie policy script in the head of each page as the first script before any script of Muse, in order to operate correctly. Is this possible without exporting to html and to do it in Dreamweaver (it's rather complicated anyway, at least for a designer with no knowledge of the code)?

    The site is hosted on Business Catalyst. Actually, the code of the script cookie policy was glued to the head of the master pages, but does not work well.

    Any suggestion, please help me.

    I don't see any other way other than the export as HTML page and then include it in the code.

  • Before the process of pl/sql header to assign values to the elements on the page

    How can I assign values to the elements of a page based on the data structure returned by a pl/sql procedure in the front header process? I think execution of a pl/sql procedure based on a URL parameter value and then assign values to the page elements. Is this really possible using Apex 4.0.2? If so, how can it be done?

    Thank you

    Salome

    The question is not really clear. What kind of "data structure returned by a procedure from pl/sql? Please be much more accurate.

    For a data structure of PL/SQL such as records containing 2 elements (x and there) returned as output parameter for a procedure to be assigned to 2 items p1_x and p1_ypage, all that is necessary in the header before process is something like

    declare
    ...
      l_rec rec_type;
    ...
    begin
    ...
      the_proc(..., p_out => l_rec, ...);
    
      :p1_x := l_rec.x;
      :p1_y := l_rec.y;
    ...
    end;
    

Maybe you are looking for

  • Download the video in MPG format to iCloud photo library

    Is it possible to download a video file, MPG to a Mac to iCloud photo library? I stopped using iCloud photo library on the Mac due to low disk space, however I always use iCloud photo library on other devices and would like to have the video availabl

  • 5 s - reset iPhone

    I bought my iPhone 5 in February 2013 and have been using it since. As I want to give this iPhone to my husband, now I bought a new one, I followed the following steps: 1. a version of its iPhone "Broken" on my only restored, but all of my informatio

  • With an average of data points

    Hello My setup is run by labview and wishes to reduce the noise associated with my data by taking more medium. I would like to have the medium-sized data points and taking the average of them and save only the average at the same time the experience

  • Receive an error message when starting

    Original title: Evert time I turn my laptop on, I get a screen notpad msg: CmdVBS Whenever I turn on my laptop I get a msg notpad CmdVBS:Set WshShell = CreateObject ("WScript.Shell")Chr (34) WshShell.Run & "C:\Program Files\Verizon\IHA_MessageCenter\

  • 17 - f260nb of Pavilion: Pavilion 17-f260nb downgrade win 8-7

    Hello I got a new laptop of 17-f260nb pavilion by leaving my old company. I went to the hardware store with her to have an installed SSD. I asked them not to install any OS, as I intend to install my own windows 7 dvd but of course, they went a littl