UIX, TableProxy, and checkboxes

Hi all,
I've got a column in a UIX table filled with checkboxes. I want to put a checkbox in the column header, and write some Javascript so that when the header checkbox is checked or cleared, all the checkboxes under it are checked or cleared too. Here's the relevant snippet of my UIX source:
<columnHeader>
<stackLayout>
  <contents>
   <sortableHeader text="Remove"/>
   <messageCheckBox name = "selectAll"
    required="no"
    checked="false"
    onClick="javascript:selectAllForDeletion(checked)"
   />
  </contents>
</stackLayout>
</columnHeader>
<contents>
<messageCheckBox
  id="${ui:concat('Criteria:SelectedForDeletion:',uix.current.tableIndex)}"
  required="no"
  model="${uix.current.CriteriaSelectedForDeletion}"
  name="SelectedForDeletion"
  checked="${uix.current.CriteriaSelectedForDeletion==''}"
  prompt="Remove"
  value=""
/>
<formValue name="SelectedForDeletion" value=""/>
</contents> And my relevant Javascript function is
function selectAllForDeletion(selectAll)
  var proxy = new TableProxy('Criteria');
  var rowCount = proxy.getLength();
  for (var i=0; i<rowCount;i++)
    proxy.getFormElement('SelectedForDeletion', i).checked = selectAll;
} But this isn't working--I'm not getting an error; just nothing happenning.
I tried putting an
alert(proxy.getFormElement('SelectedForDeletion', i).checked);before explicitly setting it, and it came out "undefined", which makes me think that
proxy.getFormElement('SelectedForDeletion', i)is not in fact returning the checkbox.
I'd greatly appreciate any help you can provide.
Thanks much,
Avrom

Perhaps the problem might be that your messageCheckbox and your formValue both have the same name. So your javascript might be trying to select the wrong form element.
Also the table has built-in support for "selecting and acting". You can turn this on my specifying multipleSelection for the table bean's tableSelection property. A column of checkboxes are rendered and are wired up automatically to button(s). If this suits your needs, this is a much easier way to go.

Similar Messages

  • Is it possible to have sorting by group and checkboxes in the same ALV

    Hi there,
    Does anyone know whether it is possible to have sorting and group on one field in ALV and checkboxes set on another field in ALV?
    eg.
    Fieldname
    ===========
    Name----
    Text
    Allowance----
    Numeric -> Sort & Group
    Verified----
    Checkbox
    How do I code it if it is possible to have grouping and check box all in one ALV.  Meaning I want some data that are the same to merge using sort, while still having the checkbox available for my other field (Verified).
    Thanks in advance.
    Lawrence

    hi,
    GROUP BY clause is used on database tables with select statement.
    sort is used on internal tables.
    can u clearly explain y u need group by and sort on the same field.
    if u are extracting from dbtable using grou by clause on a field, then no need to sort it again.
    if u want sort u can do it by giveing "sort itab by field". thats not a problem.
    now coming to check box.instead of using SLIS type field catalog, u use LVC type.
    in LVC_S_LAYO, u can fine box_fname.
    while defining layout, u declare a variable of type LVC_S_LAYO
    AND GIVE BOX_FNAME = internal table field name

  • Commandlink and checkbox in a region(.jsff).

    Hi all,
    I have a commandlink and checkbox in a region(.jsff).
    when i tried to call a method using propertychangeListener or Actionlistener ..
    methosd is not calling ...
    Plase give any solution...

    Hi,
    not enough information - sorry
    Frank

  • Alv and checkboxs

    Guys,
    Ive a problem with a ALV and checkboxs. i have one with column type checkbox, i need mark rows and take them afterward using a button (in ALV) but rows arent marked when i use button. i have seen that it only happend when i use double click in grid (alv).
    How could i use only button after marked my rows ?????
    Thanks

            wa_fieldcat-edit = 'X'.
            modify i_fieldcat from wa_fieldcat index sy-tabix.
    * Form f_alv_edit_oruser                                               *
    * Form for display alv                                                 *
    form f_alv_edit_oruser.
        call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            it_fieldcat                 = i_fieldcat[]
            is_layout                   = pt_grplayout2
            i_callback_program          = 'YSCCU0007'
            i_callback_html_top_of_page = p_header
            i_callback_user_command     = v_user_command1
            it_events                   = i_events[]
          tables
            t_outtab                    = i_yscchdr.
    endform.                                 " F_alv_edit_oruser
    * Form  f_user_command1                                                *
    * This form will handle the user command from fm REUSE                 *
    form f_user_command1 using p_ucomm type sy-ucomm
                         rs_selfield type  slis_selfield.
      data p_ref1 type ref to cl_gui_alv_grid.      "<<<
      call function 'GET_GLOBALS_FROM_SLVC_FULLSCR' "<<<
        importing                                   "<<< 
          e_grid = p_ref1.                          "<<
      call method p_ref1->check_changed_data.   " <<<<
      case p_ucomm.
        when '&DATA_SAVE'.
       endcase.
      rs_selfield-refresh = c_x.             " Grid refresh
    endform.                                 " F_user_command1

  • Text Field and Checkboxes

    Ok... i wish i can show my form without  letting everyone have axx to it.
    But anyway, ive searched and i think i found part of the answer but i am still confused.  http://forums.adobe.com/message/2033382#2033382
    I have a form created completely. It has radio fields, text fields and checkboxes.  I have two problems
    One when ppl are typing in the text field area, it seems to lend in with the question, so if not paying attn, u wont know that they answered a question.
    Currently i have the stuff set at Myriad Pro  size 10.. Thats what i used to type comments and what not.
    But when the end user flls out the form, i want it to at least be in bold or something.. Or maybe Times new roman Or something different from the question font itself.
    Two.. in checkboxes, the default is X. Thats very light.  I need that to be noticeable... So either make em a bod X or  a way to increase the size of the tick without increasing the size of the box itself.. I just tried to use the STAR..And its bold enuf, but its small. It would be better if the star was a lil bigger.
    Currently i think i have 150 checkboxes and about 50 text area and fields.
    I thought about making the text thing rich format, but they cant do that for every field...  id rather tdo that by default in the back end of the form itself.
    I hope im not sounding confusinf

    i know the square and circle are a bit ugly - but there is no chance you'll miss them
    alternatively try adjusting the size a bit under -size you can take a standard checkboxes size from 10 to 12 without increasing its area for example - select the checkbox-objects-field-size - change to 12 eg - adds a bit of weight
    i use squares when i need visual weigh -
    for the text - might be worth having a test at setting input field values with a baseline shift -- thats basically make text bigger or smaller than, you guessed it, baseline -- this from the livecycle scripting reference
    TextField1.font.baselineShift = "+5pt"; should do it for example --
    scripting reference follows --- good luck
    ""baselineShift
    Specifies a positive measurement that shifts a font up from the baseline or a negative measurement that
    shifts a font down from the baseline.
    Syntax
    Reference_Syntax.baselineShift = "0in | measurement"
    Type Values
    String ● fit (default)
    The application scales the image proportionally to the maximum size of the container’s
    content region.
    ● none
    The application scales the image to the size of entire container’s content region. This may
    result in different scale values being applied to the image's X and Y coordinates.
    ● actual
    The image is rendered using the dimensions stored in the image content. The extent of the
    container’s region does not affect the sizing of the image.
    ● width
    The application scales the image proportionally to the width of the container’s content
    region. The image might be taller or shorter than the content region.
    ● height
    The application scales the image proportionally to the height of the container’s content
    region. The image might be wider or narrower than the content region.
    Model Object
    Form Model image
    Adobe LiveCycle Designer ES Scripting Properties
    LiveCycle Designer ES Scripting Reference before 156
    Values
    Applies to
    Version
    XFA 2.1
    Examples
    JavaScript
    TextField1.font.baselineShift = "-5pt";
    FormCalc
    TextField1.font.baselineShift = "-5pt"

  • UIX Buttons and HTML Buttons

    Hi all,
    I'm creating a UIX application, and I don't want to use the icons for UIX buttons. It's not that I have another custom icon--I just want to render them as HTML <input type="submit">.
    I know I could mock up an HTML button as an image and use a custom LAF to do the substitution...but that seems like overkill; it seems like it'd be pretty pointless for users to have to download an image that their browsers are perfectly capable of producing.
    Is there any way I can use a snippet of HTML instead of an image to render buttons in UIX?
    Thanks much,
    Avrom

    Erm...oh dear. Never mind.
    The answer, for anyone who was curious, is just to extend minimal desktop, instead of a heavier desktop.
    Although I'd still be curious...if I had wanted to use some of the standard UIX UI widgets but not others, and I'd wanted to use HTML (rather than fancy images) for the others, could I have done so?

  • UIX/XML and BC4J -- practical???

    Has anyone actually used UIX/XML and BC4J to develop a "real" application? The majority of the examples in the help screens use jsp's, yet the comparisons I've read in the help screens seem to indicate that XML is more flexible.
    UIX/XML seems like such a clever concept, I like the idea, but it's getting the best of me. Should I jump ship now?
    Any comments please!
    js

    Examples are definitely what's needed and I put my request for a full blown MVC application using UIX/XML (without BC4J in my case) to Adam a while ago which was forwarded to the 'management'. Hopefully something will come from this soon. I agree with Janet that UIX is a great concept (don't jump ship yet!) and it should save us so much work but that real world examples would surely help us all. No disrespect, Juan, but you regularly respond to people's questions with 'Have you read the UIX developer's guide provided in the documentation' - we've all read the documentation many times, if only it were that simple! I'm sure it's easier for someone inside Oracle to get the answers they need whereas we on the 'outside' have to rely on this forum for now which is a struggle.
    Bill's idea of illustrations would be great, though I'd like to see the examples relate to the sample screens show on the BLAF standards website. I only found out about the BLAF website accidentally through this forum. The UIX Developer's Guide should explicity reference this as I've found it extremely useful.
    Ed,
    The UIX Developer's Guide is in the JDeveloper Help.

  • Radio buttons and checkboxes using panels......

    Please help..
    I am using radiobuttons and checkboxes with prices on them.. and once an item is selected the total is output.. this works when I don't use panels.. the minute I use panels it does not register what I am using.. can anyone help..
    is there something that I am leaving out.. the basics would be great. please help.
    Asmeen

    Are you really sure this is an advanced language topic?

  • IF EXIT and Checkbox.. need help

    Hi there,
    i have a Problem.
    I am new in ABAP and try out now a lot of thing. Now i have a problem and i dont know how to solve it... Here is my Code.. After that i tell you my problem.
    *& Report  Z_TEILNEHMERLISTE_EINFUEGEN
    REPORT  Z_TEILNEHMERLISTE_EINFUEGEN.
    *Tabelle deklarieren
    TABLES zteilnehmer02.
    SELECTION-SCREEN BEGIN OF BLOCK teilnehmer WITH FRAME TITLE text-001.
    *Eingabefelder deklarieren
    PARAMETERS: nummer TYPE zteilnehmer02-tnummer,
                name   TYPE zteilnehmer02-tname LOWER CASE,
                gebdat TYPE zteilnehmer02-tgeburtsdatum LOWER CASE,
                geschl TYPE zteilnehmer02-tgeschlecht LOWER CASE,
                kurspr TYPE zteilnehmer02-tkurspreis LOWER CASE,
                waehru TYPE zteilnehmer02-twaehrung LOWER CASE,
                kfz    TYPE zteilnehmer02-zzkfztyp LOWER CASE,
                kursti TYPE zteilnehmer02-zzkurstitel LOWER CASE.
    SELECTION-SCREEN END OF BLOCK teilnehmer.
    *Workarea deklarieren die dann in die DB Tabelle zteilnehmer02 gechrieben wird
    DATA: wa_teil LIKE zteilnehmer02.
    *deklarieren der Felder
    wa_teil-tnummer = nummer.
    wa_teil-tname = name.
    wa_teil-tgeburtsdatum = gebdat.
    wa_teil-tgeschlecht = geschl.
    wa_teil-tkurspreis = kurspr.
    wa_teil-twaehrung = waehru.
    wa_teil-zzkfztyp = kfz.
    wa_teil-zzkurstitel = kursti.
    *Daten werden nun aus der Workarea wa_teil in die Tabelle zteilnehmer02 geschrieben
    INSERT INTO zteilnehmer02 VALUES wa_teil.
    *Wenn das Feld tnummer leer ist dann mache nichts... AUSSER es ist oben die Checkbox vollstli angehackt.. dann zeige die komplette Liste
    IF wa_teil-tnummer IS INITIAL.
      EXIT.
    ENDIF.
    *wenn Returncode irgendwas anderes als NULL dann gib Fehlermeldung aus und schreibe den Datensatz NICHT
    IF sy-subrc NE 0.
      ROLLBACK WORK.
      WRITE: / 'Fehler beim anlegen des neuen Teilnehmer mit der Nummer', wa_teil-tnummer, '. Diese Nummer existiert bereits.'.
      ELSE.
    *Wenn RC=0 dann gib folgende Meldung aus nachdem der Datensatz geschrieben wurde
      WRITE: / 'Neuer Teilnehmer mit Teilnehmernummer ', wa_teil-tnummer, 'eingetragen'.
    ENDIF.
    SELECTION-SCREEN BEGIN OF BLOCK anzeige WITH FRAME TITLE text-002.
      PARAMETERS vollstli AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK anzeige.
    *Checkbox prüfen
    IF NOT vollstli IS INITIAL.
    * vollständigen Tabelleninhalt ausgeben
      SELECT * FROM zteilnehmer02.
        WRITE: / zteilnehmer02-tnummer,
                 zteilnehmer02-tname,
                 zteilnehmer02-tgeburtsdatum,
                 zteilnehmer02-tgeschlecht,
                 zteilnehmer02-tkurspreis,
                 zteilnehmer02-twaehrung,
                 zteilnehmer02-zzkfztyp,
                 zteilnehmer02-zzkurstitel.
       ENDSELECT.
       SKIP.
    ENDIF.
    As you can see above i wrote:
    IF wa_teil-tnummer IS INITIAL.
      EXIT.
    ENDIF.
    But in a another BLOCK i have a CHECKBOX. When i "check" the Box i become a List of all Members. But this will not work because the field wa_teil-tnummer IS INITIAL so the program EXIT.
    How can i solve this?
    Thanks
    Bjoern
    Edited by: bjoern bayerschmidt on Jun 3, 2009 1:27 PM
    Edited by: bjoern bayerschmidt on Jun 3, 2009 1:28 PM

    Sorry,
    i did not see that the code look so horrible ^^
    So i have a EXIT here:
    IF wa_teil-tnummer IS INITIAL.
      EXIT.
    ENDIF.
    But AFTER this Code i have a CHECKBOX too.
    SELECTION-SCREEN BEGIN OF BLOCK anzeige WITH FRAME TITLE text-002.
      PARAMETERS vollstli AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK anzeige.
    *Checkbox prüfen
    IF NOT vollstli IS INITIAL.
    * vollständigen Tabelleninhalt ausgeben
      SELECT * FROM zteilnehmer02.
        WRITE: / zteilnehmer02-tnummer,
                 zteilnehmer02-tname,
                 zteilnehmer02-tgeburtsdatum,
                 zteilnehmer02-tgeschlecht,
                 zteilnehmer02-tkurspreis,
                 zteilnehmer02-twaehrung,
                 zteilnehmer02-zzkfztyp,
                 zteilnehmer02-zzkurstitel.
       ENDSELECT.
       SKIP.
    ENDIF.
    So the CHECKBOX do not work when the FIELD wa_teil-tnummer IS INITIAL, because it comes BEFORE the CHECKBOX comes. Do you know what i mean.
    The CHECKBOX do Only work when i put some DATA in the field wa_teil-tnummer. But i want that the CHECKBOX works too when the Field is empty.
    Thanks
    Bjoern
    Edited by: bjoern bayerschmidt on Jun 3, 2009 1:33 PM
    Edited by: bjoern bayerschmidt on Jun 3, 2009 1:34 PM

  • REUSE_ALV_GRID_DISPLAY_LVC and checkboxes

    Hi all,
    please forgive the HUGE post, the code snip is quite significant. My task is to provide a search option for contract numbers then, after selection's done, show a grid with all the results from the search option where every row represents a contract. Addictionally, I want a checkbox for selection for every row, in order to provide a second, decisional step before processing these contracts.
    In order to do so, I used the REUSE_ALV_GRID_DISPLAY but cannot manage to make the checkboxes visible. Note that the solution is working, because clicking in the first field of a row implies adding the row (so, the contract) to a table that will then processed after a particular event's raised (in this case, clicking a specified button).
    Can anybody help me understanding why there are no checkboxes in the first columns? A very similar solution worked for me on another project... can't understand what's wrong with this.
    Here's the code:
    REPORT  z_myproject         .
    * PARAMETERS
    TYPES: BEGIN OF t_ztab_alv,
            sel,
    *        cancellato TYPE c,
            object_id TYPE crmt_object_id,
            description TYPE crmt_process_description,
            logical_system TYPE crmt_logsys,
           END OF t_ztab_alv.
    TYPES: ty_tt_crmd_orderadm_h TYPE TABLE OF crmd_orderadm_h.
    DATA:  it_contract TYPE TABLE OF t_ztab_alv,
           wa_contract TYPE t_ztab_alv,
           l_index TYPE i,
           conditions TYPE string.
    INITIALIZATION.
    * Selection Screens and Parameters
    SELECTION-SCREEN BEGIN OF BLOCK main_sel WITH FRAME TITLE text-001.
    SKIP.
    SELECT-OPTIONS s_ctrid FOR wa_contract-object_id.
    SKIP.
    SELECTION-SCREEN END OF BLOCK main_sel.
    PARAMETERS: flag TYPE xfeld.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_ctrid-low.
      DATA: it_help_item TYPE TABLE OF t_ztab_alv,
            it_return TYPE TABLE OF ddshretval.
      SELECT *
        INTO CORRESPONDING FIELDS OF TABLE it_help_item
        FROM crmd_orderadm_h
        WHERE object_type = 'BUS2000113'.
      IF sy-subrc = 0.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield    = 'OBJECT_ID'
            dynprofield = 'OBJECT_ID'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
          TABLES
            value_tab   = it_help_item
            return_tab  = it_return.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_ctrid-high.
      DATA: it_help_item TYPE TABLE OF t_ztab_alv,
            it_return TYPE TABLE OF ddshretval.
      SELECT *
        INTO CORRESPONDING FIELDS OF TABLE it_help_item
        FROM crmd_orderadm_h
        WHERE object_type = 'BUS2000113'.
      IF sy-subrc = 0.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield    = 'OBJECT_ID'
            dynprofield = 'OBJECT_ID'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
          TABLES
            value_tab   = it_help_item
            return_tab  = it_return.
      ENDIF.
    START-OF-SELECTION.
    * Retrieve values from the sel_opt.
      SELECT * FROM crmd_orderadm_h
        INTO CORRESPONDING FIELDS OF TABLE it_contract
          WHERE object_id IN s_ctrid.
    * Now let's kick our ALV out!
    * General Data
      TYPE-POOLS: slis.
      DATA: gs_layout TYPE lvc_s_layo,
            g_exit_caused_by_caller,
            gs_exit_caused_by_user TYPE slis_exit_by_user,
            g_repid LIKE sy-repid.
      DATA:
          gt_events      TYPE slis_t_event,
          gt_list_top_of_page TYPE slis_t_listheader,
          g_status_set   TYPE slis_formname VALUE 'PF_STATUS_SET',
          g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
          g_top_of_page  TYPE slis_formname VALUE 'TOP_OF_PAGE',
          g_top_of_list  TYPE slis_formname VALUE 'TOP_OF_LIST',
          g_end_of_list  TYPE slis_formname VALUE 'END_OF_LIST',
          it_fieldcat TYPE lvc_t_fcat,
          wa_fieldcat TYPE lvc_s_fcat.
    *"Variants
      DATA: gs_variant LIKE disvariant,
            g_save.
      g_repid = sy-repid.
      g_save           = 'A'.
    * This is the main flow. Initialize the layout and manage events.
      PERFORM layout_init USING gs_layout.
      PERFORM eventtab_build USING gt_events[].
      gs_variant-report = g_repid.
      g_save           = 'A'.
    END-OF-SELECTION.
    *"List Header for Top-Of-Page
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
    *       I_BACKGROUND_ID    = 'ALV_BACKGROUND'
             i_buffer_active    = 'X'
             i_callback_program = g_repid
             i_callback_pf_status_set = 'SET_PF_STATUS'
             i_callback_user_command  = g_user_command
             i_structure_name   = 'ZCTR_TAB_ALV'
             is_layout_lvc          = gs_layout
             it_fieldcat_lvc    = it_fieldcat
             i_save             = g_save
             is_variant         = gs_variant
             it_events          = gt_events[]
    *      I_SCREEN_START_COLUMN    = 0     "Use coordinates for
    *      I_SCREEN_START_LINE      = 0     "display as dialog box
    *      I_SCREEN_END_COLUMN      = 0
    *      I_SCREEN_END_LINE        = 0
        IMPORTING
             e_exit_caused_by_caller = g_exit_caused_by_caller
             es_exit_caused_by_user  = gs_exit_caused_by_user
        TABLES
             t_outtab = it_contract
        EXCEPTIONS
             program_error = 1
             OTHERS        = 2.
      IF sy-subrc = 0.
        IF g_exit_caused_by_caller = 'X'.
    *"  Forced Exit by calling program
    *"  <do_something>.
        ELSE.
    *"  User left list via F3, F12 or F15
          IF gs_exit_caused_by_user-back = 'X'.       "F3
    *"    <do_something>.
          ELSE.
            IF gs_exit_caused_by_user-exit = 'X'.     "F15
    *"      <do_something>.
            ELSE.
              IF gs_exit_caused_by_user-cancel = 'X'. "F12
    *"        <do_something>.
              ELSE.
    *"        should not occur!
    *"        <do_Abnormal_End>.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ELSE.
    *"Fatal error callin ALV
    * MESSAGE AXXX(XY) WITH ...
      ENDIF.
    *"Form routines
    *&      Form  LAYOUT_INIT
    *       text
    *      -->RS_LAYOUT  text
    FORM layout_init USING rs_layout TYPE lvc_s_layo.
    *"Build layout for list display
      rs_layout-cwidth_opt = 'X'.
      rs_layout-zebra             = 'X'.
      rs_layout-box_fname     = 'SEL'.
    ENDFORM.                    "LAYOUT_INIT
    *&      Form  EVENTTAB_BUILD
    *       text
    *      -->RT_EVENTS  text
    FORM eventtab_build USING rt_events TYPE slis_t_event.
    *"Registration of events to happen during list display
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = rt_events.
      READ TABLE rt_events WITH KEY name = slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE g_top_of_page TO ls_event-form.
        APPEND ls_event TO rt_events.
      ENDIF.
    ENDFORM.                    "EVENTTAB_BUILD
    *&      Form  TOP_OF_PAGE
    *       text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
    *           I_LOGO             = 'ENJOYSAP_LOGO'
                it_list_commentary = gt_list_top_of_page.
    ENDFORM.                    "TOP_OF_PAGE
    *       FORM SET_PF_STATUS                                         *
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD'.
      "Copy of 'STANDARD' pf_status from fgroup SALV
    ENDFORM.                    "set_pf_status
    *       FORM USER_COMMAND                                             *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      DATA : it_sel_lines TYPE TABLE OF t_ztab_alv,
             l_lines TYPE i,
             l_mult_lines TYPE flag,
             l_obj_id TYPE char35,
             t_contratti TYPE ty_tt_crmd_orderadm_h,
             wa_contratti TYPE crmd_orderadm_h.
    * Calculate sel_lines.
      REFRESH it_sel_lines.
      CASE r_ucomm.
        WHEN  'ZCANCELLA'.                 "set attribute button
          REFRESH t_contratti.
          LOOP AT it_contract INTO wa_contract WHERE sel = 'X'.
            SELECT SINGLE *
               FROM crmd_orderadm_h
                 INTO wa_contratti
                    WHERE object_id = wa_contract-object_id.
            IF sy-subrc = 0.
              APPEND wa_contratti TO t_contratti.
            ENDIF.
          ENDLOOP.
        MOVE 'X' TO rs_selfield-refresh.
    *  do something with the selected entries.
        PERFORM do something USING t_contratti.
      ENDCASE.
      COMMIT WORK AND WAIT.
      CLEAR r_ucomm.
      MOVE 'X' TO rs_selfield-refresh.
    ENDFORM.                    "USER_COMMAND

    Hello Byju, hello all...
    ...first of all, sorry for the BIG delay in answering but I had to leave a bit this task for other priorities... now I'm back on it to work. Oh, and obviously, happy new year mates
    I tried by myself to follow what you called "option(2)"... a popup screen (simpliest possible).
    In order to do so, I tried the following code, but I don't know how to manage the "no" answer.... I mean, the popup works but if I press "No", I don't want the code to follow to be executed (sounds like I have to translate into code "do nothing of what follows, simply return to the alv screen").
    The code:
    WHEN  'ZCANCELLA'.                 "set attribute button
          REFRESH t_contratti.
          LOOP AT it_contract INTO wa_contract WHERE sel = 'X'.
           IF wa_contract-object_id BETWEEN 8400000000 AND 8499999999.
            popupneeded = 'X'.
           ENDIF.
          ENDLOOP.
          IF popupneeded EQ 'X'.
           CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
    *          TITLEBAR                    = 'ATTENZIONE'
    *          DIAGNOSE_OBJECT             = ' '
               text_question               = '84* contracts in the selection. Continue?  '
    *          TEXT_BUTTON_1               = 'Yes'(001)
    *          ICON_BUTTON_1               = ' '
    *          TEXT_BUTTON_2               = 'No'(002)
    *          ICON_BUTTON_2               = ' '
    *          DEFAULT_BUTTON              = '1'
               DISPLAY_CANCEL_BUTTON       = SPACE
    *          USERDEFINED_F1_HELP         = ' '
    *          START_COLUMN                = 25
    *          START_ROW                   = 6
    *          POPUP_TYPE                  =
    *          IV_QUICKINFO_BUTTON_1       = ' '
    *          IV_QUICKINFO_BUTTON_2       = ' '
            IMPORTING
               ANSWER                      = w_answer.
    *        TABLES
    *          PARAMETER                   =
    *        EXCEPTIONS
    *          TEXT_NOT_FOUND              = 1
    *          OTHERS                      = 2
           IF w_answer ne '1'.
    * to manage -> refresh the alv of selection and do nothing.
           endif.
          ENDIF.
          LOOP AT it_contract INTO wa_contract WHERE sel = 'X'.
            SELECT SINGLE *
                FROM crmd_orderadm_h INTO wa_contratti
                   WHERE object_id = wa_contract-object_id.
            IF sy-subrc = 0.
              APPEND wa_contratti TO t_contratti.
            ENDIF.
          ENDLOOP.
        MOVE 'X' TO rs_selfield-refresh.
    *  delete selected contracts.
      PERFORM cancella_ctr USING t_contratti.
    Also...I added a new field in the ALV mask, called "deleted"... it's a checkbox I'd like to check after the deletion phase to show that a selected contract's been deleted. The behaviour in my mind should be as follows:
    - ALV screen that shows contracts;
    - selection of some of these contracts;
    - click on the button "delete";
    - eventually, popup of the warning screen;
    - after the deletion, return to the previous ALV in which the previously selected lines have the "deleted" field marked (it's not significant to verify that these entries have really been deleted... if something goes wrong, an exception is raised and managed).
    Guess it's a simple "come back to the alv screen and refresh" issue, so maybe you can help me with a clarifying example
    Thanks in advance!
    Edited by: Matteo Montalto on Jan 7, 2009 10:15 AM

  • How can I update multiple rows in table using a single form button and checkboxes

    I have a project where the visitors can select multiple productos and once the click on the PURCHAS button it updates the selected records.

    You have not mentioned the programming language that you are using, but here's a link that could help you if you are using ASP.
    http://csharpdotnetfreak.blogspot.com/2009/05/edit-multiple-records-gridview-checkbox.html
    Also, have a look at this discussion thread
    http://forums.asp.net/t/1470882.aspx

  • Is there anywhere where Apple describes the function and use of every field and popup and checkbox in the email setup "panes"???

    So you call up an account in email
    Account Information is selecgted in the 3-choice menu-bar/button (what is that thing called, anyway? An "inspector"? (frown).
    Then check "enable this account"--is selectable
    Then Account type: iCloud IMAP or example--this is NOT selectable.
    Then "Description field" What's it for, where does it show up, especially if it shows up in other "related" or "integrated" programs?
    Alias popup: What's this for? How do you use it. What approaches, strategies, effects might one employ?
    Email address is pretty straight forward--but see "user.name" in the "server sub-box/sub-pane" below.
    Full Name:  What full name? Where does it appear in use? I cannot access it from the pane/panel, so how do I set it, or who/what sets it?
    Outgoing mail server (SMTP): OK, here's a popup that isn't congruent with "account type" in the first sub-pane. Or is IMAP only an extroverted function/setting, and (SMTP) is a introverted one (IMAP for outbound, SMTP for inbound)?
    Now comes Confusion: Outgoing Mail Server popup menu, which leads you off to a wholenother pane that lets you create new/delete old incoming server names.
    There's a Description (what's that for, what does it do?  Ditto Server name--I get than's something like smtp.ISP.Com or IMAP.ISP.com). You can set those fields in the + menu Account Information Pane, with its blank text fields. And you can also "double-click to enter" that field in the list itself. Why is that?And then I can select Advanced, and get another batch of checkboxes, fields, and popups.
    But I left the Account Information pane before asking, What is this Thread-Lock Stitching Certificate thing? (Or is that Transport Layer Secrecy Sertificate, what?  None is displaying now, but if I popup what's beneath it a humongously long "ID" string, which I take to be, what, my Apple ID? A public key/ provate key encryption string/key? How do I use it if I'm trying to keep the National Surveillance Agency from eavesdropping, "in the clear," my every blessed keystroke, "phrase-stroke" (think VoIP), and if I use the thing, can the president just press a button and send a drone to blow me off the planet (and anyone near me at the time--always great fun for friends and family)?
    And never mind router and FiOS, etc., modem settings. and the Network settings outside of email....
    I guess my bottom line is, the user is presented with a rich smorgasbord of significant choices by all of the panes and panels, etc., on the mac, iMac, iPad-Phone-Watch real soon now, mac pro, macbook pro, etc.  But the specific description of the proper use of these description/instruction on their use and function is impoverished.  I think manuals used to handle some of these issues. But where are the manuals? Or am I just so overwhelmed by the complexity of what was once a simple user interface that I can't see pointers (in light grey type on lighter grey backgrounds--what the heck is wrong with black type, I'd like to know!) staring me in the phiz. Oh, help.

    Hi Cff7dxp,
    I am glad to hear that your issue has been resolved from the provided troubleshooting steps. Please feel free to post in Lenovo Community Forums if you have any further queries!
    Did someone help you today? Press the star on the left to thank them with a Kudo’s!
    Cheers!
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Alv grid and checkboxes

    I'm using the function 'reuse_alv_grid_display' to display an internal table with the first column as a checkbox. Everything displays fine, but the checkbox column is grayed out and I can't check or uncheck the rows as needed. How do I activate this column so I can check or uncheck rows as needed.

    Edward,
    For all the fields where you want the user to enter / edit the data, you should check EDIT field of the field catalog for that field.
    Regards,
    Ravi
    Note : Please mark the helpful answers.

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Having some trouble with hidden and checkboxes on tabular forms

    My query is as follows:
    select distinct tt.name tasktype,ct.name costtype,htmldb_item.checkbox(3,1,NULL,'Y:N',':') "Add Cost", htmldb_item.text(4,defabscost,9) defabscost,
    htmldb_item.hidden(5,tt.tasktypeid) tasktypeid, htmldb_item.hidden(6,ct.costtypeid) costtypeid
    from acct.defabscost d
    inner join work.tasktype tt
    on d.tasktypeid = tt.tasktypeid
    inner join acct.costtype ct
    on d.costtypeid = ct.costtypeid
    I have it wrapped within a function, which works fine. My issues are that I want to have the checkboxes function as row selectors. Basically, not pointing to primary keys (I have a compound primary key on this table). If selected, fill in the table, if not selected, erase from table. Also, My hidden items kinda contain the "primary keys". When I set these as hidden, I see the column, but there is no data. I don't want to see the columns at all, but when I set these to "hidden" in the attributes, I can't reference them with htmldb_application.g_FXX. Any suggestions?

    I actually figured out how to get the htmldb_item.hidden part working properly. I misread the guide, thought it was a comma between fields and not a concatenation. Works fine. But I still need to get the checkbox to work like I want.

Maybe you are looking for

  • Mirroring Imac to TV

    Does someone knows if I can fully mirror (like with a cable) my Imac to the TV wirelessly? Thanks.

  • Error while running commands at RMAN prompt

    Hi , We have a few oracle 10g(10.2.0.3) databases on AIX platform.We use RMAN backup with a recovery catalog database. The rman full(level 0)backups are scheduled dailly and running fine.When I tried to run commands like 'list backup','report obsolet

  • Some items in finder windows have gray dots after file names

    When I open a finder window for the current directory, some of the file name shave little gray dots after the file names, off to the right at the end of the name field.  What do they mean?  Mavericks 10.9.4 on a 2009 Mac Pro.

  • RE P and L report

    Hi Guru's I would like to see P&L Statement report P&L wise, can anyone provide T.code for that. regards venkat.

  • In-place editing problem

    Hello, I have a custom WebCenter Portal Application that I developed in JDeveloper 11.1.1.4. This application has a connection to a UCM Content Repository. On my AboutUs.jspx page I have put a content presenter that displays aboutUs.html. Can someone