Performance of Static LOVs

I have a report region with a couple of "Display as Text (based on LOV)" columns using a Named LOV with static entries (some cute images and stuff). I mentioned this in Using Static Named LOV to show images in report
The report region displays 60 rows/page. I find that it takes a (relatively) long time for the named LOV queries to kick in. Doing a &p_trace=YES shows me the following
SELECT ID, LOV_QUERY
FROM
WWV_FLOW_LISTS_OF_VALUES$ WHERE FLOW_ID = :B2 AND LOV_NAME = UPPER(:B1 )
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.00       0.00          0          0          0           0
Execute    116      0.03       0.04          0          0          0           0
Fetch      232      0.01       0.01          0        464          0         116
total      349      0.04       0.05          0        464          0         116
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 3237     (recursive depth: 1)
begin execute immediate 'begin select lov_disp_value, lov_return_value   
  bulk collect into wwv_flow_utilities.g_display,wwv_flow_utilities.g_value
  from wwv_flow_list_of_values_data  where lov_id = 3566322593397935 and
  (required_patch is null     or     (required_patch > 0 and        
  (wwv_flow_item.fetch_g_build_options_excluded is null or        
  instr(wwv_flow_item.fetch_g_build_options_excluded,
  '':''||required_patch||'':'') = 0)     )     or     (required_patch < 0 and
          (wwv_flow_item.fetch_g_build_options_included is null or        
  instr(wwv_flow_item.fetch_g_build_options_included,'':''||(0-required_patch)
  ||'':'') = 0)     )  )  and exists (select 1 from wwv_flow_lists_of_values$
  where flow_id = :flow_id and id = 3566322593397935) ; end;'  using
  v('FLOW_ID'); end;
call     count       cpu    elapsed       disk      query    current        rows
Parse      116      0.07       0.06          0          0          0           0
Execute    116      0.30       0.27          0         12          0         116
Fetch        0      0.00       0.00          0          0          0           0
total      232      0.37       0.34          0         12          0         116
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 1446     (recursive depth: 1)This seems excessive. Any way to tune this?
Thanks

Overall, it is a very simple page with a report region on a 150 row table with some optional filters.
The trace file has the actual SQL statement executed by that PL/SQL block.
Here they are
begin select lov_disp_value, lov_return_value    bulk collect into
  wwv_flow_utilities.g_display,wwv_flow_utilities.g_value from
  wwv_flow_list_of_values_data  where lov_id = 3566322593397935 and
  (required_patch is null     or     (required_patch > 0 and        
  (wwv_flow_item.fetch_g_build_options_excluded is null or        
  instr(wwv_flow_item.fetch_g_build_options_excluded,':'||required_patch||':')
   = 0)     )     or     (required_patch < 0 and        
  (wwv_flow_item.fetch_g_build_options_included is null or        
  instr(wwv_flow_item.fetch_g_build_options_included,':'||(0-required_patch)
  ||':') = 0)     )  )  and exists (select 1 from wwv_flow_lists_of_values$
  where flow_id = :flow_id and id = 3566322593397935) ; end;
call     count       cpu    elapsed       disk      query    current        rows
Parse      116      0.05       0.05          0          0          0           0
Execute    116      0.11       0.11          0          0          0         116
Fetch        0      0.00       0.00          0          0          0           0
total      232      0.16       0.17          0          0          0         116
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 1446     (recursive depth: 2)
SELECT LOV_DISP_VALUE, LOV_RETURN_VALUE
FROM
WWV_FLOW_LIST_OF_VALUES_DATA WHERE LOV_ID = 3566322593397935 AND
  (REQUIRED_PATCH IS NULL OR (REQUIRED_PATCH > 0 AND
  (WWV_FLOW_ITEM.FETCH_G_BUILD_OPTIONS_EXCLUDED IS NULL OR
  INSTR(WWV_FLOW_ITEM.FETCH_G_BUILD_OPTIONS_EXCLUDED,':'||REQUIRED_PATCH||':')
   = 0) ) OR (REQUIRED_PATCH < 0 AND
  (WWV_FLOW_ITEM.FETCH_G_BUILD_OPTIONS_INCLUDED IS NULL OR
  INSTR(WWV_FLOW_ITEM.FETCH_G_BUILD_OPTIONS_INCLUDED,':'||(0-REQUIRED_PATCH)
  ||':') = 0) ) ) AND EXISTS (SELECT 1 FROM WWV_FLOW_LISTS_OF_VALUES$ WHERE
  FLOW_ID = :B1 AND ID = 3566322593397935)
call     count       cpu    elapsed       disk      query    current        rows
Parse      116      0.02       0.01          0          0          0           0
Execute    116      0.07       0.07          0        348          0           0
Fetch      116      0.01       0.01          0        348          0         232
total      348      0.10       0.09          0        696          0         232
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 1446     (recursive depth: 3)
Rows     Row Source Operation
      2  FILTER 
      2   TABLE ACCESS BY INDEX ROWID WWV_FLOW_LIST_OF_VALUES_DATA
      2    INDEX RANGE SCAN WWV_FLOW_LOV_DATA_IDX1 (object id 69923)
      1   TABLE ACCESS BY INDEX ROWID WWV_FLOW_LISTS_OF_VALUES$
      1    INDEX UNIQUE SCAN WWV_FLOW_LOV_PK (object id 69918)My apologies if this seems like nit-picking but when a dead-simple page like this takes more than 1.5 seconds to render, it bothers me.

Similar Messages

  • Very Urgent!!  Static LOV with Sort by Option with column names

    Hi All,
    Can we have am Static LOV with an order by option according to the column names in an Report..
    If so can you share with me, waiting for your reply and thanks in Advance..
    Select
    name,
    creator,
    date_created,
    NVL(Comp_type,Del_TYPE) FORMAT,
    from Table_name
    So i want to order by the following columns wrt Static Lov both Assending and Descending Order by
    like Name(Asc), Name(Desc),Creator(Asc),Creator(Desc) and so on for other columns
    Thanks and Regards,
    Suri

    where u are callling perform field_cat in ur program ?
    flow will be like this
    perform fcat.
    perform alv_display.
    form fcat.
    add code here for fcat.
    endform.
    form alv_display.
    call alv here
    endform.
    Regards
    Peram

  • SQL query a Static LOV

    Hey everyone
    I'm trying to create a pivot report using a technique I'm reading on Ask Tom. In order to get it working I need to return the display values from a static LOV in a sub select statement without using the column attributes functionality available on page 422 of Apex.
    My static LOV has the following structure
    Display Return
    Monitorable 5
    Pay modifier/enabler 4
    Paid now and later 3
    Paid later 2
    Paid now 1
    My sub query has the following SQL where PAID_ID is equal to the return value of my Static LOV.
    select
    SCA.SCORE_ID AS "SCORE_ID",
    (SELECT MM1.TITLE FROM MET_METRICS MM1 WHERE MM1.MET_ID = SCA.MET_ID) AS "METRIC",
    (SELECT BU1.BU
    FROM MET_BU BU1,
    MET_SCORECARD MS1
    WHERE MS1.BU_ID = BU1.BU_ID
    AND MS1.SCORECARD_ID = SCA.SCORECARD_ID) AS "BUSINESS UNIT",
    SCA.PAID_ID AS "PAID_ID"
    from MET_SCORECARD_ALLOC SCA
    WHERE SCA.DELETED_BY IS NULL
    I'd like to replace PAID_ID with the display value of my LOV WITHOUT using the Column Attributes functionality available of page 422 of Apex.
    Is anyone able to advise whether it's possible to perform a join on the LOV directly in my sql query?
    Any assistance would be very much appreciated :)
    Dave

    Create a view for you LOV in de database :
    create or replace view v_display_return
    as
    select 'Monitorable' d, 5 v from dual
    union all
    select 'Pay modifier/enabler' d, 4 v from dual
    union all
    select 'Paid now and later' d, 3  v from dual
    union all
    select 'Paid later' d, 2  v from dual
    union all
    select 'Paid now' d, 1  v from dual
    ;Then you can use the view as the source of your LOV AND join it in your query.

  • Referencing static LOV from plsql

    I have a number of static LOV's. How can I reference these in PL/SQL.
    For example, I am creating a report using PL/SQL so that I can create the exact layout I require. The data uses a number of list of values so I need to convert the value fields into the displays fields from the list of values using PL/SQL.
    How?

    Jezzer,
    It will depend on your version. If you are using 2.2 or 3.0, you could use the view APEX_APPLICATION_LOV_ENTRIES to access your lov values. It will automatically be limited to the workspace that your schema is associated with and then you can further qualify with the APPLICATION_ID and LIST_OF_VALUES_NAME. To see the view, navigate to Utilities > Application Express Views and query on lov.
    -- Sharon

  • How to display the dispaly-value of a static LOV in a report?

    Hi,
    I want to display the Display-Value of a lov in a report
    How can i procede?
    thanks

    ok,
    My problem is the following:
    Say that I have created a static lov 'lov_colors' with the following values:
    display-value return value
    red 1
    blue 2
    green 3
    And i have a table 'object' wich has the following fields :
    object_name varchar2(100);
    object_color number;
    I want to make a report on the table object but in stead of displaying the number of the color,
    I want to display the name of the color that is in Lov_colors
    I hope that my question is clear.
    thank you

  • Bug Report: Static LOV's and PDF Printing with Tabular Forms

    I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of
    Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a row. Then, they can print the report.
    To make the current sort of the report reflect what is being printed to PDF, I've used a Report Layout associated with the report region, as oposed to a report query. A report query in this case would not reflect the sort of the report (all columns are sortable asc/desc).
    Anyway, I link my report with the layout created, and go to run it. I get this message.
    ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: := . ( @ % ; The symbol ":= was inserted before "," to continue.
         Error      ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin Yes;Y,No;N return null; end; begin wwv_flow_utilities.g_query := x; end;".
    OK      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data foundI'm guessing the product is trying to take my static LOV and place it in a function to be able to generate which value is being displayed as text, from the select lists. However, it doesn't work.
    I've been able to get around it - by adding a YES_NO domain to my domain_codes table (a table which associates abreviations with full meanings), I can set by select lists to be query based select lists using the SQL select code_meaning, code from domain_codes where domain = 'YES_NO_CODE'. This still allows the user to dropdown Yes/No fields, and the PDF printing doesn't break.
    It is just me, or can't the PDF printing handle static LOV's in tabular forms/reports?

    Hi Patrick.
    I've tried STATIC:Yes;Y,No;Nwhile stating it is a Select List (static LOV). The values that are rendered on the page are
    [STATIC:Yes]
    [No        ]
    ----------I tried the same thing with STATIC2 instead of STATIC, and the same thing happened.
    It also broke if I tried STATIC or STATIC2 under Select List (query based LOV). This is within a report where there is no hyperlink to say 'Create/Edit static list' or 'Create Dynamic List', as there is under select list items.
    However, I am finding that for some reason, the values being sent to the PDF are not the values in the database (Y/N), but the showing values (Yes/No). This happens when I use the domain_code select query as the query based LOV.
    Furthermore, I cannot get any columns not rendering on the page to be generated in the PDF. I have a column that groups items depending on values, and I want this grouping to display in the PDF instead on the original value, ideally.
    Cheers,
    K.

  • Static LOV functions differently in 9.0.2 from 9.0.1

    In my previous Portal applications under IAS 9.0.1 I had several static LOV's that contained the following structure:
    DISPLAY VALUE RETURN VALUE
    Login User Name #PORTAL.wwctx_api.get_user
    This worked as expected, the user sees the display of 'Login User Name' in a drop down list on a form, but the users login name was actually inserted into the table when Insert is selected.
    I've since upgraded IAS to 9.0.2 (no patchsets installed)
    This same LOV no longer works. What gets insert into the table is the string "PORTAL.wwctx_api.get_user" and not the users name, as before.
    I know I can kluge something similar into a dynamic LOV but does anyone know why this function call no longer works? I have several similar LOV's that get sequence number nextval's in a similar fashion and they no longer work either.
    Thanks

    A TAR has been created concerning this issue, 2841152.996. If anyone has had similar results, please review it at http://metalink.oracle.com/metalink/plsql/tar_main.single_tar?p_tarNumber=2841152.996&p_countryCode=840&p_show=Show++

  • Radiogroup static LOV only displays the first label.

    I have a simple static LOV for a radiogroup item, but it won't show the 2nd label. It is the second radio group item on the page and the first works fine.
    2nd LOV:
    STATIC2:Yes;1,No;2
    Any suggestions, please?

    The first LOV happens to use the escape character of a bar STATIC2(|,;) because I have numbers with commas in the label (e.g., $5,000).
    If I put the 2nd LOVE before the first by changing the sequence, it works, but I don't want it before the one with the escape character.

  • STATIC LOV COLORS

    I have created a select list in a report with
    static LOV.
    Does anyone know how to change the font
    color of each option in the select list?
    Example for options 1,2,3
    something like this:
    <font color="red">1</font> .... red
    <font color="green">2</font> ... green
    <font color="blue">3</font> ... blue
    Thanks

    Thanks marife
    for the good suggestion. It seems that the colour
    pattern works absolutely fine but the problem is that
    it creates another line for each option and
    makes the select list a bit difficult difficult to read.
    By the way i am using htmldb_item.select_list
    and not an actual select list.
    If you have any better suggestions let know
    thanks,
    Ody

  • Table Filter with static LOV column

    Hi,
    I am using JDeveloper 11.1.14 and ADF-BC in my project.
    For one of the tables,I have the following scenario.
    1. I have a viewobject [Ex: EmpVo] in which one of the attributes has a static LOV[:Ex: 'Status' attribute in EmpVo has static LOV - StatusLOV with values A - Active I - Inactive].
    2. EmpVo -- > Employee table which stores A and I as status values in database
    3. Display this view object as table in jsff page.
    In the jsff page, when filter is enabled, for the status column I am able to filter only using 'A' and 'I'.
    But actually filter has to work with 'Active' and 'Inactive' as filter values.
    Please suggest the best way to implement filter in this scenario
    Thanks,
    Praveen

    Take a look at the following article:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/16-custom-table-filter-169145.pdf
    Here, for LOV's you could have an LOV as a filter component instead of the default inputText component.
    Thanks,
    Navaneeth

  • STATIC vs STATIC2 in static LOV definition

    Hi All,
    what is the difference between STATIC and STATIC2 ?
    The documentation on creating checkbox references word 'STATIC'. When I create static LOV by clicking 'Create or edit static List of Values' link on 'Edit Page Item' this uses word 'STATIC2' in LOV definition.

    One sorts values alphabetically and the other in the order in which they are written.
    Jure

  • Bug in Static LOV definition in tabular form?

    I have always defined static LOVs as follows
    STATIC:Yes;Y,No;N
    but now with V4.0+ the select list at runtime appears as follows:
    STATIC:Yes
    No
    Suddenly the literal "STATIC" is appearing in the first display field.
    If I omit the word "STATIC:" from the definition, it seems to work fine. Was this an intentional change in the definition of static LOVs? If so, you then the developers need to update the help text for LOVs.
    PaulP

    bump...

  • Modify dynamically Static LOV and System Tables

    Hello,
    Does anyone know if it is possible to dynamically modify a Static LOV using a system table. All suggestions greatly appreciated!
    Sharon

    Hello,
    I am converting a program from the old HTML-DB. The original program dynamically manipulated a static LOV using a system table. I am trying to do the same thing. If it is possible to dynamically change a static LOV I would like to know how. If there is no way in APEX, I will create a table and dynamically change the table. Thank you for your suggestions.
    Sharon

  • Graph using static lov

    I am using a static lov which has a code and description. I select an entry from this lov and it's code is stored in a table.
    I now want to create a chart on the contents of this table, but need to translate the code stored in the table to the description stored in the static lov.
    Is it possible to do this? If so, any hints!?
    Toby

    So you have a table with a code value in it. The description of the code value is in a static LOV item. I would suggest creating a table in the database with the code and description. Then use a dynamic LOV instead of the static LOV and of course for completeness sake create a foreign key from the table you currently have to your new LOV table.
    Now to get the description of a code, you just do a SELECT on your code/description table. This would be helpful for a chart title maybe?
    Your LOV item on your page will visually display the description, but when referenced it will have the value of the code. So have your SELECT statement in your chart reference your LOV in its WHERE clause.
    Mike

  • Dynamic/Static LOV

    Hi,
    Im havin a little trouble trying to do the following:
    I have a LOV that does a query, but besides the query I want also to have an static option on the LOV that represents all the options, any idea how can I achieve this?
    thanks

    I'm not quite sure if I have understood your requirement; you want to have a LOV which always shows the same records?
    If so there comes 2 possibilities to my mind:
    - You could create a record group at runtime, populate this record group with your desired values, and assign your record group to your LOV.
    or
    - create a table where you store your static values you want to show, and do a query on the table. Maybe you could add a realm to the table, as if you wish to use your static LOV elsewhere you could also simple use your static LOV table...
    maybe
    select key_col, name_col
    from static_lov
    where realm = 'FORM1_LOV1'regards

Maybe you are looking for

  • Mail no longer works after 10.5.1 upgrade

    Mail didn't really work as well after my Leopard upgrade, but not horrible. Now that the 10.5.1 upgrade has been installed, it doesn't work at all. I get the error "Some actions taken while the account "XXXX" was offline could not be completed online

  • Does TextArea support smooth focus navigation?

    Hi, I need to be notified when the user try to loose focus on a TextArea component, in order to ensure that the entered text by the user is valid. Same as the InputVerifier in swing I tried using setOnInputMethodTextChanged but It doesn't work. You c

  • Double brush cursor

    I am seeing a double brush cursor in CS5; why? and how do I get rid of it? It's not the clone tool, it's the brush. When I resize my brush to a certain size (different sizes for different images) a duplicate brush suddenly appears in the top left cor

  • Sudden G5 Display Issues!

    Somewhat similar to another previous post from another member, I was using my tower model G5 (2003?) and suddenly my display showed a checkerboard pattern that began flickering. I shut it down and re-booted; same thing. I let it sit for a day and sta

  • Two useful new features in SL

    Hi, If you also write in other languages, you'll find two new useful features in Snow Leopard. First, under System Preferences, Language & Text, Input Sources... there's a new US International PC option that allows you to use accents just as in PCs;