Remove Selected on Datagrid

Hi everyone,
This one is simple, i have a dataGrid, i can´t figured
out how to:
After visitor finished select all the items on the dataGrid,
we want to remove from data base (mySql).
Not important but , I just have to find a way to give me same
data so that i can make a POST on php and a sql Query do delete
from DB.
Thanks for the Help in Advance,
Core regards

Hi Tracy,
Look i have a checkBox itemRenderer on a DataGrid, now after
the user select the checkBoxes i want to delelete that rows..
witch checBox correspond to the row is in it..
Sample Code
App
<mx:DataGrid id="hList" dragEnabled="true"
draggableColumns="true" editable="true"
doubleClick="hList.editable=true" horizontalScrollPolicy="on" x="0"
y="0" width="100%" height="100%" dataProvider="{myData}"
borderStyle="solid" borderColor="#ffffff" borderThickness="0"
selectedIndex="0">
<mx:columns>
<mx:DataGridColumn width="25" textAlign="left"
headerText="" itemRenderer="render.checkBox" editable="false"/>
<mx:DataGridColumn dataField="id" headerText="Nº"
width="35" wordWrap="false"/>
<mx:DataGridColumn dataField="titulo"
headerText="Título/Abreviação" minWidth="160"/>
<mx:DataGridColumn id="nomeGrid" dataField="nome"
headerText="Nome" minWidth="200" />
<mx:DataGridColumn dataField="categoria"
headerText="Categoria" minWidth="100" />
<mx:DataGridColumn dataField="descricao"
headerText="Descrição" minWidth="200">
<mx:itemRenderer>
<mx:Component>
<mx:TextArea maxHeight="50" />
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn dataField="url" headerText="Imagem"
itemRenderer="render.thumbGrid" editable="false" />
</mx:columns>
</mx:DataGrid>
itemRender
<mx:CheckBox xmlns:mx="
http://www.adobe.com/2006/mxml"
click="onClick();" useHandCursor="true"
buttonMode="true">
Simple...Select..Delete..
Tkz

Similar Messages

  • In iPhoto, can I remove selected batches of photos from my iPhone?

    In iPhoto, can I remove selected batches of photos from my iPhone 4S?

    Only if they are in the Photo Stream.  Pictures in the Camera Roll have to be deleted from the iPhone.
    OT

  • Hr report category remove selection fields..

    hi again All,
    I am facing a problem again. I tried generating a new category for my report. Now again after creating the category i do not see how to add fields and remove selection fields. I need only company code in my selection criteria and nothing else.
    can neone help me?
    suresh and sarika, i m expecting lot of you..
    please help..
    Reena..

    Reena,
    Pl follow these steps..
    1.In the Program Attributes, click on the pushbutton 'HR Report Category'.Click on the 'Create' icon in the pop-up window that comes up.
    2. On the next screen click on the 'New entries ' pushbutton in the menu bar.
    3. In the next screen enter a anme for the report Category, say, 0COMPCODE.
    4.On the same screen, you have a Navigation tree to the left hand side, click on the Allowable selection Criteria Node
    5. On the next screen, click on the New Entriees pushbutton
    6. On the next screen enter 'PNPBUKRS'.
    7. You will be prompted to tie it to a Transaport Request. Attach it to the sam ereq that your Report is tied to.
    8. SAVE it & attach it to your Program.
    ~Suresh

  • Remove selected from checkedlistbox?!

    I want remove selected items from checklistbox
    i used
     checkedListBox1.Items.Remove(checkedListBox1.SelectedItems);
    this not work well

    If you do the checking in the checkedListBox1_ItemCheck method:
    for (int i = 0; i < checkedListBox1.Items.Count; i++)
    if (i != e.Index)
    checkedListBox1.SetItemChecked(i, false);
    else if you want to check/uncheck the ticks in some other metohd, like on a button press:
    for (int i = 0; i < checkedListBox1.Items.Count; i++)
    if(checkedListBox1.item[i].checked)
    checkedListBox1.item[i].checked = false;
    else
    checkedListBox1.item[i].checked = true;
    Some additional info:
    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/89e37fe3-ca78-4057-bf28-575bcec22f30
    http://www.eggheadcafe.com/community/aspnet/2/10043218/c--change-item-check-state-to-item-in-checkedlistbox.aspx

  • How do I remove selected photos in the Photo Stream library.

    How do I remove selected photos in the Photo Stream library in Aperture 3?

    Just found this post in the iCloud Forum:
    Re: Delete single photos in photostream
    Apple is adding the ability to delete individual photos from the photostream in iOS 5.1 beta 2
    http://www.appleinsider.com/articles/11/12/12/apple_adds_ability_to_delete_indiv idual_photo_stream_pics_in_ios_5_1_beta_2.html
    Hope it's true ...

  • Apache Sling JCR Resource Resolver to remove selected pattern

    Hello,
    I have a requirement to remove selected pattern from all urls. Pattern will look like:
    <domain>/content/mysite/en/section1.html -> <domain>/section1.html
    <domain>/content/mysite/en/section1/cat1.html -> <domain>/section1/cat1.html
    <domain>/content/mysite/en/section1/cat1/page.html -> <domain>/section1/cat1/page.html
    I am new to mappings so looking for help from expert.
    Thanks for your help in advance.
    Regards,
    Mohit

    Does your domain represent a language? If there is no relationship between domain and the paths you are removing (for example www.mysite.com maps to /content/mysite/en and www.mysite.fr maps to /content/mysite/fr) then you can just use the resource resolver and not have to use /etc/maps approach. You would add /content/mysite/en/-/ to the resource.resolver.mapping property of the JCR Resource Resolver (make sure that the last property is /-/. You can do that either in the OSGI Felix console or via OSGI repository configuration.
    If you are using Dispatcher for caching you need to consider using Apache mod_rewrite for handling the incoming mappings. If you rely solely on the JCR Resource Resolver (or and /etc/maps approach) you can cause problems with cache flushing. If you don't use Apache mod_rewrite to change /section1.html to /content/mysite/en/section1.html then the request gets cache in the docroot as /section1.html. When you publish a change to /content/mysite/en/section1.html Dispatcher will not make the propery association and will touch the wrong stat file. Now if your stat file level is set to 0 and you set up to auto-invalidate HTML you will probably not notice the impacts immediately. If however you set your stat file level above zero, or you have non-standard auto-invalidation settings you may have problems with your cache flushing. In general anytime I do I am using Dispatcher I use Apache mod_rewrite to handle incoming rewrites. I still configure the JCR Resource Resolver to handle both incoming and outgoing rewrites so that I can test the site directly against the publish server if I need to, but I'll set up mod_rewrite to handle incoming rewrites and avoid any cache flush issues.
    For SEO purposes in scenarios you will want to configure Apache mod_rewrite to prevent requests directly to the full path. Often times you will either have an outgoing link not get rewritten to the short URL, or someone will send out the full link by accident so you will want to prevent those links from working - potential by doing a 301 redirect of /content/mysite/en/section1.html back to /section1.html. This prevents SEO issues, but you do have to make sure you don't create an infinte loop since the redirected request will then get rewritten to the long URL.

  • How can I remove selected sections? [js][CC2014]

    Hello,
    I'm trying to remove selected sections from my document.
    I figured out how to remove them by index number like this:
    var myDoc = app.activeDocument;
    var mySections = myDoc.sections;
    mySections[1].remove();
    When I try to limit the removal of sections to just my selection, I keep getting errors. I've tried:
    var myDoc = app.activeDocument;
    var mySections = myDoc.sections;
    var mySelection = myDoc.selection;
    mySelection.sections[1].remove();
    And:
    var myDoc = app.activeDocument;
    var mySections = myDoc.sections;
    var mySelection = myDoc.selection;
    mySelection[0].sections[1].remove();
    But I keep getting Error 21 undefined is not an object on line 5.
    Any help is much appreciated.

    I'm trying to remove the section not the content. It would be the equivalent of selecting the first page of a section in the page panel, then right-clicking on it and clicking on "Numbering and sections..." and then unchecking the "Start Section" checkbox.
    That's what the first code snippet does. But I was only able to do it by index number.
    I've read in other posts that it's difficult to specify selections in the page panel using scripting. I'm not sure if it's even possible.

  • Removing selected items from listbox

    Hi ADF Experts,
    I have a selectmanylistbox with few values displaying in UI and a Remove Button at the bottom.
    User selects certain items from the listbox and clicks on Remove button. The selected items should be reomved. Can anybody suggest how to do this.
    Thanks,
    Animesh

    Duplicate of https://forums.oracle.com/thread/2562542
    User, please don't ask the same question multiple times. If you don't get the answer you want it may be because you did not give the right information and or use case me understand.
    Timo

  • Report on Smartform..To make it efficient by removing SELECT ,ENDSELECT

    To make a smartform report efficient by removing all occurs & modify internal table statements.
    What i have been given to do is to select all data from respective tables put them into one internal table & then finally making tab2 or tab3 in the report to be the final table.I am not sure which among these two i can make final table.
    THE CODE is:
    REPORT  zgr_note.
    TABLES : mseg,  "Document Segment : Material
             prps,  "WBS element master data
             proj,  "Project Definition
             mkpf,  "Header : Material Document
             lfa1,  "Vendor Master
             makt,  "Material Description
             aufk,  "Order Master Data
             afvc.  "Operation within an order
    DATA : fname LIKE rs38l-name. "Name of Function Module
    DATA: lf_fm_name            TYPE rs38l_fnam.
    DATA: ls_control_param      TYPE ssfctrlop.
    DATA: ls_composer_param     TYPE ssfcompop.
    DATA: ls_recipient          TYPE swotobjid.
    DATA: ls_sender             TYPE swotobjid.
    DATA: lf_formname           TYPE tdsfname.
    DATA: ls_addr_key           LIKE addr_key.
    DATA: ls_dlv_land           LIKE vbrk-land1.
    DATA: ls_job_info           TYPE ssfcrescl.
    DATA: ls_otpt_opt           TYPE ssfcompop.
    DATA: retcode TYPE sy-subrc.
    DATA: cntr TYPE i VALUE 0.
    DATA: cntr1 TYPE i .
    DATA: number TYPE SSFCRESCL-SPOOLIDS. " OCCURS 0 WITH HEADER LINE.
    DATA: TSP01 type TABLE OF TSP01_SP0R.
    DATA : BEGIN OF itab OCCURS 0.
            INCLUDE STRUCTURE mseg.
    DATA : post1 LIKE proj-post1,           "Project Definition
           pspnr LIKE proj-pspnr,           "WBS element
           maktx LIKE makt-maktx,           "Material Description
           name1 LIKE lfa1-name1,           "Name of the supplier
           budat LIKE mkpf-budat,           "Posting date
           bldat LIKE mkpf-bldat,           "Document date
           cpudt LIKE mkpf-cpudt,           "Date on which account document was entered
           psphi LIKE prps-psphi,           "Current number of project
           post2 LIKE prps-post1,           "WBS Definition
           xblnr LIKE mkpf-xblnr,           "Reference number( in this case challan number)
           bktxt LIKE mkpf-bktxt,           "Header text
           ort01 LIKE lfa1-ort01,           "vendor city
           ktext LIKE aufk-ktext,           "network description
           ltxa1 LIKE afvc-ltxa1.           "operation short text
    DATA : END OF itab.
    DATA : BEGIN OF jtab OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA : END OF jtab.
    DATA : itab1 LIKE itab OCCURS 0
          WITH HEADER LINE.
    DATA :itab2 LIKE itab OCCURS 0
          WITH HEADER LINE.
    DATA: itab3 LIKE itab OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text_001.
    SELECT-OPTIONS : gr_num FOR mseg-mblnr . "no INTERVALS.
    PARAMETERS : gr_note LIKE itemset-xopsel RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN SKIP.
    SELECT-OPTIONS : mat_num FOR mseg-mblnr . "no INTERVALS.
    PARAMETERS : mat_slip LIKE itemset-xopsel RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN SKIP.
    CASE 'X'.
      WHEN gr_note.
        PERFORM gr_display.
      WHEN mat_slip.
        PERFORM mat_display.
    ENDCASE.
    FORM gr_display .
    *break developer1.
      SELECT mblnr mjahr matnr werks lgort lifnr menge meins
             erfmg bpmng ebeln ps_psp_pnr zeile lsmng erfme
      FROM mseg
      INTO CORRESPONDING FIELDS OF TABLE itab
       WHERE mblnr IN gr_num.
      LOOP AT itab.
        SELECT pspnr psphi post1 INTO CORRESPONDING FIELDS OF itab1
          FROM prps WHERE pspnr = itab-ps_psp_pnr.
          itab-psphi = itab1-psphi.
          itab-pspnr = itab1-pspnr.
          itab-post2 = itab1-post1.
          MODIFY itab TRANSPORTING psphi pspnr post2.
        ENDSELECT.
        SELECT post1 FROM proj INTO CORRESPONDING FIELDS OF itab2
        WHERE pspnr = itab-psphi.
          itab-post1 = itab2-post1.
          MODIFY itab TRANSPORTING post1.
        ENDSELECT.
        REFRESH itab2.
        SELECT maktx FROM makt INTO CORRESPONDING FIELDS OF itab2
          WHERE matnr = itab-matnr.
          itab-maktx = itab2-maktx.
          MODIFY itab TRANSPORTING maktx.
        ENDSELECT.
        REFRESH itab2.
        SELECT name1 ort01 FROM lfa1 INTO CORRESPONDING FIELDS OF itab2
          WHERE lifnr = itab-lifnr.
          itab-name1 = itab2-name1.
          itab-ort01 = itab2-ort01.
          MODIFY itab TRANSPORTING name1 ort01.
        ENDSELECT.
        REFRESH itab2.
        SELECT budat bldat cpudt xblnr bktxt FROM mkpf
          INTO CORRESPONDING FIELDS OF itab2
          WHERE mblnr = itab-mblnr.
          itab-budat = itab2-budat.
          itab-bldat = itab2-bldat.
          itab-cpudt = itab2-cpudt.
          itab-xblnr = itab2-xblnr.
          itab-bktxt = itab2-bktxt.
          MODIFY itab TRANSPORTING budat bldat cpudt xblnr bktxt.
        ENDSELECT.
      ENDLOOP.
      LOOP AT itab .
        ON CHANGE OF itab-mblnr.
          itab3-mblnr = itab-mblnr.
          itab3-post1 = itab-post1.
          itab3-post2 = itab-post2.
          itab3-name1 = itab-name1.
          itab3-ort01 = itab-ort01.
          itab3-bldat = itab-bldat.
          APPEND itab3.
          CLEAR itab3.
        ENDON.
      ENDLOOP.
      jtab-mblnr = itab-mblnr.
      jtab-xblnr = itab-xblnr.
      jtab-budat = itab-budat.
      jtab-bktxt = itab-bktxt.
      jtab-lsmng = itab-lsmng.
      jtab-erfmg = itab-erfmg.
      jtab-erfme = itab-erfme.
      jtab-matnr = itab-matnr.
      jtab-maktx = itab-maktx.
      jtab-zeile = itab-zeile.
      APPEND jtab.
      LOOP AT itab3.
        CLEAR: itab2,itab2[].
        LOOP AT itab WHERE mblnr = itab3-mblnr.
          MOVE-CORRESPONDING itab TO itab2.
          APPEND itab2.
          CLEAR itab2.
        ENDLOOP.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = 'ZMM_GOODS_RECEIPT1'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = fname
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    *break developer1.
    PERFORM print_parameters.
        CALL FUNCTION fname
          EXPORTING
           control_parameters         = ls_control_param
           output_options             = ls_otpt_opt
           user_settings              = 'X'
           gr_mseg_hdr                = itab3
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
          TABLES
            gr_mseg                    = itab2
         EXCEPTIONS
           formatting_error           = 1
           internal_error             = 2
           send_error                 = 3
           user_canceled              = 4
           OTHERS                     = 5
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " GR_DISPLAY
    FORM mat_display .
      SELECT mblnr mjahr matnr werks lgort lifnr menge meins
             erfmg bpmng ebeln ps_psp_pnr zeile lsmng erfme
             mat_pspnr nplnr aufpl aplzl
      FROM mseg
      INTO CORRESPONDING FIELDS OF TABLE itab
       WHERE mblnr IN mat_num.
      LOOP AT itab.
        SELECT ltxa1 FROM afvc INTO CORRESPONDING FIELDS OF itab1
          WHERE aufpl = itab-aufpl AND aplzl = itab-aplzl.
          itab-ltxa1 = itab1-ltxa1.
          MODIFY itab TRANSPORTING ltxa1.
        ENDSELECT.
        REFRESH itab1.
        SELECT ktext FROM aufk INTO CORRESPONDING FIELDS OF itab1
          WHERE aufnr = itab-nplnr.
          itab-ktext = itab1-ktext.
          MODIFY itab TRANSPORTING ktext.
        ENDSELECT.
        REFRESH itab1.
        SELECT pspnr psphi post1 INTO CORRESPONDING FIELDS OF itab1
          FROM prps WHERE pspnr = itab-mat_pspnr.
          itab-psphi = itab1-psphi.
          itab-pspnr = itab1-pspnr.
          itab-post2 = itab1-post1.
          MODIFY itab TRANSPORTING psphi pspnr post2.
        ENDSELECT.
        SELECT post1 FROM proj INTO CORRESPONDING FIELDS OF itab2
        WHERE pspnr = itab-psphi.
          itab-post1 = itab2-post1.
          MODIFY itab TRANSPORTING post1.
        ENDSELECT.
        REFRESH itab2.
        SELECT maktx FROM makt INTO CORRESPONDING FIELDS OF itab2
          WHERE matnr = itab-matnr.
          itab-maktx = itab2-maktx.
          MODIFY itab TRANSPORTING maktx.
        ENDSELECT.
        REFRESH itab2.
        SELECT name1 ort01 FROM lfa1 INTO CORRESPONDING FIELDS OF itab2
          WHERE lifnr = itab-lifnr.
          itab-name1 = itab2-name1.
          itab-ort01 = itab2-ort01.
          MODIFY itab TRANSPORTING name1 ort01.
        ENDSELECT.
        REFRESH itab2.
        SELECT budat bldat cpudt xblnr bktxt FROM mkpf
          INTO CORRESPONDING FIELDS OF itab2
          WHERE mblnr = itab-mblnr.
          itab-budat = itab2-budat.
          itab-bldat = itab2-bldat.
          itab-cpudt = itab2-cpudt.
          itab-xblnr = itab2-xblnr.
          itab-bktxt = itab2-bktxt.
         break developer1.
          MODIFY itab TRANSPORTING budat bldat cpudt xblnr bktxt.
        ENDSELECT.
      ENDLOOP.
      LOOP AT itab.
        ON CHANGE OF itab-mblnr.
          itab3-mblnr = itab-mblnr.
          itab3-budat = itab-budat.
          itab3-bldat = itab-bldat.
          itab3-post1 = itab-post1.
          itab3-ktext = itab-ktext.
          APPEND itab3.
          CLEAR itab3.
        ENDON.
      ENDLOOP.
      LOOP AT itab3.
        CLEAR: itab2, itab2[].
        LOOP AT itab WHERE mblnr EQ itab3-mblnr.
          MOVE-CORRESPONDING itab TO itab2.
          APPEND itab2.
          CLEAR itab2.
        ENDLOOP.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = 'ZMM_MAT_ISSUE_SLIP'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = fname
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        ls_control_param-no_dialog = 'X'.
    *ls_control_param-preview = 'X'.
    *ls_control_param-getotf = 'X'.
       ls_otpt_opt-tdnoprev = 'X'.
        ls_otpt_opt-tdnewid = ''.
        ls_otpt_opt-tdimmed = 'X'.
        ls_otpt_opt-tddest  = 'LP01'.
        CALL FUNCTION fname
          EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
           control_parameters         = ls_control_param
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
           output_options             = ls_otpt_opt
           user_settings              = 'X'
            mat_slip_hdr               = itab3
       IMPORTING
        DOCUMENT_OUTPUT_INFO       =
         JOB_OUTPUT_INFO            = ls_job_info
        JOB_OUTPUT_OPTIONS         =
          TABLES
            mat_slip                   = itab2
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDLOOP.
    ENDFORM.

    Hello Saswat,
    There are a couple of criteria to make a SmartForm report efficient, i.e. to achieve a better performance:
    - provide the best possible interface to the temporary FM (fname). When you do so, SmartForm itself has not to perform so much programming stuff by itself.
    - The Driver program (zgr_note) has to be designed and coded well. What mean the performance of the Driver has to be optimized. In your case there should be a couple of performance improvements:
    -- adjust your program declaration to the new ABAP syntax, i.e. don't use OCCURS clauses and do not use HEADER LINE. Instead, implement TYPES and use them. Here is an example:
    TYPES: BEGIN OF ty_itab.
                 INCLUDE STRUCTURE mseg.
    TYPES: post1 LIKE proj-post1, "Project Definition
                 pspnr LIKE proj-pspnr, "WBS element
                 maktx LIKE makt-maktx, "Material Description
                 name1 LIKE lfa1-name1, "Name of the supplier
                 budat LIKE mkpf-budat, "Posting date
                 bldat LIKE mkpf-bldat, "Document date
                 cpudt LIKE mkpf-cpudt, "Date on which account document was entered
                 psphi LIKE prps-psphi, "Current number of project
                 post2 LIKE prps-post1, "WBS Definition
                 xblnr LIKE mkpf-xblnr, "Reference number( in this case challan number)
                 bktxt LIKE mkpf-bktxt, "Header text
                 ort01 LIKE lfa1-ort01, "vendor city
                 ktext LIKE aufk-ktext, "network description
                 ltxa1 LIKE afvc-ltxa1, "operation short text
                 END OF ty_itab.
    * Declare your internal tables and the corresponding working structures
    DATA: itab1 type standard table of ty_itab,
               itab2 type standard table of ty_itab,
               itab3 type standard table of ty_itab,
               jtab  type standard table of ty_itab,
              wa_itab1 type ty_itab,
              wa_itab2 type ty_itab,
              wa_itab3 type ty_itab,
              wa_jtab   type ty_itab.
    -- Don't use
    LOOP at itab.
      SELECT ...... WHERE pspnr = itab-ps_psp_pnr.
      ENDSELECT.
      SELECT * ...
      ENDSELECT
      SELECT * .....
      ENDSELECT
    ENDLOOP.
    Instead try to populate itab, itab1, itab2 each in ONE select statement using FOR ALL ENTRIES clause. After that you have to perform the LOOP runs using LOOP at itab INTO wa_itab. The more redundant SELECTs, the slower the program! When you perform a LOOP run, let say over itab1 and you need a corresponding record from table itab2 the use READ <itab> with key.
    One additional, very important hint: Using internal tables w/o header line the CLEAR statement has another functionality than with HEADER LINE
    CLEAR with HEADER LINE clears the HEADER line only
    CLEAR w/o HEADER LINE clears the entire table. CLEAR does the same as REFRESH.
    Another performance improvement is (when itab contains a lot of records) using FIELD-SYMBOLS.
    A simple example is
    FIELD-SYMBOLS: <fs> type itab.
    LOOP at itab assigning <fs>.
      wa_itab3-post1 = <fs>-post1.
      wa_itab3-post2 = <fs>-post2.
      APPEND wa_itab3 to itab.
    ENDLOOP.
    In this case no data values have to be transfered to a working field. The values are taken directly from the current line of the internal table.
    -- For better readability disign some events like START-OF-SELECTION, END-OF-SELECTION, INITIALIZATION and others.
    Try to gather all in SmartForms needed fields and pop them into table itab3.
    I hope this helps improving zgr_note's efficiency.
    Good luck,
    Heinz

  • Can't figure out how to remove select music from my iPhone 4 with the new iTunes

    My old PC with all my music on iTunes died, and I need to remove some music from my iPhone 4 to make room for the new OS update. I downloaded iTunes on a different computer and tried to sync the iPhone to it, to move all the music on my iPhone to iTunes so I could deselect what songs I wanted to remove to make the storage space. I can't figure out how to do this with the new (non-user-friendly) iTunes update. When I sync the phone, the only songs that show up are the ones I have purchased on iTunes, but non of the songs/albums that I transfered from CDs. I don't want to reset my phone to delete ALL my music, just select songs/albums. Can anyone please help me figure out the new iTunes to be able to do this? It is driving me nuts and I'm getting really mad at Apple for their constant updates making things less easy to use!

    i have the same problem, if u find it out please let me know :C i can erase or put new songs from my pc to itunes u.u

  • How to remove selection from a tr:selectManyListBox

    Hi,
    Let us suppose that a JSF page consists of a tr:selectManyListBox and a tr:commandButton.
    On clicking on an option in the list box that option gets highlighted.
    If press the commandButton then the page simply reloads with the slected option in the list still highlighted.
    If we want to remove the selection from the list box on submitting the page how shall we do it?

    Hi,
    I know its confusing, but Trinidad is a MyFaces project on Apache. If you need help with the component stack then please register on their mailing lists
    http://myfaces.apache.org/trinidad/trinidad-1_2/mail-lists.html (---> user)
    and post the question you have. For the shuttle, have a look here
    http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_selectManyShuttle.html
    I hope that as soon as we go production we will be able to handle some of the Trinidad questions on this forum too (at least those that are the same in ADF Faces)
    Frank

  • How do I remove select songs from my iPhone?

    I am trying to delete select songs/albums from my iPhone since it is almost over capacity. Apple doesn;t seem to want to make this an easy task... There are songs I simply don't want anymore, and can't seem to remove them from my iPhone 4...

    AtRi-X wrote:
    You can delet by swiping your finger from left to right which will bring delet button ,this wont work on playlists so basically you can't delet individual song from playlist
    Yes, you can delete individual song in a playlist.
    In playlist, tap Edit button (top left), tap on the left of song, tap red Delete button.

  • Add and remove option in DataGrid in flex

    Dear Friends,
                    I have a datagrid which we can add a row and remove the row.In this DataGrid when i clicked to add new row im getting check Box at first,which i dont want to need at first.Pls help me regarding this.Please find the screen shot and code here.
    <fx:Script>
            <![CDATA[
    [Bindable]
                private var archiveData:ArrayCollection;
    private static const ADD_ARCH_ROW:String = "Click to Add Archive Row";
                private function checkArchiveEditBegin(e:DataGridEvent):void
                    if(e.rowIndex == archiveData.length - 1 && e.columnIndex != 1)                       
                        e.preventDefault();
                private function ediArchivetEnd(e:DataGridEvent):void
                     var item:Object = archiveGrid.dataProvider.getItemAt(e.rowIndex);           
                    if(e.rowIndex == archiveData.length - 1)
                        var txtIn:TextInput =     TextInput(e.currentTarget.itemEditorInstance);                   
                        var dt:Object = e.itemRenderer.data;                   
                        if(txtIn.text != ADD_ARCH_ROW)
                            archiveData.addItemAt(new archiveDetails(txtIn.text, "", ""), e.rowIndex);
                        archiveGrid.destroyItemEditor();                                   
                        e.preventDefault();
                public function deleteArchiveRow(e:MouseEvent):void{                           
                    archiveData.removeItemAt(archiveGrid.selectedIndex);
                    archiveData.refresh();               
                protected function AddArchiveRows(event:MouseEvent):void
                    archiveData = new ArrayCollection();                       
                    archiveData.addItem({archiveFrom: ADD_ARCH_ROW});               
                    archiveGrid.visible = true;               
                protected function button2_clickHandler(event:MouseEvent):void
                    if(archiveData.length!=1){
                    archiveData.removeItemAt(archiveGrid.selectedIndex);
    <mx:DataGrid id="archiveGrid" dataProvider="{myData}" x="399" y="6" width="539" height="169" visible="false" sortableColumns="false" editable="true"
                     itemEditBeginning="checkArchiveEditBegin(event)"
                     itemEditEnd="ediArchivetEnd(event)">
            <mx:columns>
                <mx:DataGridColumn id="arc" headerText="" width="50" editable="false">
                    <mx:itemRenderer>
                        <fx:Component>
                            <mx:CheckBox textAlign="center" click="outerDocument.deleteArchiveRow(event)"/>
                        </fx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="FROM" dataField="archiveFrom" width="300"/>
                <mx:DataGridColumn headerText="TO" dataField="archiveTo" width="125"/>
                <mx:DataGridColumn headerText="DAYS" dataField="archiveDays" width="100"/>           
            </mx:columns>
        </mx:DataGrid>
    <s:Button x="444" y="266" label="Delete" click="button2_clickHandler(event)"/>

    Dear Frnds,
                    Please Help me to do the above bussiness.....

  • How to remove "Select" header in a ADFMultiselection Table.

    Hi All,
    Can anyone help me in removing the "select" header in a ADF MultiSelection table.
    I have searched the forum, but I didnot find a convincing answer.
    Jst let me know if anyone has a solution for this.
    Thanks,

    Hi,
    you can't change it in your code. I think the only option is to create a custom skin and then replace the resource bundle. Creating a custom skin for this is more work than the effect may justify. So to hide the string you can use CSS like the following
    .x2z{color:#D2D8B0}
    which turns the font color into the background color
    Frank

  • Removing select components from swing JPanel

    I have a JPanel that contains many different JLabels that move around to different parts of the JPanel. These components may end up occupying the same location in the JPanel.
    1. How do I determine which objects is the one visible? Is it the one most recently added to the JPanel?
    2. How do I selectively remove a certain component that may be in under one component and above 2 others...? This JLabel that I want to remove, does not have a specific name, instead it is indexed in an array.

    steeveesas wrote:
    I have a JPanel that contains many different JLabels that move around to different parts of the JPanel. These components may end up occupying the same location in the JPanel.
    1. How do I determine which objects is the one visible? Is it the one most recently added to the JPanel?I would guess that much depends on the layout manager (if any used) and how you are adding the components to the jpanel.
    2. How do I selectively remove a certain component that may be in under one component and above 2 others...? This JLabel that I want to remove, does not have a specific name, instead it is indexed in an array.call remove(component) on the JPanel followed by revalidate() and repaint().

Maybe you are looking for