I want my checkbox to fly on my grid

Hello Friends,
I have create a checkbox and a datagrid in my application.
When I move my mouse over each row of my datagrid, I want the
checkbox to appear in the row (say in the first column) over which
am moving my mouse.
Anyone to help with this simple issue.
Thx

Do you want to use iTunes' Music Sharing? That's perhaps the simplest method. BTW, where you set your iTunes Music folder location has no impact on iTunes Music Sharing. Also, iTunes Music Sharing doesn't require you to mount your Mini user account or volume on your G5 desktop.
See
iTunes: How to Share Your Music
Finding and Listening to Shared iTunes Music Libraries
iMac G4 17; iBook G4 1.33 Mhz 14; iPod 3G 20GB   Mac OS X (10.3.9)  

Similar Messages

  • I want to Checkbox and then have a cell show a number or not

    My formula is this: =IF(C4>=A4/3.5,0,IF(C4<A4/3.5,A4))
    Want to check box in E3 and have F4 perform the shown calculation. If the box is not checked I want F4 to display nothing or Zero.
    How can this be done?
    Base
    Product
    Start
    CheckBox
    Add
    24
    Bubble Gum
    24
    0
    24
    Taffy
    24
    0
    24
    ZoomZooms
    24
    0
    24
    WhamWhams
    24
    0
    24
    Zonkers
    24
    0

    Hi blkrocket,
    Your screenshot does not show column labels, but I think this is what you want:
    E2 (and copied down)
    =IF(D2,IF(C2>=A2/3.5,0,A2),0)
    Two nested IF formulas.
    The first IF looks to see if the checkbox in D is "TRUE".
    Is so, execute the second IF, else E becomes 0
    The second IF looks to see if C>=A/3.5
    If so, E becomes 0, else E becomes A
    I hope I have understood your aim.
    Regards,
    Ian.

  • Checkbox activate/deactivate in alv grid report

    Hi All,
    I am using REUSE_ALV_GRID_DISPLAY fm to display output.In my output i having checkbox column based on values on internal table it will be checked and the checkbox column is editable.
    Now my requirement is if particular checkbox having values it should be in editable mode if not the checkbox should be non editable mode.
    For example the if 2 checkboxs having values that should be in editable mode remaining checkboxs should be in disable mode.

    suppose this is the case
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
                P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
                P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
    then suppose u want to enable the next two checkboxes when first is checked then...
    type
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
    if p_print = 'X'
    parameters:
    P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
    P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
    endif.
    regards,
    Ankur

  • Setting checkboxes to true in a grid

    Hi,
    I am using a Grid. In one of my columns, I am showing checkboxes. please help that
    Where (in which method of backing bean ) should I keep the code to select these checkboxes so that these some of checkboxes come selected when the page is loaded?
    Please suggest some tutorial which clears the calling sequence of all methods of backing bean.
    Many thanks in advance...
    Message was edited by:
    yds_smart

    Just set the values to true.
    Backing bean:checked = true;And by the way, use #{myBean.checked} instead of #{myBean.isChecked}.
    Please suggest some tutorial which clears the calling
    sequence of all methods of backing bean.You want to understand the JSF lifecycle? This article might be interesting: http://balusc.xs4all.nl/srv/dev-jep-djl.html

  • How to add a checkbox coulmn to my Data Grid row?

    Dear All ,
    I have a Data Grid which have lets says 6 columns. I want to add anew column which allow the user to select it or not. Meaning if the user select the box a hack will be shown.
    I want to you this coz I have a function which send an email to the user if the line (Invoice line) if selected. Now if there is more than one invoice (Line) I want the user to first select the checkbok and send press the send function button.
    Later on I will create a loop in the Send function which will only send mails if the line check box is checked.
    Would you please help me :)
    Ps: I am using ligth switch 2008   (C#)
    Thanks,
    Zayed

    Hello Zayed
    I would recommend that you read through this brilliant article by
    Paul van Bladel here or even look at a post on
    this forum by Sven Elm. I have looked at and followed these in the past and it works perfectly.
    If you found this post helpful, please mark it as helpful. If by some chance I answered the question, please mark the question as answered. That way you will help more people like me :)

  • CheckBox Item Renderer checks wrong grid row after sorting

    I have an advanced Data Grid that has a checkBox ItemRenderer. The underlying object being displayed (Server) in the dataGrid is being bound to the checkBox with a selectedForDeployment:Boolean property.
    I had this working just fine until the datagrid is sorted. After the grid is sorted I can click on the checkBox in row 2 and the checkBox in row 8 will be selected for instance. Or in some cases all checkBoxes will become checked. Also, if I have some already checked and then sort, the checkBox will become unchecked.
    I have an example of my itemRender below. Any idea on how I can get this to work:
    public class CheckBoxRenderer extends CheckBox
            override public function set data(value:Object):void {
                if(value){
                    super.data = value;
                    Server(super.data).addEventListener("setSelectionChanged", valueChange);
                    this.selected = value.selectedForDeployment;
            public function CheckBoxRenderer(){
                focusEnabled = false;
                BindingUtils.bindSetter(selectionChange, this, "selected");
            //this method occurs the checkbox is clicked
            public function selectionChange(value:Boolean):void{
                trace(value);
                this.selected = value;
                if(this.data){
                    this.data.selectedForDeployment = value;
            //This method occurs when the selectedForDeployment boolean in the object changes
            public function valueChange(event:Event):void{
                this.selected = event.target.selectedForDeployment;
            /* center the checkbox if we're in a datagrid */
            override protected function updateDisplayList(w:Number, h:Number):void
                super.updateDisplayList(w, h);
                if (listData is DataGridListData)
                    var n:int = numChildren;
                    for (var i:int = 0; i < n; i++)
                        var c:DisplayObject = getChildAt(i);
                        if (!(c is TextField))
                            c.x = (w - c.width) / 2;
                            c.y = (h - c.height) / 2;

    This usually works for me:
    package renderers
        import flash.events.Event;   
        import mx.controls.CheckBox;
        public class CheckBoxRenderer extends CheckBox
            public function CheckBoxRenderer()
                super();
                addEventListener(Event.CHANGE, handleChange);
            override public function set data(value:Object):void {
                if(value){
                    super.data = value;
                    selected = value.selectedForDeployment;
            private function handleChange(event:Event):void{
                data.selectedForDeployment = event.target.selected;

  • 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

  • Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS

    I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but the checkbox changes it's value and the cursor is displayed on the record with the error. I didn't want the checkbox to change if an error occurred. I tracked this through the trace and saw the on-populate-details is fired between the error and the when-checkbox-changed trigger. I went through debug and saw because of the erorr, the system will do a 'return' back to the sending action. I beleive this return is causing the when-checkbox-changed to fire. I'm just guessing here. I tried a similar action on another form without a relationship set up. That would eliminate the on-populate-details trigger. When I did a similar error, I got exactly what I was looking for. I caused the error but pressed the checkbox on another record. The error displayed but the checkbox did not change and the cursor returned to the error record. I need the record to have this relationship. Consequently, I need the on-populate-details trigger. Can anyone think of a solution? I'm currently on Forms 6I. We are going to forms 10G in the next few months. But I really need a solution on my current set up. Thanks.

    The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
    Code :
    public void run() throws Exception {
              beginStep("CHARGEMENT DES DONNEES SUIVANTES");
                   info("Chargement des prochaines données...");
                   getDatabank("NouvellesIA").getNextDatabankRecord();
              endStep();
    Stop the user after this step and goto the finish section should not be a problem...
    If I use the "When out of records" option, does it jump directly to the finish section ?
    Thanks,
    Benoit.

  • Problem with checkbox column in matrix

    Hello.
    I have a little problem with checkbox column in matrix.
    Column is binded to the UserData.
    It has ValOn="Y", ValOff="N".
    I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
    checkcell->PutChecked(VARIANT_TRUE);
    then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
    I tried to use ValOn="Y", PutChecked...
    The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
    My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
    How can I solve it ?
    Sorry for my english.
    Kamil Wydra

    Hello Kamil,
    I am not sure about your problem, but here is an example of how to use checkbox in UI API.
    First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
    - <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
      <databind alias="U_RENTED" databound="1" table="@VIDS" />
      <ExtendedObject />
    Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
    Third, when you open the form, you can check and uncheck the cell.
    BTW, please set the editable of the column to true.
    Hope this helps,
    Nick

  • How to use a checkbox

    I looked at the help for a single checkbox, but there are no examples for it. I have not been able to figure out how to find the state of the box when I submit the page. It is always its default value.
    Help says it can be used as a boolean control. What does this mean? I tried binding a boolean to SelectedValue, escape, but isEscape() does not return the right value. I tried removing this, and then checkbox.getSelectedValue() also does not work.
    Help please.
    Jim

    This shows a demo of checkbox:
    add a textField
    add a checkbox without any change of properties
    add a button - in properties set text to "Change"
    --      doubleclick the button and replace TODO with following code:
         if (checkbox2.isChecked()) {
    checkbox2.setSelected("false");
    } else {
    checkbox2.setSelected("true");
    add another button - in properties set text to "Read"
    --     doubleclick the button and replace TODO with following code:
         if (checkbox2.isChecked()) {
         textField7.setText("true");
         } else {
         textField7.setText("false");
    Run:
    Click checkbox and then Read-button
    Click change-button and then read-button
    If you have a DB in bottom and want a checkbox to show a value from a table
    here is a tutor for that:
    DB-table with columns id of integer, name of varchar, friend of boolean
    Drag the table from Servers to the page
    add 3 textfields
    add a dropDownlist
    rightclick --> Autosubmit on Change
    rightclick --> Bind to data --> select xDataProvider --> select desired value=id and desired display field=name
    rightclick --> Edit EventHandler --> processValueChange
    replace the TODO with
    RowKey[] xrows = xDataProvider.getRowKeys(xDataProvider.getRowCount(), null);
    xDataProvider().setCursorRow(xrows[Integer.parseInt(dropDown1.getSelected().toString())-1]);
    When select a new value the page is sent back to server and you need these 2 lines to update the fields.
    textField1.setText(dropDown1.getSelected().toString()); (Shows dropDown selected item)
    textField2.setText(xDataProvider.getCursorRow().toString()); (shows dataprovider cursorrow)
    textField3.setText(xDataProvider.getValue("DB_tablename.friend", xDataProvider.getCursorRow())); (shows value of dataprovider friend column)
    add a checkbox
    rightclick --> Bind to data --> select xDataProvider --> select desired value=id and desired display field=friend
    in checkbox properties -- Data - converter - select booleanConverter
    in checkbox properties -- Data - selected - set this to true (true represent checked checkbox)
    Run and see changes (need at least 2 rows in DB table with different values for friend)
    Please give feedback if this helps.

  • Incorporating a checkbox field in an internal table.

    Hi all,
    I have an internal table itab which has the following fields:
          WRITE:/p_box AS CHECKBOX,
                 itab-vbeln,
                 itab-traid,
                  itab-lifnr,
                  itab-lfdat,
                  itab-printed.
    But I want that checkbox to be a part of this internal table and not in the way I have written. How can I do that?

    Hi,
        Define one field in internal table as character type and length 1.
    Ex.
       Data : begin of itab occurs 10,
                 flag(1) type c,
    end of itab.
    flag = 'X'.
    loop at itab.
    write :/ flag as checkbox input off.
    endloop.
    Regards,
    Prashant

  • Auto-populate checkboxes in a form

    I'm working on a form in ApEx that has several checkbox fields on it, and am having some trouble getting them to auto-populate. Based on a selection on the welcome page of this application, certain checkboxes should auto-populate so that users should be able to opt out of certain criteria on the form.
    Here's an example:
    On page 1 of this application, the user chooses what type of report they are requesting. Their options are: "Internal Use" "Non-Solicitation Mailing" "Solicitation Mailing" "Solicitation" "Invitation" and "Other." On the next page (the form itself), there are several different conditional items called "(type of request)_Exclusions," and all of these are checkboxes based on a Static LOV. For example, for a request that is listed as "Internal Use," the checkboxes for "Deceased" "Lost" and "No Mail" should be automatically checked so that the user has the option to opt out, and their values should be returned to the database.
    Any help would be greatly appreciated.

    Hi,
    You want the checkboxes to be checked by default in the form while creating a new record in the database. Suppose that form page number is 7 and it has a hidden item P7_ID (refererring primary key of database table) and checkbox item P7_IS_ACTIIVE (refererring IS_ACTIVE column of database table and can have values 'Y' or 'N'). Now edit P7_IS_ACTIIVE item and scroll to Default section.
    Type Default Value = case when :P7_ID is null then 'Y' end;
    Default Value Type = PL/SQL Expression
    In the List of Values section type List of Values Definition = STATIC2:Active;Y.
    Click Apply Changes and create Automatic Row Processing (DML) process On Submit -After Computations and Validations for insert, update and delete of database table records. Type Item Containing Primary Key Column Value = P7_ID.
    Whenever you create a new record the P7_IS_ACTIIVE is always checked.
    Else if this is not what you need you can refer the example posted by Denes as 'Checkbox Y/N' on http://htmldb.oracle.com/pls/otn/f?p=31517:123:1499221457271585::NO
    Thanks,

  • Need to add checkbox in alv header Not  in grid

    Dear Guru's,
                       My question is i want to add checkbox on top of alv grid ie on top of page .
    my requriement is for SD module- status of order -Mass Update.
    suppose status checkbox on header is HFSC is checked ( check box),
    for all the sales order which are showed on the alv grid must be updated with this status for which i am calling trasaction VA02 in program and doing changes but i am not able to create checkbox on header .
    Again i have already used ALV without classesso please give me solution accordinglly . Thanks in advance.

    Hi,
    For working with top of page we generally use SLIS_LISTHEADER right.
    In this type the first field is
    type - which can accept values as follows
               H - Heading
               S - Selection
               A - Action
    May be the options Selection or Action may help u.

  • Having issues with checkbox

    Hi all.  I am fairly new to javascript and I am hoping someone can assist in what I am trying to do.  I need to do this right now using Javascript - not Livecycle.  Have not learned Livecycle yet plus the software version I am using does not support dynamic forms created by Livecycle
    I am trying to have a check box show based on whether another field is blank or not
    I have tried using two different scripts but with no luck.  Am I missing a step
    I have gone into said checkbox. 
    Check style is check
    Export Value is yes - but there is no value in my script
    I have tried having the check the box stating checked by default in the properties.  I have also tried having it not ticked.
    This is the code I am using in the actual field (not checkbox as that only allows action on mouse actions an the staff may not click anywhere in there if the form prefills for them
    //GET THE THIRD PARTNER
    var CPartner3 = this.getField("FormValues.accountNames_3").value
    var cb = this.getField("Checkbox34").value
    cb.defaultIsChecked(0, false);
    if (cPartner3 !="")
      cb.defaultIsChecked(0, true);
    //end
    I have also tried having if (cParther3 !="")
      cb.presence = visible
    else
    cb.presence = hidden
    // end
    Neither work
    The other code that places the word Partner works fine
    Any thoughts??

    Yes.  The checkbox export value is Yes.  The tickbox stating default is blank.  I want the checkbox to tick IF field is NOT empty
    Last question, is there a ValidateNow() code.  The solution works if I am working physically on the form and physically type something in the field but the form is being prepopulated from our banking system.  So the field is not blank but the tick boxes do not happen unless I physically click into the field and type. Same thing happened to my other calculations and I was able to fix with a calculateNow() Page Action upon opening

  • Datagrid checkbox headerrenderer check off problem

    I have a datagrid where one column has select option like what we have in mail inboxes. User can select one or many row items to perform any actions by selecting the checkbox. It has also one select all option which is shown in the header renderer of that particular column. If user clicks on that all checkboxes gets selected.
    I have done that but the problem is that whenever i am performing any action by selecting all(header checkbox) and as a result the datagrid sometimes sets visible off or switches to some other mxml component from the component which is holding the datagrid and after coming back from that scenario again to the datagrid, its seen that the checkbox is still checked ... i want that checkbox to set to non-checked.
    help me.

    Hi subhajit nag,
    Say the below is your mxml component in viewStack...
    <your component>
    <mx:Script>
    <![CDATA[
    [Bindable]private var headerChecked:Boolean = false;
    private function onShow():void
         headerChecked = false;
    ]]>
    </mx:Script>
    </your component>
    <mx:DataGrid x="35" y="10" id="mydg">
            <mx:columns>        
                <mx:DataGridColumn editable="true" sortable="false">
                 <mx:headerRenderer>
                  <mx:Component>
                            <mx:CheckBox selected="{outerDocument.headerChecked}" click="checkUnCheckCheckBoxes()">
                             <mx:Script>
                      <![CDATA[
                       import mx.collections.ArrayCollection;
                   private function checkUnCheckCheckBoxes():void
                      // You can handle your logic what you want to do when header check box is clicked....   
                      ]]>
                  </mx:Script>
                            </mx:CheckBox>
                        </mx:Component>
                 </mx:headerRenderer>
                    <mx:itemRenderer>                
                        <mx:Component>
                            <mx:CheckBox selected="{data.isSelected}" click="{data.recselected = !data.recselected}"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Column 1" dataField="firstName"/>
                <mx:DataGridColumn headerText="Column 2" dataField="lastName"/>           
            </mx:columns>
        </mx:DataGrid>
    So you just need to change the value of the headerChecked  bindable variable to false..in show event for your first scenario...and your header check box is automatically unselected because this check box is binded to a bindable variable to which you are setting to false...
    For your second scenario....you can use the same changing the headerChecked value to false...
    You need to set this varibale to false in your second scenario where you know that your Header Render datagrid is making it visible after you made it unvisible...
    say you have clicked header check box and you made this datagrid invisible and this header checkbox datagrid will be visible once again when you click toggle button so set the value to false in the toggle button click function....
    private function toggleButtonClickHandler():void
         headerChecked = false;
         yourHeaderChkDataGrid.visible = true;
         yourAnotherDG.visible = false;
    Hope this is clear for you now...Try this and let me know...
    Thanks,
    Bhasker Chari

Maybe you are looking for