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/

Tags: Database

Similar Questions

  • 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

  • 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

  • How to remove the header and page number when converting to PDF

    I am using Windows 7 and you have Acrobat 8.1 installed. When I right click on a .txt file and choose "Convert to Adobe PDF" in the context menu, it will save a pdf file in the same folder as my file with the same file name .txt. When I open the pdf file, there is a header with the file name and page numbers at the bottom.

    How can I adjust the preferences to omit the header and page numbers? I have a click with the right button on the Adobe PDF printer in the control panel "Printers" and looked through properties and 'Adobe PDF settings' in the preferences, but don't find any options for headers and footers.

    Thanks in advance.

    What you describe is based on the configuration of the running text editor.
    Here, the configuration is such that the content described is part of what is migrated to the PDF file when the PDF is created.

    Modify the appropriate configuration of the text editor and the created PDF will no longer spam.

    Example - using Notepad window:

    Click path = file - layout

    In the presented dialog box, you can adjust the configuration.

    While Acrobat "PDFMaker" allows configure us the interactive "improvements" and others as in a file PDF created, it is always application configuration of creating files creation that sets the 'meat and potatoes' of the content of the PDF created.

    Be well...

  • 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

  • Firefox save the header and Page layout in Linux Fedora

    Does anyone know how to record continuously the layout in Firefox under Linux (IE, Fedora)?

    In Windows, it's easy to do, under file, Page Setup, margins and header, then you can change it and click OK and he remembers this setting.

    However, on Linux, you must go to Options, file, print, and then change there, but there is no Save or OK button, so it does that to a print job and you will have to change each time.

    We must stop definitely Firefox under Linux to print anything in the header, especially the URL.

    This has happened

    Each time Firefox opened

    Always

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; Chrome/4.1.249.1064 en-US) AppleWebKit/532,5 (KHTML, like Gecko) Safari/532,5

    See if it works for you - worked for me on Ubuntu 10.04:
    Type of topic: config in the URL bar and press ENTER.
    If you see the warning, you can confirm that you want to access this page.

    Put the header in the filter line and right click each of these three preferences one at a time. Select Edit and clear this code so that the box is empty - then click OK.

  • Safari breaks before the loading of pages

    I'm running Safari on OS 10.11.2 9.0.2.

    Blue loading bar of Safari is paused when I click on a link or are you trying to load a page. Sometimes, the page will load later. Sometimes, the page stops permanently.

    I'll refresh, refresh, refresh. Sometimes I'll reach an error page that the site cannot be loaded. Then refresh once more will make the page to load.

    I already uninstalled extensions and plug-ins. None of them seem to make a difference.

    This problem occurs on the home wi-fi and wi - fi work.

    Someone at - it ideas?

    DNS server irrelevant or invalid DNS configuration may cause long delay before the loading of webpages - Apple Support

  • Ampersand in the header of page pdf

    Hello

    I have a problem with the printing of the pdf reports in Apex 3.0.1 on OracleXE (using the cocoon of Apache and Tomcat as in example of Carls).

    When I try to enter a value of items using the & nom_element. syntax, that it does not work if the value of the element contains an ampersand. I tried to write the ampersand as & amp; amp; but it breaks again the pdf file.

    Is there another way to include an ampersand in the header page of a pdf document or maybe it's a bug that has been fixed in a later version of the apex?

    Thanks for the help in advance,
    Dirk

    Hello

    Following Maye bypass

    '&' can be replaced by "% 26amp;

    Kind regards
    Iloon

  • Case in SQL condition does not return the values as expected

    Hello gurus of PL/SQL,.

    SELECT amd.brkr_nm, amd.brkr_sym, AMD.MINORITY_FLG, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
    WHEN atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY - CASE THEN
    WHEN AMD BOX. MINORITY_FLG = 'Y' THEN
    CASE WHEN atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY THEN 'Done' ELSE 'InDirected.
    END
    ANOTHER "NA".
    END
    ELSE ' 0'
    END
    AS Direction_Method
    Of
    alloc_tran_det_fact atdf,
    ACCESS_METHOD_DIM AMD

    But it returns me the 0 value in the Direction_Method field. But when I checked the values in DB then my first condition (atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY)
    second condition (AMD. MINORITY_FLG = 'Y') and third (atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY) condition of all them have passed, then it should show the value as indicated, but it is shwoing the '0' value only in the Direction_Method column.

    Kindly help me.. .am I missing something?
    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production. I can't create the test data in the database, I did not have the required privileges to make :(

    Kindly help me, thnanks in advance for your time and your comments

    Published by: user555994 on May 24, 2012 02:00

    could be a space or case (upper or lower case). Try:

    /* Formatted on 2012/05/24 16:00 (Formatter Plus v4.8.8) */
    SELECT amd.brkr_nm, amd.brkr_sym, amd.minority_flg, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
           CASE
             WHEN trim(upper(atdf.comm_brkr_dim_key)) = trim(upper(amd.access_method_dim_key))
               THEN CASE
                     WHEN trim(upper(amd.minority_flg)) = 'Y'
                       THEN CASE
                             WHEN trim(upper(atdf.exec_brkr_dim_key)) = trim(upper(atdf.comm_brkr_dim_key))
                               THEN 'Directed'
                             ELSE 'InDirected'
                           END
                     ELSE 'NA'
                   END
             ELSE '0'
           END AS direction_method
      FROM alloc_tran_det_fact atdf, access_method_dim amd
    
  • 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.

  • Open a new tab (before the update, clear page) after updated a page web search engine (junk))

    After clicking on the sign (new tab) this happens:

    www.Delta-Search.com/?babsrc=NT_ss & mntrId = 067974DE2B19E349 & Mntrid = 119820 & TT = 040713_ctrl & TSP = 4935

    I never asked for this, and I've never heard of him.

    I tried to find where this page is without success, can anyone tell me please how to eliminate this site and what I want is to have a clear page, when I click on (open a new tab)

    Install the Reset search tool. and delete "Delta search" of the Control Panel, also remove a user.js file possible
    https://support.Mozilla.org/en-us/KB/how-to-fix-preferences-wont-save#w_user-js-file-overriding-preferences

    This corrects the problem? Let us know!

  • 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

  • How place of content between the header and tabs?

    I have the header part which must be constant through the portal but below that I have 3 links
    as I AM an employee, employer, broker...

    which showed that in the homepage above the tabs...
    How can I do this...

    How place of content between the header and tabs...: () kindly help...

    Hey djo
    Try these approaches and see if it works.

    1. in the header Section, page footer you shell header and add a Portlet header. This JSP file associated header Portlet will be all static content in the upper part. In the lower part, add these 3 links say right. Show these links only based on certain properties of the query as isHome. Now for the main book House and another page associate a BackingFile. In this backup file in the lifecycle methods preRender or handlePostBack, get BookManager instance and all pages and see which page is active. For this page, see its page definition label which will be always unique. IF the page def label is like home_page_def (it is the wording of the page def you give to the homepage), then set the value of the key in the request as isHome = true property. The only doubt is after book backingfile is triggered, the header needs to be reloaded, because only then can he pick up the attributes of the request.

    2. create a new portlet as HomePageLinks portlet. Its title property is not Visible and other properties of the UI as NoBorder, etc. NoTheme. The associated JSP will be the 3 links you mentioned fixed right. You can use css styles to make it right. Now dropping this portlet in the header Shell box. You have already HeaderPortlet in the upper part, lower than that, you will have this portlet HomePageLinks. Now associate a backup file for this Portlet show, only if the current active page of books is the home page comparing the label def etc. as mentioned above.

    In both scenarios, only concern is when clicked on different Pages, the entire portal is to be made directly from the header at the top. Only then the backup file will be set the key and the portlet HomePageLinks can show or hide as a result.

    Try to raise an event when the user clicks on the homepage. This port listening for that event can be HomePageLinks Portlet. I guess the event mechanism should work regardless of where the portlet is placed. In the event listner, see if you can show/hide this portlet.

    The only challenge is reloaded must section header whenever you click on a tab.

    Start putting a few files of backup and System.out.printlns to see if the header section gets recharged on, click on the tabs.

    These are just my thoughts on the top of my head. Other users of the forum may have better alternatives or a different version of the above approaches.

    Thank you
    Ravi Jegga

Maybe you are looking for