APEX 5: variable crumbs

Hi all

In our application, we have the following situation for example:

3 pages:

-P1: report 1

-P2: report 2

-P3: detail of the page

P1 and P2 are our reports which we have the ability to click on a button that opens the detail P3 page.

Is it possible to make sure that when it comes to P1 on P3 shows P1 breadcrumb and when it comes to the breadcrumb shows P2 P2?

Kind regards

Kim

You could look at this blog for a possible answer: Dimitri Gielis Blog (Oracle Application Express - APEX): dynamic navigation in the APEX bar

Thank you

Tony Miller
Los Alamos, NM

Tags: Database

Similar Questions

  • Apex - with the external database audit trail

    I'm currently installing a primitive audit trail that allows me to record data, create users, update, update user. I currently have 3/4 but I can not get the user name in the database like V ('APP_USER') is at the top and the database in Oracle 10 G elsewhere.

    Suggestions or alternative ideas?

    f1f7a787-7f56-4451-8300-5a9a0215226b

    If v() and apex_application.g_user are not available in the trigger on the external database code.

    But the external database package variables and procedures are available on the database running APEX.

    What I would do, is to create a package with a package variable that will contain the user of the apex. (in the external database)

    Then, in the application definition > session database > initialization code PL/SQL defined this package to the apex user variable.

    Clear the package again variable in the cleanup code.

    Using a package variable means that the value is aviable at the session of entire database but not outside the East.

    Apex every page load or submit and load next page is a database session.

    Now the package variable will be set when a user of the apex and the null value when there is a database user.

    Using an nvl around the package with user variable as an alternative, will give you the user apex when the action was made by a user of the apex and the database user is not.

    Nicolette

    PS change your handle or at the signing of all least your post will result in a more friendly welcome message.

  • Error - exception error not supported for user - Help!

    Hi all

    I get an exception error unsupported to the user in a part of my page is refreshed after encountering a validation error.  Validation is managed properly, but when the page is refreshed to display I get an exception error not support for the user for the following code (generates the value of the element on the page):

    < code >

    Select nvl (sum (po_details.po_det_amt), 0)

    of po_details

    where po_details.po_id =: P230_PO_ID

    and po_details.wbs in (select distinct wbs_number_id of wbs, project

    where wbs.vendor_id =: P230_VENDOR

    and substr (wbs.wbs_number_id, 1, 6) = project.wbs_sequence

    and project.project_number = nvl (:F101_FPC_NUMBER,project.project_number));

    < code >

    When the code retrieves a single value, the following post calculation calculation of:

    < code >

    to_char(:P230_PO_AMT_FPC,'FML999G999G999G999G990D00');

    < code >

    Generally, the process works.  It is only when a validation run which prevents the removal of a purchase order that I encounter an error during a refresh of the page.  I get an exception error unsupported to the user for this calculation.  I'm puzzled.

    Any ideas?

    to_char(:P230_PO_AMT_FPC,'FML999G999G999G999G990D00');

    AFAIK - all within the APEX bind variables are of type VARCHAR2

    That means - you are implicitly expressing a string to a different data type just to cast to a string.

    So: this code is completely useless and adds more complication to the mix only what you need.

    It is very possible that Oracle is trying to convert a DATE... (which will fail)

    I put either the FORMAT for the type of element to match what you need or make the conversion from the string in your SELECT statement.

    for example

    Select to_char (nvl (sum (...), 0), "FML999G999G999G999G990D00")

    If you still get a 'user defined error', it is likely to be lifted since within the procedure used to remove the PO.

    See the DEBUGGING within the APEX pages to check exactly where the error is thrown.

    (it sounded like you already did and have reduced in to_char() section)

    MK

  • ORA-01722: invalid number

    I get the error: ORA-01722: invalid number during the execution of the SQL statement.

    SELECT

    TO_NUMBER (TO_CHAR ((TRUNC(:P_DATE1,'MM')-1), "MM")) LAST_MON

    OF THE DOUBLE

    Sanjay

    I'll guess that you write an APEX application.

    In the APEX, the variables are always strings.  If you want to interpret as dates, you should pack them with a call TO_DATE and a format mask.  Assuming that you stated your control APEX of date in MM/DD/YYYY format, it would mean that the SQL, you would need is

    SELECT
      TO_NUMBER(TO_CHAR((TRUNC( TO_DATE(:P_DATE1, 'MM/DD/YYYY'),'MM')-1),'MM')) LAST_MON
    FROM DUAL
    

    Of course, if you're just trying to extract the month to date and subtract 1, I just have

    SELECT extract( month from to_date( :p_date1, 'MM/DD/YYYY') ) - 1
    FROM dual
    

    Justin

  • BACK Page of Application/item values

    Hi all

    I use a package and I need the value of certain elements of the ApEx on the inside but I can get it. I use the following code: (without success)

    SELECT v ('APP_USER') FROM DUAL

    How can I get the current value of an element by using pl/sql code? This element may be a page or application component.

    Cordially Pedro.

    Hello

    With the code you have shown you are not actually store this value any where...

    declare
      l_name varchar2(100);
    begin
      l_name := v('APP_USER');
    end;
    

    would work.

    However, it would be much more efficient to move in the value of your your apex application variables in the code packaged as parameters (to avoid the call to the function of V).

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • Apex.mail p_cc for several e-mail addresses which are variable

    This should be a very simple here is my code

    < tt >

    APEX_MAIL. SEND)

    p_to = > ' [email protected] ',

    p_cc = > ' events. CONTACT_EMAIL, [email protected]', <-next does not work because events. CONTACT_EMAIL is a variable

    p_from = > ' [email protected] ',

    p_body = > ' ',

    p_subj = > ' Date of scheduled critical event is close! Alert 1 - Variable try 3rd ',.

    p_body_html = > ' < b > < /b > RESSA team critical event notification! < br > < br > the ' | events. EVENT_NAME | ' critical event is not yet complete! < br > < br >

    Please fill out all the required measures and then mark the event as State finished in order to avoid escalation, thank you.

    < br > < br > a brief review of the event details: < br > < br > < table border = "1" style = "width: 100%" > < tr > ' | events. EVENT_DESC | ' < /tr >

    (< /table > ');

    < /tt >

    so the p_cc line is not error, but this isn't work. If I change this line to ' p_cc = > . ' [email protected] , [email protected] ',

    It will work but I need to use variables and addresses coded e-mail is not difficult. I'm looking for the simplest solution please.

    Any ideas? -Apex 4.2 - pc windows 7

    Hi Richie,

    You must concatenate your variables into a single string with email, separated by commas:

    p_cc-online variable1 | ',' ||  variable2

    Sergio

  • APEX variable for the number of lines of standard report?

    Hi people!

    Pagination to any report APEX, there is this "X-Y-Z" option, with Z showing the number of selected lines. I need this "Z".

    In my report, I have several filter options, and I would like the user to get feedback on the number of rows is selected as "X / Y", with there being a number calculated in advance and X number of rows returned. Now I was run all of the report a second time, by storing the count (*) result in a page item, but if there is a variable that already exist in the APEX (for paging) that would no doubt make things a little easier. I havn't found anything still looking, but more probably, one of the experts here knows how to access this value.

    Thanks and regards,

    Tobi

    You are supposed to be able to get the required information using the #TOTAL_ROWS # and #LAST_ROW_FETCHED # substitution string in the footer region.

    Note that for #TOTAL_ROWS # to work the report must use a paging system that calculates the total number of rows, for example "line ranges X y z (with pagination).

    However, the #FIRST_ROW_FETCHED # and #LAST_ROW_FETCHED # currently no change when I test it. These substitution strings are not compatible with the mechanism of updating now used partial page for pagination of reports, either this is a bug.

  • Get back information XMLSERIALIZE in a variable of the APEX...

    ((Request Express 4.1.1.00.23 11 g)


    So, I have the following code:

    with test_table as)

    SELECT VM_REPORT_DATE, quantity, point VM_CORE unpivot)

    ITEM quantity in (VM_HOSTS_NUM, VM_NUMBER, VM_PHYS_MEM, VM_VIRT_MEM, VM_CPU_COUNT, VM_TOTAL_DISK, VM_PROVISIONED_DISK)

    () where VM_DCNAME = "bc_production")

    SELECT XMLSERIALIZE (CONTENT XMLELEMENT ("SERIES", xmlAttributes (under the name "option name"),

    XMLAGG (XMLElement ("point", xmlAttributes (VM_REPORT_DATE as "name", much like "y")))

    ()) as the Group test_table NOMINATIVE by point;

    Which returns successfully:

    NOMINATIVE CASE
    < SET name = "VM_CPU_COUNT" > < point name = "2013-10-29" y = '1312' > < / point of > < point name = "2013-10-23" y = "1308" > < / point > < / SERIES >
    < SERIES name = "VM_HOSTS_NUM" > < name of the = y '2013-10-29' = '20' > < / point > < point name = "2013-10-23" y = "22" > < / point > < / SERIES >
    < SET name = "VM_NUMBER" > < point name = "2013-10-29" y = "617" > < / point of > < point name = "2013-10-23" y = "616" > < / point > < / SERIES >
    < SERIES name = "VM_PHYS_MEM" > < name of the = y "2013-10-29" = "4727.59" > < / point > < point name = "2013-10-23" y = "5175.54" > < / point > < / SERIES >
    < SERIES name = "VM_PROVISIONED_DISK" > < name of the = y "2013-10-29" = "76307.65" > < / point > < point name = "2013-10-23" y = "75848.3" > < / point > < / SERIES >
    < SET name = "VM_TOTAL_DISK" > < = point name y "2013-10-29" = '95955' > < / point > < point name = "2013-10-23" y = "93793.75" > < / point > < / SERIES >
    < SERIES name = "VM_VIRT_MEM" > < name of the = y "2013-10-29" = "3751.98" > < / point > < point name = "2013-10-23" y = "3739.98" > < / point > < / SERIES >

    It will be the heart you need to define a variable of APEX of these data with DATA <>< / DATA > tags added around it.

    What I'm not sure how is back with a variable chart_series_data PLSQL.

    chart_series_data: = "< >". Chr (10);

    chart_series_data: = chart_series_data |  "WHAT I WENT BACK ON IT."

    chart_series_data: = chart_series_data | Chr (10) | "< / data > ';

    Thank you

    SoC

    Why not just do it in the query?

    with test_table as)

    Select vm_report_date, quantity, item

    of vm_core

    UNPIVOT)

    quantity of the item (vm_hosts_num, vm_number, vm_phys_mem, vm_virt_mem, vm_cpu_count, vm_total_disk, vm_provisioned_disk)

    ) where vm_dcname = 'bc_production. '

    )

    Select xmlserialize (document

    XmlElement ("DATA"

    xmlagg)

    XmlElement ("SERIES"

    xmlattributes (point "name")

    xmlagg)

    XmlElement ("point"

    xmlattributes)

    vm_report_date as 'name '.

    , quantity as "o".

    )

    )

    )

    )

    )

    )

    ) as XMLDATA

    from test_table

    Point group;

  • APEX 4.2 translate data 'function and Global Variable declaration '.

    Hello everyone,

    I use APEX 4.2.1.00.08 and I wonder if there is a way to translate "Function and Global Variable declaration" textarea. Any other script text box is available for translation, but not this one.
    I know what the code is loaded on the header, but may contain important alert messages of global functions.

    Thanks in advance.

    Hi Grandmaster,

    "Function and global variables declaration" contains the JavaScript code, that is why it is not wise to include in the standard translation process.

    In my opinion, you have several options to access your translated messages:

    -) Use Application-> Substitutions or
    -) Store your message in the form of component shared-> SMS and and assign it to an application with the APEX_LANG element. Api MESSAGE (http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_lang.htm#CHDBCEAB)

    In 'Function and Global Variable declaration' use substitution syntax to replace the value. For example:

    var myDeleteMessage = "&G_MY_DELETE_MESSAGE.";
    ...
    alert(myDeleteMessage);
    

    where G_MY_DELETE_MESSAGE would be a part of the application or the request for Substitution.

    Concerning
    Patrick
    -----------
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Pass variable header OAM at the Apex and read it in application of the Apex

    We have integrated access Manager Oracle 11 GR 1 material with Oracle Apex 4.1. OAM-Apex integration works very well. Now we want a variable header additional to pass to the application of the Apex of the OAM. This new header variable will be the user's sAMAccountName in Active Directory. OAM is integrated with AD and AD successfully users access the applications of the Apex.

    The header three variables that are set up in OAM right now are:
    Name of the variable header value
    1 OAM_REMOTE_USER $user.userid
    2 OAM_REMOTE_USER_EMAIL $user.attr.mail
    3 OAM_REMOTE_USER_GROUPS $user.groups

    We need a variable to page header as mentioned below:
    The header variable name: OAM_SAMACCOUNTNAME
    Value: $user.attr.samaccountname

    The new header variable has been added in the file dads.conf of the OHS server as shown below:
    = dads.conf =.
    ...
    PlsqlCGIEnvironmentList HTTP_OAM_REMOTE_USER
    PlsqlCGIEnvironmentList HTTP_OAM_REMOTE_USER_GROUPS
    PlsqlCGIEnvironmentList HTTP_OAM_REMOTE_USER_EMAIL
    PlsqlCGIEnvironmentList HTTP_OAM_SAMACCOUNTNAME
    ...
    ===============================

    But we are not able to read the value of this attribute in the application of the Apex.

    The application of the Apex, there is a text box that displays the value of this header variable. This text box is attached to the following stored procedure call to retrieve the header variable:
    ===================
    Start
    : P1_HEADER_VALUE: = owa_util.get_cgi_env ("HTTP_OAM_SAMACCOUNTNAME");
    end;
    ===================

    The text box displays the correct value only if HTTP_OAM_REMOTE_USER is passed to the get_cgi_env method, but shows nothing when HTTP_OAM_SAMACCOUNTNAME is passed to the same method.

    Please let me know if Miss me some configurations to pass the variable to anna64 HTTP_OAM_SAMACCOUNTNAME OAM to the Summit.

    Thanks for your help.

    Hi 900202,

    You can run

    begin
        sys.owa_util.print_cgi_env;
    end;
    

    in the SQL commands to see all headers. Maybe OAM_SAMACCOUNTNAME went without an HTTP_ prefix or its value is null, because there is a configuration problem in OAM.

    Kind regards
    Christian

  • How to get the apex developing system variables

    Hi all

    Please help me find system variables, such as user name, the date system, workspace name, Application name, name of the registered source (field of the table) etc... in the apex development environment.

    Thank you
    Dennis

    Hi Dennis,

    If you want to get all the items page,... on the current page have a look at the views of the APEX dictionary. You can query all the metadata of your application at run time. For example

    select item_name
      from apex_application_page_items
     where application_id = :APP_ID
       and page_id        in (0, :APP_PAGE_ID)
     order by item_name
    

    will return the page all items on the current page and on page 0 names. Page 0 is a global page where all the components of this page to get merged into the current page during execution.

    The APEX_DICTIONARY view to return all the available Apex dictionary views.

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

  • Apex user as Global Variable

    Hello

    Is it possible to catch the Apex user in the system or the Global Variable to use for checking for example

    Br.

    MDK.

    Hello

    There's the substitution APP_USER string
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref166

    I hope that's what you're looking for

    Kind regards
    Jari

  • Variable that contains the current URL of apex

    Greetings,

    Is there a variable that contains the current URL of Apex? I would like to be able to access the current URL in a PL/SQL block.

    Thank you

    Larry

    See + {: identifier of the thread = 1021135} +.

  • APEX 4.0: &gt; Charts: chart of queries using Bind variables &gt; does not?

    SITUATION
    -Attempt to pass a value to the variable in a query.
    -The value of the variable is taken from a page element.
    -SQL is built using a function that returns the SQL


    QUESTION
    -Table returns "no data found".
    -When we hard code the value, the data is returned and the graphic works.
    -SQL works fine in SQL Browser and Toad
    -Reproduce this problem on 3.2
    -Have you tried the two bind syntax (+: point +) and v (v ('item')) syntax

    If anyone else has experienced this? No idea how to fix?

    Walter,

    Perhaps a better way to get the logic you are looking for is to keep it in the process.

    A few examples:
    1. you can use the conditional rendering process so that it fires only when the values of the elements are NULL.
    2. you can use the conditional process rendering so that it fires when the value of the claim is equal to something and then set it via the link to the page.
    3. you can do it directly in the code:

    BEGIN
    
       IF :P2_ITEM IS NULL
       THEN
          :P2_ITEM := 'Some default value';
       END IF;
    
    END; 
    

    Kind regards
    Dan

    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • Can you returns to a page by a link apex variable name

    Hello
    I want to put a report on page 0, but I want it shows the different records for different pages. If would create a query something like this SELECT FROM tbl_name WHERE page_no col_1 = page_no. Y at - it affair apex variable I can use to make reference to the page similar to what is used when accessing the user (for example - username =: app_user)?

    Thank you
    Ben

    Published by: Benton on September 21, 2009 14:58

    Ben,

    You can use: APP_PAGE_ID or & APP_PAGE_ID. or V ('APP_PAGE_ID')

    Thank you
    Manish

Maybe you are looking for