DropDown by Key and Row Repeater

Hello,
I 've build a form inside a rowrepeater, inside the form there are several empty drop down by key.
The key value table of each dropdown by key belong to the selected country grouping (an input field with search help inside the form).
OnEnter event of the molga field, I call a BL to fill the key value table and get the index of the form (regarding to the dataprovider of my row repeater).
Here is the structure of my context:
CONTEXT _
                 |_CTX_COLL (0:N)
                              |_CTX_DROPDOWN (1:1)
* --- GET MOLGA --- *
* navigate from <CONTEXT> to <CTX_COLL> via lead selection
  lo_nd_ctx_coll = wd_context->get_child_node( name = wd_this->wdctx_ctx_coll ).
  lo_nd_ctx_coll->get_static_attributes_table( importing table = lt_ctx_coll ).
  read table lt_ctx_coll into ls_ctx_coll index iv_index.
  lv_molga = ls_ctx_coll-country.
* --- GET DROPDOWN NODE INDEX REFERENCE --- *
  lv_idx_str = iv_index.
  concatenate 'CTX_COLL.'
              lv_idx_str
              '.CTX_DROPDOWN' into lv_path.
  condense lv_path no-gaps.
* navigate from <CONTEXT> to <CTX_DROPDOWN> via index selection
  lo_nd_ctx_dropdown = wd_context->path_get_node( path = lv_path ).
  lr_node_info = lo_nd_ctx_dropdown->get_node_info( ).
* --- SET DROPDOWN --- *
  lt_value_set = wd_assist->get_priority( lv_molga ).
* set values (table) to context attribute
  lr_node_info->set_attribute_value_set(
   name = `PRIORITY`
   value_set = lt_value_set

well ehrr
I see two completely different implementations
the context dropdown must be used with a drop down by INDEX
the value set must be used wth a dropdown by KEY
as you have a ddk, it uses the value set
furthermore, you set the value set on the dropdown context
try the index one
I'm not sure what you are trying to do, but try the following option
you have a node in which your dropdown field resides
make a subnode with the values for that field
fill the subnode depending on the selected country (don't forget to invalidate the node when the country changes)
bind a ddi to the dropdown values in the node
the value set is defined on node level, not on element level
so setting a different value set per element won't work i'm afraid
correct me if i'm rong
Edited by: Tom Van Doorslaer on Apr 3, 2009 3:48 PM

Similar Messages

  • Regarding Logical level key and row wise initialization

    Hi Gurus,
    What is the purpose of row wise initialization in external table authentication and when we have to go for row wise initialization.
    Why we have to enable logical level key in hierarchy is this only for getting drill down to the next level if we make two columns as logical level key what will happens. If we want to enable a column as a logical level key what are the character sticks that column should satisfy.
    Thanks,

    1) Row Wise Initialization used to hold multiple values in a variable. Let says SQL gives 4 rows (A,B,C,D) as output. Now I want to hold 4 value in a variable to get this happen we need to go for RowwiseIniziation. If you do not do this at any point in time Variable holds only value A not others. Simply it works as Array.
    2) Level keys define the unique elements in each level and provide the context for drill down. You can make two logical columns as logical key but you need to make sure what to be displayed in your hierarchy by selecting DISPLAY. If you make to as separate logical keys and set Display for both you get two columns in the hierarchy
    http://gerardnico.com/wiki/dat/obiee/hierarchy_level_based

  • Keyboard keys and shortcut repeating

    Hi guys, on my macbook pro (probably 1.5 year's old) I'm having a very annoying issue. Quite often, usually when I type quickly, the key get stuck and keeps repeating, this happens also with short-cuts. I thought it was an hardware issue but it happens also with an external keyboard. I looked around and it seems there is no firmware or update I can install on my machine which accordingly to Software Update is up to date.
    I read somewhere, unfortunately I don't remember where, that the problem happened after having install some virtualization software. Unfortunately this is a company computer and I'm not aware about all its software history but the only virtualization software I installed and it is present at the moment is VirtualBox.
    Any idea how I could sort this out?
    Thanks a lot, chr

    Best bet is an Apple Authorized repair shop or a reseller. There is no indication at Apple's website that they sell parts directly.

  • My arrow keys start start repeating without touching them and a string of periods are displayed in an entry field (e.g. credential to log in). Or if I type an arrow key, they immediately start repeating in perpituity. It's like a ghost in the machine.

    After the last OS X update (a security update I think), two things happened:
    my iMac would not boot (gray screen) or if it did boot, the mouse wasn't recognized and I couldn't mouse to the PW field to log in - nor did tabbing or any keystrokes get me there. I fixed this by unpludding peripherals (back up drive), but know I can't boot unless they are unplugged and it makes using TimeMachine a pain in the arse.
    My wired, extended mac keyboard now types without me, primarily, as far as I can tell, the arrow key(s). .................................... So, for example, those periods you see here are because I touched the right arrow key and off it went until I pressed ESC. Also, sometimes they just start going off on their own. For example, I can be in sleep mode and all of a sudden the screen will wake and the PW field will start filling with periods, just like you see above. ***?
    Seriously, you would think that apple would have a response for this. I have searched their support site and NOTHING. I've seen some older threads on reseting certain things. Does anyone have any summer 2013 updates?
    Thank You!!!

    kaeandcolesmon,
    If you open the recovery drive (partition) it should only have a single folder (Recovery).
    To make sure that your not saving restore points to that drive.
    See:
    Start, Control Panel, System, System Protection tab. Make sure the D drive partition is set to OFF so that it does not save there.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Display key and text in dropdown box & suppress leading zeros in material #

    Hi Everyone,
    I have some questions on how to ....  Can anyone help me?  Here they are:
    How to show material # and description (key and text) both in dropdown box list? 
    How to suppress leading zeros in material #, i.e. 0000000012345678 only show 12345678 ?
    How to show a date with format mm/dd/yyyy not yyyymmdd?
    Thanks alot, Jin
    Edited by: Jin Freda on Mar 25, 2008 4:47 PM

    Hi,
    What type control you are useing for date .
    If you are useing Input field of date type or Date picker control you should get this option in the control properties.
    Can you tell me what are  tabs are appaering in the conrtol properties.
    2.When you you are using the formula Round(@material) ,Are you typing it or draging Field from right side in to  the formula .If you did not drag it you will get Message:Formula has errors.
    One more probelm is there if the Data type of field where you using formula is not Number type.
    Check all above and get back to me.
    3.You are not able to give 6 points for all because its a resrticed one you execeded giving6 points option now you can give only 10 points.
    Regards,
    GOVINDU

  • Need help for displaying key and description in Dropdown (ABAP WEBDYNPRO)

    Hi Experts,
    I am using dropdown as a table field. For this dropdown I want to display the value as well as description.
    In ALV table when we create a dropdown dynamically in table field, there is a method SET_KEY_VISIBLE in class CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
    But I think we cannot use similar method for normal dropdown field in table.
    Is there any way we can display both value and description in dropdown value set ?
    Please help.
    Regards,
    Anand

    Hi,
    I think there is no such option. You need to consider one variable type string and while populating the
    valueset fill this variable by concatenating the value and description and assign it the key and value
    pair of the valueset.
    DATA:
      lt_value_set_ctry      type table of wdr_context_attr_value, " Country/Service Location
      lv_str type string.
        loop at lit_country into ls_country.
          concatenate ls_country-value ls_country-text into lv_str separated by space.
          ls_value_set-value = lv_str.
          ls_value_set-text  = lv_str.
          append  ls_value_set to lt_value_set_ctry.
          clear ls_value_set.
        endloop.
          lr_node_info->set_attribute_value_set( name = 'COUNTRY'
                     value_set = lt_value_set_ctry ).
    Consider this lit_country is a text table for countries.
    Regards,
    Lekha.

  • I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off

    I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off.

    Back up all data before proceeding.
    Please triple-click anywhere in the line below on this page to select it:
    defaults write -g ApplePressAndHoldEnabled NO
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Log out or restart the computer.

  • Bluetooth keyboard K810 and mouse T630 at the same time, repeating keys and mouse starts to stutter

    I use a Lenovo Thinkpad Tablet 2, Windows 8.1(core edition), x86 (32bit).
    If I pair a Bluetooth keyboard K810 and mouse T630 at the same time, with Wifi On, the keyboard starts repeating the keys and the mouse starts to stutter. Especially if WiFi is under load (when downloading something).
    This doesn’t happens if I pair only the keyboard, or if I pair mouse and keyboard with Wifi OFF.
    If I pair a Bluetooth keyboard and use a USB mouse with Wifi ON, everything works fine.
    If I pair a Bluetooth mouse and use a USB keyboard with Wifi ON, everything works fine.
    I think it is an issue with two Bluetooth devices paired at the same time with Wifi ON.
    So here is a summary:
    BT mouse and BT keyboard / Wifi ON ----> repeating chars and the mouse starts to stutter (bug)
    BT mouse and BT keyboard / Wifi OFF ----> works fine
    Only BT keyboard / Wifi ON ----> works fine
    Only BT mouse / Wifi ON ----> works fine
    USB mouse and BT keyboard / Wifi ON ----> works fine
    USB keyboard and BT mouse / Wifi ON ----> works fine
    Where is the problem? Is there any solution?
    Solved!
    Go to Solution.

    I have solved the problem. In the Wlan-Drives-Settings there is the "Bluetooth Collaboration" option. I put the value to "Disable" and now works everything like charm.
    Best regards, jC
    Broadcom manual:
    Bluetooth Collaboration
    Bluetooth Collaboration enables general purpose input/output transmit suppression protocol between the IEEE 802.11 media access control (MAC) and an external Bluetooth chip to minimize transmit interference. Bluetooth Collaboration is enabled by default.

  • Keys in row 1-9 and A-L doesn't respond, on macbook pro internal keyboard

    Happened all of a sudden.
    I tried to restart, and now I am stuck at the login screen, as i can't type my password.
    I suspect it to be some sort of accidentally triggered numlock like function.
    When i hold down the fn key and pres 54 a symbol is entered (but i can't see which, as it is in my password box), and also when i hold fn and hit s and g simultaneously, the whole text is highlighted.
    Anyone know what is going on?
    Help would be much appreciated, as the computer is useless as it is now.
    Thanks
    Oliver

    Hi oliver!,
    If you are having keyboard issues that are preventing you from logging in on your MacBook Pro, you may find the troubleshooting steps in the following articles helpful:
    OS X Mountain Lion: If keys on your keyboard don’t work
    http://support.apple.com/kb/PH10680
    Apple Support: One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    If you are still having issues, you may also want to try resetting the SMC and PRAM on your machine:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    Regards,
    - Brenden

  • Dropdown for Title key and academic title

    Hi Experts,
    How to provide a Dropdown for Title and Academic Title fields in the component ICCMP_BP_DETAIL, View: BupaDetailB2B, Contextnode: Customer, Attribute:Struct.Title_Key. The field is of type input field but, i want to make it as picklist.Please suggest some Inputs.I am functional guy, so please try to give detailed solution.Thanks in advance.
    Regards
    Krish

    Hi Krishna,
    As far as I can see this note provides the TITLE_KEY dropdrown list... that's cool.
    Then what is exactly that you don't understand ? After applying the note you just need to add the TITLE_KEY field to your configuration to make it appear on the screen... (and SAP suggests to use object subtypes in your configuration criterias to make this field appear under certain circumstances only -- but it is not mandatory).
    Nicolas.

  • ALV with dropdown in column and other questions

    hi,
    I created an editable alv with configuration model via external context mapping.
    now I have a column which contains strings and my aim is to show this whole column as a dropdownlist. the possible values of this dropdown are fetched in a database table at  runtime and each cell in this column got its own selected value in this dropdownlist.
    changes of the selected values should be written in the database table in a later step.
    1. what changes do I have to do?
    should I remove my external mapping concerning the alv and use the setData method? or what is the easiest way to get my dropdownlist in this column instead of normal text (string) ?
    2. should I choose dropdownbykey or by index?
       I suppose I have to change the context when changing the selected value in the dropdownlist and the read out the changed context element and update my database table?
    3. how could I access rows (= tuples) in an alv?
    4. how can I avoid that a row could be deleted, inserted or added with the normal functions of the alv?

    Hi Thorsten,
    If the possible list of values in the dropdown is different for each row, you need a drop down by index. Else this can be done using a dropdown by key itself.
    The only change that you need to do is create a cell editor of type dropdown for that particular column and configure your ALV model.
    The sample code for changing the cell editor would be:
        l_alv_model = l_ref_interfacecontroller->get_model( ).
      DATA:
         lr_column_settings TYPE REF TO if_salv_wd_column_settings,
         lr_column type ref to CL_SALV_WD_COLUMN.
         lr_dropdown TYPE REF TO CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
      lr_column_settings ?= l_alv_model.
      lr_column = lr_column_settings->get_column( <column name> ).
      CREATE OBJECT lr_dropdown EXPORTING 
      SELECTED_KEY_FIELDNAME= '<fieldname>'
      lr_column->set_cell_editor( lr_dropdown ).
    Here, you can substitute the field name with your field name that has to be displayed as a dropdown.
    The dropdown list can be populated in the wddoinit method by attaching a value set to the attribute in the context node info. Everything else will be like you do in a normal table. You can so a get_static_attributes of your elements and persist in tables. Whenever you change the selected value, the context will be updated immediately. You can have a user defined function like 'Save' or something where you can just read the context and process the data.
    If you do not want to display any of the normal functions, you can do the following:
    data: lt_functions type SALV_WD_T_FUNCTION_STD_REF,
            ls_function type SALV_WD_s_FUNCTION_STD_REF.
    lt_functions = l_alv_model->if_salv_wd_function_settings~get_functions_std( ).
    loop at lt_functions into ls_function.
    ls_function-r_function->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
    endloop.
    The above code will hide all the standard functions. If you want to hide specific ones, do a get_function(id) and set_visible.
    Hope this helps.
    Regards
    Nithya

  • What are the surrogate key and row_number( )

    what are the surrogate key and row_number( ) function, and why do not we always make the row_number a primary key in the table.

    Mohannad,
    we just try to safe your efforts and to prevent common
    mistakes you can make.
    Look here.
    Your requirement is to avoid gaps in sequence.
    OK. But it means you HAVE to lock your sequence
    exclusively until you commit transaction.
    Also, it means you have to rollback sequence
    number to original value if you rollback you
    entire transaction.
    SQL> create table my_tab (id number);
    &nbsp
    Table created.
    &nbsp
    SQL> create table numer_tab (id number);
    &nbsp
    Table created.
    &nbsp
    SQL> insert into numer_tab values(0);
    &nbsp
    1 row created.
    &nbsp
    SQL>  create or replace trigger
      2   tr_no_gap
      3   before insert on my_tab
      4   for each row
      5   begin
      6    /* Let's lock sequence in exclusive mode */
      7    update numer_tab set id = id + 1
      8    returning id into :new.id;
      9   end;
    10  /
    &nbsp
    Trigger created.Now I havn't to worry about gaps:
    Fisrt session:
    SQL> insert into my_tab values(null);
    &nbsp
    1 row created.because my next session is waiting:
    SQL> insert into my_tab values(null);
    &nbspI do commit in first and second session -everything is OK:
    SQL> commit;
    &nbsp
    Commit complete.
    &nbsp
    SQL> select * from my_tab;
    &nbsp
            ID
             2
             1Now I do the same but do rollback in 1th:
    SQL> insert into my_tab values(null);
    &nbsp
    1 row created.
    &nbsp
    SQL> rollback;
    &nbsp
    Rollback complete.and commit in 2th:
    SQL> insert into my_tab values(null);
    &nbsp
    1 row created.
    &nbsp
    SQL> commit;
    &nbsp
    Commit complete.No gaps:
    SQL> select * from my_tab;
    &nbsp
            ID
             2
             3
             1Now I will not lock sequence resource due a transaction:
    SQL>  create or replace trigger
      2   tr_no_gap
      3   before insert on my_tab
      4   for each row
      5   declare
      6    pragma autonomous_transaction;
      7   begin
      8    /* Let's lock sequence in exclusive mode */
      9    update numer_tab set id = id + 1
    10    returning id into :new.id;
    11    commit;
    12   end;
    13  /
    &nbsp
    Trigger created.And I repeate my last operation.
    Both inserts execute immediately
    1th
    SQL> insert into my_tab values(null);
    &nbsp
    1 row created.2th
    SQL> insert into my_tab values(null);
    &nbsp
    1 row created.Now I rollback the first and commit the second.
    And what I see is the gap:
    SQL> select * from my_tab;
    &nbsp
            ID
             2
             3
             5
             1We are just trying to explain what you will have to
    pay the serious price of performance in the
    absence of gaps and you will have the lack
    of Oracle multithreading advantage in this case.
    I doubt your customers will happy with that.
    Rgds.

  • Access path difference between Primary Key and Unique Index

    Hi All,
    Is there any specific way the oracle optimizer treats Primary key and Unique index differently?
    Oracle Version
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL> Sample test data for Normal Index
    SQL> create table t_test_tab(col1 number, col2 number, col3 varchar2(12));
    Table created.
    SQL> create sequence seq_t_test_tab start with 1 increment by 1 ;
    Sequence created.
    SQL>  insert into t_test_tab select seq_t_test_tab.nextval, round(dbms_random.value(1,999)) , 'B'||round(dbms_random.value(1,50))||'A' from dual connect by level < 100000;
    99999 rows created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_stats.gather_table_stats(USER_OWNER','T_TEST_TAB',cascade => true);
    PL/SQL procedure successfully completed.
    SQL> select col1 from t_test_tab;
    99999 rows selected.
    Execution Plan
    Plan hash value: 1565504962
    | Id  | Operation         | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |            | 99999 |   488K|    74   (3)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| T_TEST_TAB | 99999 |   488K|    74   (3)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
           6915  consistent gets
            259  physical reads
              0  redo size
        1829388  bytes sent via SQL*Net to client
          73850  bytes received via SQL*Net from client
           6668  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          99999  rows processed
    SQL> create index idx_t_test_tab on t_test_tab(col1);
    Index created.
    SQL> exec dbms_stats.gather_table_stats('USER_OWNER','T_TEST_TAB',cascade => true);
    PL/SQL procedure successfully completed.
    SQL> select col1 from t_test_tab;
    99999 rows selected.
    Execution Plan
    Plan hash value: 1565504962
    | Id  | Operation         | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |            | 99999 |   488K|    74   (3)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| T_TEST_TAB | 99999 |   488K|    74   (3)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
           6915  consistent gets
              0  physical reads
              0  redo size
        1829388  bytes sent via SQL*Net to client
          73850  bytes received via SQL*Net from client
           6668  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          99999  rows processed
    SQL> Sample test data when using Primary Key
    SQL> create table t_test_tab1(col1 number, col2 number, col3 varchar2(12));
    Table created.
    SQL> create sequence seq_t_test_tab1 start with 1 increment by 1 ;
    Sequence created.
    SQL> insert into t_test_tab1 select seq_t_test_tab1.nextval, round(dbms_random.value(1,999)) , 'B'||round(dbms_random.value(1,50))||'A' from dual connect by level < 100000;
    99999 rows created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_stats.gather_table_stats('USER_OWNER','T_TEST_TAB1',cascade => true);
    PL/SQL procedure successfully completed.
    SQL> select col1 from t_test_tab1;
    99999 rows selected.
    Execution Plan
    Plan hash value: 1727568366
    | Id  | Operation         | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |             | 99999 |   488K|    74   (3)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| T_TEST_TAB1 | 99999 |   488K|    74   (3)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
           6915  consistent gets
              0  physical reads
              0  redo size
        1829388  bytes sent via SQL*Net to client
          73850  bytes received via SQL*Net from client
           6668  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          99999  rows processed
    SQL> alter table t_test_tab1 add constraint pk_t_test_tab1 primary key (col1);
    Table altered.
    SQL> exec dbms_stats.gather_table_stats('USER_OWNER','T_TEST_TAB1',cascade => true);
    PL/SQL procedure successfully completed.
    SQL> select col1 from t_test_tab1;
    99999 rows selected.
    Execution Plan
    Plan hash value: 2995826579
    | Id  | Operation            | Name           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |                | 99999 |   488K|    59   (2)| 00:00:01 |
    |   1 |  INDEX FAST FULL SCAN| PK_T_TEST_TAB1 | 99999 |   488K|    59   (2)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
           6867  consistent gets
              0  physical reads
              0  redo size
        1829388  bytes sent via SQL*Net to client
          73850  bytes received via SQL*Net from client
           6668  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          99999  rows processed
    SQL> If you see here the even though statistics were gathered,
         * In the 1st table T_TEST_TAB, the table is still using FULL table access after creation of index.
         * And in the 2nd table T_TEST_TAB1, table is using PRIMARY KEY as expected.
    Any comments ??
    Regards,
    BPat

    Thanks.
    Yes, ignored the NOT NULL part.Did a test and now it is working as expected
    SQL>  create table t_test_tab(col1 number not null, col2 number, col3 varchar2(12));
    Table created.
    SQL>
    create sequence seq_t_test_tab start with 1 increment by 1 ;SQL>
    Sequence created.
    SQL> insert into t_test_tab select seq_t_test_tab.nextval, round(dbms_random.value(1,999)) , 'B'||round(dbms_random.value(1,50))||'A' from dual connect by level < 100000;
    99999 rows created.
    SQL> commit;
    Commit complete.
    SQL>  exec dbms_stats.gather_table_stats('GREP_OWNER','T_TEST_TAB',cascade => true);
    PL/SQL procedure successfully completed.
    SQL>  set autotrace traceonly
    SQL>  select col1 from t_test_tab;
    99999 rows selected.
    Execution Plan
    Plan hash value: 1565504962
    | Id  | Operation         | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |            | 99999 |   488K|    74   (3)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| T_TEST_TAB | 99999 |   488K|    74   (3)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
           6912  consistent gets
              0  physical reads
              0  redo size
        1829388  bytes sent via SQL*Net to client
          73850  bytes received via SQL*Net from client
           6668  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          99999  rows processed
    SQL>  create index idx_t_test_tab on t_test_tab(col1);
    Index created.
    SQL>  exec dbms_stats.gather_table_stats('GREP_OWNER','T_TEST_TAB',cascade => true);
    PL/SQL procedure successfully completed.
    SQL>  select col1 from t_test_tab;
    99999 rows selected.
    Execution Plan
    Plan hash value: 4115006285
    | Id  | Operation            | Name           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |                | 99999 |   488K|    63   (2)| 00:00:01 |
    |   1 |  INDEX FAST FULL SCAN| IDX_T_TEST_TAB | 99999 |   488K|    63   (2)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
           6881  consistent gets
              0  physical reads
              0  redo size
        1829388  bytes sent via SQL*Net to client
          73850  bytes received via SQL*Net from client
           6668  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          99999  rows processed
    SQL>

  • Difference between primary key and primary index

    Dear All,
             Hi... .Could you pls tell me the difference between primary key and primary index.
    Thanks...

    Hi,
    Primary Key : It is one which makes an entry of the field unique.No two distinct rows in a table can have the same value (or combination of values) in those columns.
    Eg: first entry is 111, if you again enter value 111 , it doesnot allow 111 again. similarly for the strings or characters or numc etc. Remember that for char or numc or string 'NAME' is not equal to 'name'.
    Primary Index: this is related to the performance .A database index is a data structure that improves the speed of operations in a table. Indices can be created using one or more columns, providing the basis for both rapid random lookups and efficient ordering of access to records. The disk space required to store the index is typically less than the storage of the table (since indices usually contain only the key-fields according to which the table is to be arranged, and excludes all the other details in the table), yielding the possibility to store indices into memory from tables that would not fit into it. In a relational database an index is a copy of part of a table. Some databases extend the power of indexing by allowing indices to be created on functions or expressions. For example, an index could be created on upper(last_name), which would only store the uppercase versions of the last_name field in the index.
    In a database , we may have a large number of records. At the time of retrieving data from the database based on a condition , it is a burden to the db server. so whenever we create a primary key , a primary index is automatically created by the system.
    If you want to maintain indices on other fields which are frequently used in where condition then you can create secondary indices.
    Reward points if helpful.
    Thanks,
    Sirisha..

  • RTF Header Rows Repeat in eBus BI Publisher (5.6.3)

    Hi,
    I have been struggling to get the Header Rows Repeat functionality working when generating RTF output with the eBus integrated BI Publisher - currently eBus 11.5.10.2 with ATG H RUP 7. The "How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12" Note (362496.1) doesn't provide anything more specific than 5.6.3. Based on the "Naming and Versioning" sticky note from Tim, I think this is equivalent to 10.1.3.2.
    According to http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_misc_101333.htm, this functionality is not available until BI Publisher 10.1.3.3.3.
    To "Overview of Available Patches for Oracle XML Publisher (embedded in Oracle E-Business Suite)" Note (1138602.1) does not list any stand alone patch which seems to be refer to this functionality.
    Can someone tell me if this Header Rows Repeat in RTF output functionality available with the eBus integrated BI Publisher? Or do I need to log an SR?
    theFurryOne
    Edited by: thefurryone on Sep 14, 2010 5:01 PM

    Hi Tim,
    Thanks for that - the 7487412 readme doesn't say anything about the RTF header bug fix being included, but the Bugs Resolved by this Patch lists 6270261 (ER: RTF Output to support set Table Header Report, Table Row Keep-Together).
    Patch # 7487412 is only available in R12, but with the specific ER number, I was able to find Note # 861915.1 (I couldn't it find with my keyword search) and this note indicates that 11i patch # 7702372 should resolve the problem for me in 11i (and it's readme explicitly documents 6270261 as being fixed by the patch).
    Thanks again,
    theFurryOne

Maybe you are looking for