Printing Selected Records thru Dynamic Checkboxes

Hi,
How to print records, selected thru checkboxes on the button action ? Everything is dynamically handled. Kindly help.
Regards
Mandeep Kaur

Hi,
Please check following blog, which may be helpful for this functionality:
Implementing Copy Down functionality in WebDynpro Java
/people/abhilash.gampa/blog/2008/01/16/implementing-copy-down-functionality-in-webdynpro-java

Similar Messages

  • Deleting selected record in Dynamic Internal table

    Hi Friends,
    I want to delete selected row from a dynamic internal table. The selected entry should be deleted from Adobe and as well as Webdynpro abap.
    Kindly help me how to solve this problem.
    Thanks in advance.
    Regards,
    Phani.

    Hi Matthias,
    Thanks a lot for responding.
    In my adobe i kept a check box to delete the record. It should delete the selected ones. But right now, its deleting one by one.
    I have coded following script for delete button:
    IT_TIME_SHEET --> is my internal table
    G_ROW_STATUS is the field to track the action performed.
    var tlength = xfa.resolveNodes("IT_TIME_SHEET.DATA[*]").length;
    for ( var i=0; i<tlength; i++
    if(xfa.resolveNode("IT_TIME_SHEET.DATA["i"].FLAG").rawValue ==
    1 )
    IT_TIME_SHEET.DATA.instanceManager.removeInstance(i);
    G_ROW_STATUS.rawValue = "DELETE";
    In the Webdynpro abap following code I wrote:
        row_count = 1.
        FIELD-SYMBOLS <wa> TYPE zshr_time_sheet_time.
        LOOP AT it_time_sheet ASSIGNING <wa>.
          <wa>-srl_no = row_count.
          row_count = row_count + 1.
        ENDLOOP.
        last_row = <wa>-srl_no.
          DELETE it_time_sheet WHERE srl_no EQ last_row.
    Suppose if two records checkboxes are selected I can loop at the internal table IT_TIME_SHEET in webdynpro and delete where checkbox is selected.
    But problem is once user deletes records, adobe is deleting only one record and if i delete two records from webdynpro it looks like something wrong for the user.
    Please help me how to solve this problem.
    Regards,
    Phani.

  • Create mutiple records w/dynamic checkboxes?

    Greetings
    This is no doubt an easy one, but can't seem to get multiple
    checkboxes displayed dynamically to create corresponding multiple
    records?
    The form page has:
    <form action="add_action.cfm" method="post">
    <cfoutput query="get_all">
    <tr bgcolor="###iif(currentrow MOD
    2,DE('ffffff'),DE('d9ecff'))#">
    <td class="tddynamic">#num#</td>
    <td class="tddynamic">#descriptions#</td>
    <td class="tddynamic"><INPUT Type="Checkbox"
    Name="ID"
    Value="#thequery.ID#"</td>
    Action Page?
    Access, CF8
    Thanks for your time in teaching an old dog new
    tricks...

    Try this:
    <cfoutput query="GetBlogs">
    <tr valign="top">
    <td>
    <input name="BlogID" id="BlogID" type="checkbox"
    value="#BlogID#">  #BlogName#
    </td>
    </tr>
    </cfoutput>
    <cftransaction>
    <cfloop index="i" list="#FORM.BlogID#">
    <cfquery name="Subscription" datasource="#blog#">
    INSERT INTO _subscriptions
    (DateSubscribed, BlogID, SubscriptionStatus, Subscriber,
    SubscriberEmail)
    VALUES
    (getdate(), #i#, 'Active', '#cookie.username#',
    '#cookie.useremail#')
    </cfquery>
    </cfloop>
    </cftransaction>
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Fordwebs, LLC
    http://www.fordwebs.com
    "Fineus" <[email protected]> wrote in
    message
    news:gaov4l$809$[email protected]..
    > Hi Ken,
    >
    > I saw one of your postyes on the web heloing someone
    out, and was hoping
    > you
    > might be able to help me out. I am generatign a dynamic
    list of check
    > boxes.
    >
    > <cfoutput query="GetBlogs">
    > <tr valign="top">
    > <td><input name="Subscription_#BlogID#"
    type="checkbox"
    >
    value="#BlogID#">  #BlogName#</td>
    > </tr>
    > </cfoutput>
    >
    > Works great. What I cant seem to get is how to put the
    selections into a
    > database as individual records. I keep getting a BlogID
    undefined error
    > before
    > it even gets to teh insert.
    >
    > <cftransaction>
    >
    > <cfset SubscriptionID =
    Evaluate('Subscription_#(BlogID)#')>
    >
    > <CFQUERY NAME="Subscription" DATASOURCE="#blog#">
    > INSERT INTO _subscriptions(DateSubscribed, BlogID,
    SubscriptionStatus,
    > Subscriber, SubscriberEmail)
    > VALUES(getdate(), '#SubscriptionID#', 'Active',
    '#cookie.username#',
    > '#cookie.useremail#')
    > </CFQUERY>
    >
    > </cftransaction>
    >
    > Any help would be much apprciated
    >
    >

  • Single Dynamic Checkbox record

    Hi,
    I am displaying 1 record with dynamic checkbox with the below
    statement
    select empno, ename, job,wwv_flow_item.checkbox(1, rownum) pr from emp where rownum = 1
    When i hit the Save button i am using onMouseDown event and calling
    the javascript function to make sure the checkbox is checked, and then i am submitting the Page.
    For SAVE button in the button attributes i have this code: onMouseDown="Members_Selected();".
    The below code is used in HTML HEADER:
    <script language="JavaScript">
    function Members_Selected(){
    var bflag;
    bflag = false;
    alert('total count of check boxes:'+document.forms[0].f01.length);
    for (var i=0; i<document.forms[0].f01.length; i++)
    if (document.forms[0].f01.checked == true )
    bflag = true;
    if (!bflag)
    alert("Please select Atleast 1 Member.");
    return false;
    if (confirm("Are you sure you want to assign the selected members !!"))
    doSubmit('SAVE');
    else
    return false;
    return true;
    }</script>
    Below is the problem i see When i HIT the SAVE BUTTON, by Selecting* the checkbox :*_
    I see the java script alert : total count is shown as "undefined"
    and another javascript alert : 'Please select Atleast 1 Member',
    and the page is not submitted.
    Have anyone encountered this problem, i have tested in apex workspace too, i see the same problem.
    Any help or suggestion is appreciated
    Thanks

    Hello:
    Check if this modified JS works for you function Members_Selected(){
    var bflag;
    bflag = false;
    var arr=new Array();
    obj=document.forms[0].f01;
    if (obj.length)
        arr=obj;
    else
        arr[0]=obj.value;
    alert('total count of check boxes:'+arr.length);
    for (var i=0; i<arr.length; i++)
    if (arr.checked == true )
    bflag = true;
    if (!bflag)
    alert("Please select Atleast 1 Member.");
    return false;
    if (confirm("Are you sure you want to assign the selected members !!"))
    doSubmit('SAVE');
    else
    return false;
    return true;
    varad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need help on selection of records in dynamically created table

    hi,
    Ia m able to bind the onleadSelect event to the dynamially created table .
    But i was not able to select the table records.
    default first record was only selected.
    can u help me out to find the way.
    i am pasting the code for reference.
    can u suggest me the right direction.
    i want the selected record in the table to be dispalyed in another view thru this action event.
    but only the forst record is now getting selected by default.
    here the code.
    IWDNode node =wdContext.currentContextElement().node().getChildNode(nodename,0);
    for (int l = 0; l < node.size(); l++) {
    int ele = node.getLeadSelection();
    IWDNodeElement element= node.getElementAt(ele);
    table.setOnLeadSelect(wdThis.wdGetObjectSelectedAction());

    Hi,
      <a href="/people/sap.user72/blog/2005/05/09/have-you-played-blindfold-chess's</a> how to create a dynamic table, though I think you have already done this.
      Do look at the comment that Armin Reichert has put in. Now in the source code that he has provided, the last line should be
    table.setOnLeadSelect(wdThis.wdGetLeadSelectAction());
    Have you done something similar to this?
    Have you set the initializeLeadSelect property of the datasource node to true?
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty

  • Please Help! Deleting multiple record by using checkbox selected

    Hello everybody,
    I am a new to JSP. I really don't know how to delete multiple record by using checkbox selected and pressing submit button.
    For example, deleting webmailbox letters using checkbox selected and delete button. The mail we checked will delete from the inbox.
    I like to use my user account deleting system of my project like above example.
    How can I do in JSP? I will very please you if you share you knowledge and code for me.
    If you have URL address, could you share me for reference?
    Please help me...
    With Thanks and Regards,
    wtdahl

    Take a look at this thread, I thing it answers your question quite good:
    http://forum.java.sun.com/thread.jsp?thread=516658&forum=45&message=2463505

  • Download only selected record from ALV

    Hi
      I want to download only selected records from ALV output with button.
    i hav to fix the button on ALV screen using &ZDL whenever user presses the button record should be downloaded.
    Pl with coding
    its very very urgent.

    Hi ,
    i dont have the exact code which suits to your requirement
    but declare the internal table
    like
    data: begin of itab occurs 0,
      check type c,
    fields
    end of itab.
    while filling the field catalog
    fieldcatalog-checkbox = 'X'
    for this check field.
    and display the grid
    now write this subroutine
    *&      Form  USER_COMMAND
          Called from within the ALV processes. Currently, '&IC1' is used
          to process the hotspot and display the document 'picked' by the
          user.
          PV_UCOMM    contains the sy-ucomm from ALV
          SELFIELD is a structure that contains all the data required to
                   process a user selection. The following is an example
                   of the SELFIELD structure and sample values:
    FORM USER_COMMAND USING PV_UCOMM LIKE SY-UCOMM
                            SELFIELD TYPE SLIS_SELFIELD.
      CASE PV_UCOMM.
        WHEN '&IC1'.
          loop at itab where check = 'X'.
    append all these records to another internal table itab1
         endloop.
    call function gui_download.
    pass the internal table itab1 in the tables statement
    and also you have to give the file path that may be static or dynamic
    if dynamic you have to call the function module
    f4_filename
    and get the filename and pass the same value to gui_download
    that will be download to the above said path
    endcase.
    end form.
    reward points if helpful,
    thanks & regards,
    venkatesh

  • Correct way to select records WHERE X ≠ Y

    I'm just starting to learn to create dynamic pages and forms
    and everything has been going very well until now. I'm SURE there
    must be a very simple solution to this because it seems so basic,
    but I have tried everything I can think of and now I'm stuck.
    My table "VENUES" has a column named "ignoreVenue" setup as
    VARCHAR (6), Null (Yes) Default (NULL). I have a corresponding
    checkbox in my form named "ignoreVenue" with "ignore" as its
    checked value.
    I want to create a recordset that only selects records where
    the "ignoreVenue" field is NOT checked. Here is the SQL query I
    tried that seems the most logical to me:
    SELECT *
    FROM VENUES
    WHERE VENUES.ignoreVenue != 'ignore'
    ORDER BY VENUES.venueName
    When I test this with the TEST button in the Wizard dialog or
    in the finished menu on my testing server, there are no records
    listed when, in fact, all but one record should be listed because
    only one of them has "ignore" in the "ignoreVenue" column.
    So here are some variations I tried for 3rd line only, none
    of which worked either:
    WHERE VENUES.ignoreVenue = ''
    WHERE VENUES.ignoreVenue = null
    WHERE VENUES.ignoreVenue = NULL
    WHERE VENUES.ignoreVenue = 'NULL'
    If someone can verify for me that one of these should work
    and which one it is, then will try rebuilding the page once more
    from scratch. But it's a very complex page so I'd prefer not to go
    through all that if I'm on the wrong track to begin with.
    I hope someone has a (simple ;o) answer for me!
    Vera

    veramilomilo wrote:
    > My table "VENUES" has a column named "ignoreVenue" setup
    as VARCHAR (6), Null
    > (Yes) Default (NULL). I have a corresponding checkbox in
    my form named
    > "ignoreVenue" with "ignore" as its checked value.
    You don't say which database you're using, but since your
    column is
    VARCHAR, I assume it's MySQL.
    > I want to create a recordset that only selects records
    where the "ignoreVenue"
    > field is NOT checked.
    Given the description of the column definition, if the field
    is not
    checked, its value will be null.
    Here is the SQL query I tried that seems the most
    > logical to me:
    >
    >
    SELECT *
    > FROM VENUES
    > WHERE VENUES.ignoreVenue != 'ignore'
    > ORDER BY VENUES.venueName
    SELECT *
    FROM VENUES
    WHERE VENUES.ignoreVenue IS NULL
    ORDER BY VENUES.venueName
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Dynamic Checkboxes on Interactive Report

    I have an interactive report that currently lists a row of values:
    Field1
    Val1
    Val2
    Val3
    I would like to place a text-field at the top of this interactive report with a submit button:
    [textbox] [submit button]
    Field 1
    Val1
    Val2
    Va3
    Then I would like to have checkboxes [] appear in each row:
    [textbox] [submit button]
    Field1 | Checkbox
    Val1 | []
    Val2 | []
    Val3 | []
    Then I would like to make it so that the user enters some text into the textbox and selects any number of the row checkboxes. Upon hitting submit, a procedure will run that accepts each Field1 value and inserts a record into a table containing 2 fields: the Field1 value and the textbox text.
    So the following user input:
    [Test text in the textbox.] [submit button]
    Field1 | Checkbox
    Val1 | []
    Val2 | [x]
    Va3 | [x]
    After hitting the submit button, a procedure would be called that would insert 2 records into a table:
    Field1 | Field2
    Val2 | Test text in the textbox.
    Val3 | Test text in the textbox.
    Note that there is no entry for Val1 because its checkbox was not checked when the user pressed submit.
    What can I do to make this happen? I appreciate any help you can offer.

    Thanks for sharing
    I am having exactly the same problem.
    I have an interactive report with the following SQL.
    select RSN_CD,
        DESC,
    APEX_ITEM.CHECKBOX(1,RSN_CD) "Select"
    from CAN_RSN
    I've set the 'Select' column's type to 'Standard Report Column'.  But the checkbox does not appear on the report. 
    Apex Version: 4.0.1.00.03
    Thanks.

  • How to create a condition based on a select that retrieve dynamically a LOV

    Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
    So, the condition have to be:
    inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
    I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
    and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
    and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
    These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
    I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
    Anybody has inplemented something similar ??
    Thanks in advance
    Alex

    Hi alex,
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
    But again your trying to select in the second query where you want "General_faults_iptv"
    SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
    I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    Regards,
    Kranthi.

  • How to delete records from dynamic internal table.

    Hi Experts,
    Need urgent help!!!
    Issue is with Dynamic internal tables.
    Below is code written by me :
    FORM select_query USING Lw_tabnam
                      TYPE  t682i-kotabnr.
      DATA :  lw_line  TYPE REF TO data,
              lw_line1 TYPE REF TO data.
        CREATE DATA Lw_line    TYPE (lw_TABNAM).
        ASSIGN      Lw_line->* TO   <WA_tbl>.
        CREATE DATA LW_LINE    TYPE STANDARD TABLE OF (Lw_tabnam)
                               WITH NON-UNIQUE DEFAULT KEY.
        ASSIGN      Lw_line->* TO <TBL>.
        SELECT * FROM  (Lw_tabnam)
                 INTO CORRESPONDING FIELDS OF TABLE <TBL>
                 WHERE (t_keys).
    Endform.
    code is working fine.
    here even the table name and where condition are dynamic,everything is fine upto this point.
    Now i have to delete some record from <TBL> based on some conditons.
         for ex : ( here lc_fieldname is KUNNR)
          loop at t_kunnr.
              lw_tabix = sy-tabix.
            Read table <tbl>
                    with key (lc_fieldname) = t_kunnr-kunnr ASSIGNING <wa_tbl>.
            If sy-subrc = 0.
            *Delete
            delete <tbl> from <wa_tbl>
    delete <tbl> index  lw_tabix.
            Endif.
         Endloop.
    The above delete statement doesn't work ,even we can't use index as it gives a syntax error " something related to "index is not allowed in standard table or hash table.
    Can you help me ab't how to delete records in Dynamic internal table?
    Other option that i am thinking of is to create a static table of type dynamic table.
    means, data itab type standard table of <tbl> .I know the syntax is wrong ,however is there any way to do this?
    Thanks in advance ,
    If you have any suggestion ab't this then do let me know.
    bye,
    Gaurav.

    Hi
    I wrote this code and it works fine:
    DATA LW_TABNAM(10) VALUE 'LFA1'.
    DATA : LW_LINES TYPE REF TO DATA,
           LW_LINE  TYPE REF TO DATA.
    FIELD-SYMBOLS: <TABLE> TYPE TABLE,
                   <WA>    TYPE ANY.
    CREATE DATA LW_LINES TYPE TABLE OF (LW_TABNAM)
    WITH NON-UNIQUE DEFAULT KEY.
    ASSIGN LW_LINES->* TO <TABLE>.
    CREATE DATA LW_LINE TYPE (LW_TABNAM).
    ASSIGN LW_LINE->* TO <WA>.
    DO 10 TIMES.
      APPEND INITIAL LINE TO <TABLE>.
    ENDDO.
    SY-TABIX = 4.
    DELETE <TABLE> INDEX SY-TABIX.
    WRITE SY-SUBRC.
    I hope it help you
    Max

  • How to  select multiple chek in checkbox in alv

    how to  select multiple chek in checkbox in alv

    Hi,
    Following report is the checkbox alv sample report.
    REPORT  YMS_CHECKBOXALV.
    TYPE-POOLS: slis.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    DATA: s_layout TYPE slis_layout_alv.
    DATA: BEGIN OF itab OCCURS 0,
    icon TYPE icon-id,
    vbeln TYPE vbeln,
    kunnr TYPE kunnr,
    erdat TYPE erdat,
    box TYPE c,
    END OF itab.
    DATA: v_repid TYPE syrepid.
    START-OF-SELECTION.
    Get the data.
    SELECT vbeln kunnr erdat UP TO 100 ROWS
    FROM vbak
    INTO CORRESPONDING FIELDS OF TABLE itab.
    IF sy-subrc <> 0.
    MESSAGE s208(00) WITH 'No data found'.
    LEAVE LIST-PROCESSING.
    ENDIF.
    Modify the record with red light.
    itab-icon = '@0A@'.
    MODIFY itab TRANSPORTING icon WHERE NOT vbeln IS initial.
    v_repid = sy-repid.
    Get the field catalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '1'.
    s_fieldcatalog-fieldname = 'ICON'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-seltext_l = 'Status'.
    s_fieldcatalog-icon = 'X'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'VBELN'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-rollname = 'VBELN'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '3'.
    s_fieldcatalog-fieldname = 'KUNNR'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-rollname = 'KUNNR'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '4'.
    s_fieldcatalog-fieldname = 'ERDAT'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-rollname = 'ERDAT'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    Set the layout.
    s_layout-box_fieldname = 'BOX'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = v_repid
    is_layout = s_layout
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat = t_fieldcatalog[]
    TABLES
    t_outtab = itab.
    FORM SET_PF_STATUS *
    --> EXTAB *
    FORM set_pf_status USING extab TYPE slis_t_extab.
    SET PF-STATUS 'TEST2'.
    ENDFORM.
    FORM user_command *
    --> UCOMM *
    --> SELFIELD *
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    Check the ucomm.
    IF ucomm = 'DETAIL'.
    LOOP AT itab WHERE box = 'X'.
    itab-icon = '@08@'.
    MODIFY itab TRANSPORTING icon.
    ENDLOOP.
    ENDIF.
    selfield-refresh = 'X'.
    ENDFORM.
    Thanks,
    Sankar M

  • Selecting records from DEFAULT range-list subpartition

    Is it possible to select records which belong to DEFAULT subpartition of a certain partition of a RANGE-LIST partitioned table, using subpartition pruning? Our task assumes creating partitions and subpartitions in a table dynamically before running ETL. But sometimes due to complexity of the path subpartition key goes from staging data to materialized views in data warehouse, we cannot predict all subpartition key values upfront. We can create DEFAULT subpartition for every partition though, and have Oracle place records which don't match any subpartition condition into that subpartition.
    But later we need to split DEFAULT subpartition so that all records will go into their dedicated subpartitions, and DEFAULT will be left empty - other layers of our application need all records to be stored in subpartition other than DEFAULT in order to be available. For that, we need to know which keys are stored in DEFAULT subpartition. And the question is - how can we effectively achieve that?
    The obvious "brute force" approach is to issue a query like:
    select distinct subpart_key from mytable partition (myrangepartition) where not subpart_key in (list of all subpartition key values for this partition)
    but it does not use partition pruning - I have checked execution plan. While it is possible to use only DEFAULT partition, this query will iterate through all subpartitions, which is huge performance impact. How can we instruct Oracle to use only DEFAULT subpartition?

    is the solution. I have overlooked this syntax - now my life is much easier.

  • User selected records report

    Hi experts,
    I have a requiement to fulfill, I have a tabular (multiple record) form where i want the user to pick the selected record using check box (property database item--> No) and only selected records will be shown on the report upon pressing a button,
    e.g employees table where user want to print only the selected employees data on the report.
    All ideas will be very much appreciated, (as i am trying to make a for loop for this on the button)
    (unfortunately i am using form 6i).
    Regards

    Hi guys,
    sorry for adding new comment i know problem has been resolved. But i want to add something.
    Problem can also bhi solved by creating the LEXICAL PARAMETER. So, in this solution no need to create table.
    for example.
    DECLARE
    vParameter VARCHAR2(1024);
    BEGIN
    GO_BLOCK('BLOCK_NAME');
    FIRST_RECORD;
    vParameter:='AND report_field_name IN (';
    LOOP
    IF CHECK_BOX = 'Y' THEN
    -- If the value in number
    vParameter:=vParameter||:BLOCK.RECORD_ID||','; -- or any id you are using in form
    -- If the value in characters
    vParameter:=vParameter||'''||:BLOCK.RECORD_ID||'''','; -- or any id you are using in form
    END IF;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    END LOOP;
    vParameter:=SUBSTR(vParameter,1,LENGTH(vParameter)-1)||')';
    END;
    and pass this variable as parameter in report and use in report's query like this
    report_query
    &parameter_name
    Regards,
    Edited by: Ammad10786 on Mar 9, 2010 12:41 PM

  • How to create and process Iinteractive report with selected records in 4.1

    Hi,
    I want to have an Interactive report that will have in front of each row a checkbox that can be selected for batch processing. Is there a way to do so?
    If there is please include some method to process those records i.e. for each selected record create a new record on a different table and update the record itself as processed.
    thanks
    Edited by: yannisr on Jul 13, 2012 5:58 AM

    For this you need to consult APEX documentation for two things
    Create a checkboxes using APEX_ITEM API
    How to reference those checkboxes within an On Submit Process

Maybe you are looking for

  • Log4j strange behaviour

    Hi, I am bit confused with the weird behaviour of Log4j. On my websphere server, I have created a profile. In which, I have deployed two web applications.I am providing log4j.properties file as a shared library. Although both the apps are provided a

  • Remove Structured Anchored Frame  without disturbing the XML Structure - Reg.

    Dear All, Please any one help me!, How to remove the xml Structured Anchored Frame without disturbing the XML Structure. Manually If I'm removing the XML Structured Anchored Frame, the XML Structured is gone. I tried so many ways.  If  I am removing

  • Oracle Data integrator Set up Steps

    Hi All, I am very new to ODI. Can somoeone help me with the steps involved in ODI or how to get started with it after its installation? Thanks, Renu.

  • How to install missing kaleidoscope effect

    I'm trying to edit a Final Cut project created by a friend who has the same version of FCStudio that I do: 5.1.4 I copied the project and media files onto my computer, but when I try to render it I get the message: "The following effects could not be

  • Unable to move a member in planning

    Hello All, I am trying to move a member in planning application from one node to node another. I am getting following error Entity,Parent,Alias: Default,Data Storage,Error_Reason 10937,AH00835,10937:AmerSales - Zenprise Sales - US East,Store,Cannot l