Assign value APEX URL of the page to the redirect of the page element

Hello
I have the following hard coded URL routing traffic on page 10:
href = "f? p = & APP_ID.:10: & SESSION. ::: 10 : »

However, now I have logic to determine the button of the page which should route traffic and I'm storing in a Page element called P6_PAGE_ROUTE (the value is 10 or 23). How can I get the URL to direct traffic based on the value in P6_PAGE_ROUTE? I did some research and I've tried using the & P6_PAGE_ROUTE. but it does not work:

href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : & P6_PAGE_ROUTE. : »

Thanks in advance for any help!

URL addresses by passing the values generally have this format:

href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : ITEM1, ITEM2, ITEM3:VALUE1, VALUE2, VALU3

Where,
Question 1 has value 1
question 2 has value 2
and point 3A of value 3

So the stuff LHS of the *: * must be the name of a page element

+ PS: Ensure no space after the comma as its URL. I fell for the first time and it is difficult to meet. +

Tags: Database

Similar Questions

  • Dequeue function element: if it expires, what value is sent on the wire "element"?

    Hello

    If you use a function Dequeue item with a time out and if the function times out, what value is returned on the wire "element"?  This is the default value for the type of item?  Or something else?

    Thank you.

    Yes, this is the default value for the data type. This is the default behavior for all terminals which has a behavior (for example, what happens if you try to index a negative element of a table) undefined.

  • How to assign values to varaible without full page refresh

    Hello

    I am very very new to the development of the apex. I'd like to understand how I can get the suite in the form of the Apex,

    I have a LOV (p2_dept) form with certain values. Depending on the value selected in lov, another control (textbox p3_dept_loc) must be made visible.

    I use apex 4.1.1.00.23


    Help, please.

    Use the dynamic Action.
    based on changes in the LOV field (I assume it's a Select list), you can define visible any other section or region.
    Following links should help.
    http://St-curriculum.Oracle.com/OBE/DB/Apex/R40/apexdynactions/apexdynactions_ll.htm

  • APEX 3.2.1: Page Element lose its value

    Hello.
    I defined a part of page with the following attributes:

    Hidden and protected
    Source: replacement always, value that exists in session state
    Source type: column database
    Maintain session state: per session

    I put the value of this element as a parameter OUT of a PL/SQL application process on demand that is called when the user presses a "submit" button.
    I can see that the value is as expected via DEBUG and printing htp.p of it.

    I have then try to use this value as a parameter passed to another process of PL/SQL application on demand which is called if the user presses another button "submit".

    However, this process sees a null as the value of the page element.

    What I have to do something like persist the value using one of the built-in Javascript functions or I make a fundamental mistake?
    Thanks in advance.

    Change the Source used for only if it sucks. I think what happens is that after sending and reload the page, it reads the new database that sets the value of the element with a Null value.

    I assume you have an extraction process DML somewhere on the loading of the page.

  • XML to the URL of the image element

    Hi all

    I used this to get the dynamic URL resolution for the logo on my report.
    A simple url: {'http://localhost/logo.jpg'} works great for HTML output.

    But once I use the XML element for the resolution of URLS, it does nothing...

    URL: {concat('http://',FILE_PATH)} retourne juste «http://» sans valeur d'élément chemin_fichier.)

    Needles to say, the element file_path on the report itself does the work and shows the path of the image.

    What I am doing wrong?

    Thank you.

    Take a look at this.

    Re: problem with dynamic image

    or

    ease of use

    url:{concat('http://',.//FILE_PATH} 
    
  • Display the results in a report on the APEX of two datepicker page elements

    Hi all

    I'm trying to get some data to display in a report by choosing between two dates. These two dates, I select by datepickers, then a button is pressed to submit and the report to appear.

    I made the conditional statement on the button, the button submit as "searchdates", then a branch that is conditional (when the button is pressed, the application is set to "searchdates") and the branch is: 'On Submit - after treatment.

    the query behind the report is:
    select * from desk_allocation
    where (DESK_ALLOCATION.DATE_FREE >= TO_CHAR((:P5_DATE_FROM), 'DD-MON-YY') 
          AND DESK_ALLOCATION.DATE_FREE < TO_CHAR((:P5_DATE_TO), 'DD-MON-YY') 
          AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
    AND DESK_ALLOCATION.ALLOCATED like 'No'
    and the sample data that I use to test:
    DESK_NO   DATE_FREE     ALLOCATED     ALLOCATED_TO 
    66         20-AUG-10       No             -  
    75         19-AUG-10       Yes            Superman  
    60         16-AUG-10       Yes            Spiderman 
    When I run the page, it is said no data displayed.

    Someone at - it ideas?

    Using APEX v3.2

    Thanks in advance :)

    I tried with your data with this query, remove the additional supports, SQLDeveloper. There is no record for 'No', then the data found was the correct result. Changed to 'Yes' and got results.

    select * from desk_allocation
    where DESK_ALLOCATION.DATE_FREE >= TO_DATE('10-AUG-10', 'DD-MON-RR')
          AND DESK_ALLOCATION.DATE_FREE < TO_DATE('20-AUG-10', 'DD-MON-RR')
         -- AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
    AND DESK_ALLOCATION.ALLOCATED = 'Yes'
    

    Kind regards

  • Assigning value Varibale Global using the SQL statement

    Hi OTN Experts.

    CREATE OR REPLACE PACKAGE start_discussion
    AS
    g_variable VARCHAR2(10)  := (SELECT tag FROM fnd_lookup_values WHERE lookup_type = 'LEDGER No. 1')
    PROCEDURE start_procedure_one
    IS
    BEGIN
    SELECT * FROM start_table_one
    WHERE code = g_variable
    .
    
    .
    .
    
    PROCEDURE start_procedure_two
    IS
    BEGIN
    SELECT * FROM start_table_two
    WHERE code = g_variable
    .
    
    .
    
    .
    PROCEDURE start_procedure_three
    IS
    BEGIN
    SELECT * FROM start_table_three
    WHERE code = g_variable
    
    

    Kindly inviting you to watch above code and advise if I can use this kind of functionality in oracle.

    I tried but its gives error below when compiling the code.

    DECLARE
      v_value VARCHAR2(40) :=
      (SELECT tag
      FROM fnd_lookup_values
      WHERE lookup_type = 'LEDGER'
      );
    BEGIN
      dbms_ouput_.put_line(v_value);
    END;
    /
    
    
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    

    Kind regards

    Shivaya

    Well, kind of, but not really.

    Who compiles or the other.

    something like this maybe:

    create or replace package foo

    as

    procedure start_procedure_1;

    end;

    /

    create or replace package body foo

    as

    g_variable varchar2 (10);

    procedure start_procedure_1 is

    Start

    null; / * put what here * /.

    end start_procedure_1;

    Start

    Select to_char (sysdate, 'yyyy') in the double g_variable;

    end foo;

    /

  • The assignment of value to APEX PAGE ELEMENT

    Hi all

    In Javascript I have value assigned to an element on the page P2_NAMES
    $("#P2_NAMES").val(Names);               //(Names is a variable used int he script)                   
    console.log($("#P2_NAMES").val());      //(to print in console of firebug)
                        
    The problem is that the console shows correct but to my surprise, the page output has passed an empty value on the next page during validation.

    When I click on the button 'Session' (Apex bar at the bottom of the screen) after I run the page - I don't see the values reported in the table of elements of page apex. Which means that the assignment of the value was not held, but the console displays the output.

    I also made sure that the Source "used" to the page apex element "Always, replace the value that exists in the session state»

    Masters, Help!

    Hey Shiva,

    There is also a feature in the APEX_UTIL package that will help you to define the session state of
    an Element of Page or an element of the application :

    http://download.Oracle.com/docs/CD/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDBGEEC

    But you must write a PL/SQL process to define the session state:

    BEGIN
        APEX_UTIL.SET_SESSION_STATE('my_item','myvalue');
    END;
    

    If through JavaScript, you can get through: AJAX.

    If default page layout then: dynamic Action advanced type run the PL/SQL Code runs above code block

    I hope that helps!
    Kind regards
    Kiran

  • 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;
    
  • How to limit navigation directly via the URL when the user tries to type the page number and access this page in ORACLE APEX 4.2

    Hi all

    I developed an application where I have 6 pages and 5 tabs and based on the user role I posted the tabs for the user to access these pages.

    But when the user, who doesn't have access to the particular page (say, page 2), but still the user can navigate to it directly by typing the page number in the URL.

    I want to avoid such scenarios.

    eg: http://Apex.Oracle.com/f?p=110:2 , when the user type this in the address bar, it navigates the user to this page even if this particular user does not have access to this page.

    How to prevent the user to navigate through the URL, if the user tries to navigate directly through URLS rather than tabs, I have to give the error message.

    Version: ORACLE APEX 4.2

    Thank you

    Good reading this recent post

    Re: Authentication at the Page level

    All links to a page and the page itself must be secure.

    You can also consider the protection of session state to prevent tampering of the URL.

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • How to assign a value of the element from page to main page in the column element when Cre

    I have a form build on table T1. The T1 has a primary key defined (T1PK) and four other columns (C1 - C4). I have a form in this table. This form accepts the values of C1 to C4 and displayis an extra point, is not based on columns of T1 - P1_DUMMY. The form for T1PK element has the value "hidden and protected.
    When creating the form, I wanted that the value of the primary key (T1PK) will be obtained through existing trigger. I want to use the value stored in the page called "P1_DUMMY" for P1_T1PK.

    No matter what I do, I always get this error when I hit the button 'CREATE' on the page of the form:

    ORA-01400: cannot insert NULL into ('DEV'. "" T1 ". ("' T1PK")

    The Create button is a condition not to show if the the P1_T1PK page element is NULL. I created page rendering process, the process of transformation of page like this bock of PL/SQL:

    : P1_T1PK: =: P1_DUMMY

    But I still get ORA-01400. The form has the P1_DUMMY as display only, not not to store the State, so I can see that the P1_DUMMY element has the value I want (2).

    How to assign the value stored in P1_DUMMY in P1_T1PK when I click on the button CREATE on this form?

    Thank you for your time.

    Daniel

    Hello
    The belief question is the way in which the calculation is being defined. You are not using the &. rating (dot ampersand) in PL/SQL and SQL.

    Try this.

    1 define the calculation on P1_T1PK of Type calculation of value of the element
    2. on the next page to load textarea, enter P1_DUMMY. No. colon or &
    3. give appropriate conditions

    Kind regards

  • Hidden field in form with the url of the page value

    Hello world of Dreamweaver,

    Just a quick question im stuck on.

    I have created a simple form name, Email and Message. The problem is I want to use the same form on several different pages, but being able to say what the URL of the form was sent from. I see I want a hidden field in the form, but how could I go all that actually send the URL with the other information?

    Thanks in advance!

    Do better on the server side (ColdFusion, ASP, PHP, etc.).   In ColdFusion, you can use #cgi.script_name # to get the name of the document that contains the form.

    However, you can use JavaScript (not as reliable - esp if the user has JS disabled.)

    Location.href or document. URL will take the path of COMPLETE domain including the name of the document.  Don't forget to access the page via the domain name FULL or http://localhost or http://127.0.0.1.  If access you it via file:\\\C:\path\to\document.htm, so I don't know how this will work.

    ^_^

Maybe you are looking for