How to disable selectOneChoice depending on checkbox checked or not!?

Hello guys,
im new in ADF and i'm trying to print report about some workers. I pick up those workers from selectOneChoice. Then i want to have this option to print a report for all the workers. I use check box (all workers) and want to disable selectonechoice if check box is checked.
Any ideas!?
thanks in advance,
riffoman

Hi,
Always mention your JDev version.
Don't go to Javascript solution so soon. Have a boolean property defined in your bean with accessors and bind it with the value property of your checkbox. Add the id of the checkbox to your SOC as partialTriggers and set autoSubmit for the checkbox. Set the disabled property of the SOC to the same property that you've used for the value of the checkbox.
Ex :
<af:selectBooleanCheckbox text="selectBooleanCheckbox 1" label="Label 1" id="sbc1"
                        value="#{requestScope.allWorksers}" autoSubmit="true"/>
                <af:selectOneChoice label="Label 1" id="soc1" partialTriggers="sbc1" disabled="#{requestScope.allWorksers}">
                    <af:selectItem label="One" value="1" id="si1"/>
                    <af:selectItem label="Two" value="2" id="si2"/>
                </af:selectOneChoice>I've used the requestScope variable directly. You can bind it to the bean property / the value of checkbox accordingly.
-Arun

Similar Messages

  • How to disable a default selection checkbox in the tableview

    Hi All,
             How to disable a default selection checkbox in the tableview ???
    I have  a tableview  with a iterator class mentioned on the iterator attribute of the table view. Table is a MULTISELECT tableview . Is it possible to disable or make it invisible a particular row selection check box?.
    For my scenario I have Currency values on all the columns and I want to do a sub total overall total for all the price column fields in the last row of that table. I archived this functionality using Iterator class method. But I don't want the user to delete that last row in any case.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Hi,
      You can NOT disable the "Checkbox" of particular row using HTMLB. I had the same requirement. I achieved using <b>2 Tableviews</b>, one after another. 1st tableview will show all the rows and 2nd Tableview(without Table Header) and without any row. The <b>total</b> will be displayed as <b>Column title</b> of 2nd Tableview.
    Here is the code of 2nd tableview which we used to display the Total:
              <htmlb:tableView id                  = "tv2"
                               headerVisible       = "false"
                               keyColumn           = "appid"
                               footerVisible       = "false"
                               selectionMode       = "SINGLESELECT"
                               design              = "ALTERNATING"
                               fillUpEmptyRows     = "false"
                               visibleRowCount     = "0"
                               width               = "100%"
                               table               = "<%= tot_header %>" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "empno"
                                         title      = "Total"
                                         width      = "50"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ename"
                                         title      = "  *      "
                                         width      = "90"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "appamount"
                                         title      = "   <%= tot_appamt %> "
                                         width      = "60" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ugjr_amt"
                                         width      = "60"
                                         title      = "<%= tot_ugjr %>" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "apprvd"
                                         width      = "50"
                                         title      = "*" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>
    Hope this will help you.
    <b>Note: Reward each useful post.</b>
    Raja T
    Message was edited by:
            Raja T

  • How to disable "blue underlined links" (which I did not code) in FireFox?

    How to disabl "blue underlined links" (which I did not code) in FireFox? Here's an example website that has no underlined links coded in the simple html source: www.setv.org. After I updated FireFox to a more recent FireFox version, blue underlines appear in websites. I know that there is a way to disable that annoying 'feature'.
    Thanks in Advance
    tron nee
    Electro-Optical Tech*Artist
    Los Angeles Burning Man Artist Association
    burner et von tron

    Cor El,
    Thank you. Re; under-lined links...I thought I looked everywhere...but I missed it!
    Any chance there being a way to easily enable/disable animations? I'd sure like to selectively rid the screen of those noisy flashy-blinky advertisements.
    And how about storing java-script enable/disable flags with bookmarks? That way I would not be forced to click tools->options->content->enable-javascript each time I wanna turn it on or off? When I surf using database engines I disable j-script (phkem) and when I need to get something from nextegg I turn it on. What about being able to selectively disable/enable (also stored in bookmarks) embedded google-ads/beacons flags? I hate being tracked, now I'm getting ads on my cable TV set based on where I've been lurking on the InterNet. Big-phkn-brother's on us, and its the greedy phkn corporations who don't give sht about us except for what's in our wallets. InterNet used to be cool, now its the CIA, the FBI, KGB, policia, FartBuuk, Macro$haft, AT&T, Giggle (at least they give something of value back), and all the other facist big-brothers. Mozilla was born fighting that schema. There's so much more that FireFox could do to mitigate InterNet facism.
    Anyway, thanks again for your time and I appologize for the ranting.
    burner von tron

  • How to disable "overwrite exisintg files" checkbox from Upload.aspx

    Hi Folks,
    I have a requirment to disable 'Overwrite existing files' check box from upload.aspx for only 2 specific libraries and it should be in visible for rest of libraries.
    could you please share the code snippet / any other suggestions to make it full this requirement.
    Thanks,
    janaiah

    Hi 
    you can use jquery to do so.
    $(document).ready(function()
        var
    form = $('form');
        if
    ( form.attr('action').indexOf('YOUR 36 character List ID - Without Braces') > -1 )
            var
    checkbox = $('#ctl00_PlaceHolderMain_UploadDocumentSection_ctl03_OverwriteSingle');
            checkbox.prop('checked',false);
            checkbox.parent().hide();
            var
    multiple = $('#ctl00_PlaceHolderMain_UploadDocumentSection_ctl03_UploadMultipleLink');
            multiple.hide();
    https://sharepoint4u.wordpress.com/2013/08/13/how-to-disable-overwrite-exisintg-files-in-a-library/
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • How to disable the print icon on check status screen of shopping cart inSRM

    Hi Experts,
    I have a requirment in which I need to disable print Icon on the status screen of the shopping cart.
    Can anybody please let me know how to achive this requirement.
    Thanks,
    Arun K Singarapu

    Hi Here you go some useful code for the requirement.
    wafunc = 'BWD'.
          APPEND wafunc TO functab.
          wafunc = 'FWD'.
          APPEND wafunc TO functab.
          wafunc = 'DIS'.
          APPEND wafunc TO functab.
          wafunc = 'COP'.
          APPEND wafunc TO functab.
          wafunc = 'IGN'.
          APPEND wafunc TO functab.
          wafunc = 'SAVE'.
          APPEND wafunc TO functab.
          wafunc = 'HIS'.
          APPEND wafunc TO functab.
          wafunc = 'CONTACT'.
          APPEND wafunc TO functab.
         SET PF-STATUS 'OBJECT_SEL' EXCLUDING functab.
    Bala.M

  • HOW TO DISABLE ALL BUT ONE CHECKBOX IN ALV BASED ON ITEM LEVEL

    Hi All,
    I have a report that has output format in ALV , first column is a Checkbox and second in agreement number . the data is displayed on item level , now my requirement is check box must be displayed in front of only first line item per agreement number and should not be displayed infront of any other ,
    rewadard points are waiting.....for correct answer...

    The same thing can be done using Object Oriented ALV.
    Following are the steps...
    1. HANDLE_STYLE TYPE LVC_T_STYL.
    DECLARE work area,and table
    2.  DATA: LS_EDIT TYPE LVC_S_STYL,
            LT_EDIT TYPE LVC_T_STYL.
    changing the style...
    3.
    LOOP AT IT_FINAL INTO LS_OUTTAB WHERE FLAG = 'X'.
        V_INDEX = SY-TABIX.
        LS_EDIT-FIELDNAME = 'MATNR'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        LS_EDIT-FIELDNAME = 'VBELN'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENAABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        LS_EDIT-FIELDNAME = 'POSNR'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
        MODIFY IT_FINAL INDEX V_INDEX FROM LS_OUTTAB  TRANSPORTING
                                          HANDLE_STYLE .
      ENDLOOP.
    assigning the style to Layout..
    4.   GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
    Check the sample code..
    create a screen 100, place a control on that and name it as TEST. and also activate the pf-status.
    REPORT  ZTEST1234    MESSAGE-ID ZZ                           .
    DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID. 
    DATA: L_VALID TYPE C,
          V_FLAG,
          V_DATA_CHANGE,
          V_ROW TYPE LVC_S_ROW,
          V_COLUMN TYPE LVC_S_COL,
          V_ROW_NUM TYPE LVC_S_ROID.
    DATA: OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM,
          G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST', "First Container
          GS_LAYOUT TYPE LVC_S_LAYO.
    DATA:BEGIN OF  ITAB OCCURS 0,
         VBELN LIKE LIKP-VBELN,
         POSNR LIKE LIPS-POSNR,
         LFDAT like lips-vfdat,
         BOX(1),
         HANDLE_STYLE TYPE LVC_T_STYL,
         END OF ITAB.
    *       CLASS lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **Hot spot Handler
        HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                          IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
    **Handler to Check the Data Change
        HANDLE_DATA_CHANGED FOR EVENT DATA_CHANGED
                             OF CL_GUI_ALV_GRID
                             IMPORTING ER_DATA_CHANGED
                                       E_ONF4
                                       E_ONF4_BEFORE
                                       E_ONF4_AFTER,
    **Double Click Handler
        HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                                         IMPORTING E_ROW E_COLUMN ES_ROW_NO.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Handle Hotspot Click
      METHOD HANDLE_HOTSPOT_CLICK .
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW_ID.
        V_COLUMN = E_COLUMN_ID.
        V_ROW_NUM = ES_ROW_NO.
        MESSAGE I000 WITH V_ROW 'clicked'.
      ENDMETHOD.                    "lcl_event_handler
    *Handle Double Click
      METHOD  HANDLE_DOUBLE_CLICK.
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW.
        V_COLUMN = E_COLUMN.
        V_ROW_NUM = ES_ROW_NO.
        IF E_COLUMN = 'VBELN'.
          SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
        ENDIF.
        IF E_COLUMN = 'POSNR'.
          MESSAGE I000 WITH 'Click on POSNR row number '  E_ROW.
          "with this row num you can get the data
        ENDIF.
      ENDMETHOD.                    "handle_double_click
    **Handle Data Change
      METHOD HANDLE_DATA_CHANGED.
        CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY
          EXCEPTIONS
            FINISHED = 1
            OTHERS   = 2.
        IF SY-SUBRC NE 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDMETHOD.                    "HANDLE_DATA_CHANGED
    ENDCLASS.                    "LCL_EVENT_HANDLER IMPLEMENTATION
    *&             Global Definitions
    DATA:      G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container
                G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
    *- Fieldcatalog for First and second Report
    DATA: IT_FIELDCAT  TYPE  LVC_T_FCAT,
          X_FIELDCAT TYPE LVC_S_FCAT,
          LS_VARI  TYPE DISVARIANT.
    *                START-OF_SELECTION
    START-OF-SELECTION.
      SELECT VBELN
             POSNR
             FROM LIPS
             UP TO 20 ROWS
             INTO CORRESPONDING FIELDS OF TABLE ITAB.
    END-OF-SELECTION.
      IF NOT ITAB[] IS INITIAL.
        CALL SCREEN 100.
      ELSE.
        MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
      ENDIF.
    *&      Form  CREATE_AND_INIT_ALV
    *       text
    FORM CREATE_AND_INIT_ALV .
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
      CREATE OBJECT G_CUSTOM_CONTAINER
             EXPORTING CONTAINER_NAME = G_CONTAINER1.
      CREATE OBJECT G_GRID
             EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
    * Set a titlebar for the grid control
      CLEAR GS_LAYOUT.
      GS_LAYOUT-GRID_TITLE = TEXT-003.
      GS_LAYOUT-ZEBRA = SPACE.
      GS_LAYOUT-CWIDTH_OPT = 'X'.
      GS_LAYOUT-NO_ROWMARK = 'X'.
      GS_LAYOUT-BOX_FNAME = 'BOX'.
      GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
      CREATE OBJECT G_HANDLER.
      SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
    *  SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
      SET HANDLER G_HANDLER->HANDLE_DATA_CHANGED FOR G_GRID.
    data: ls_outatb like line of itab,
          v_index type sy-tabix.
    DATA: LS_EDIT TYPE LVC_S_STYL,
            LT_EDIT TYPE LVC_T_STYL.
    LOOP AT ITAB INTO ls_outatb WHERE POSNR = '000010'.
        V_INDEX = SY-TABIX.
        LS_EDIT-FIELDNAME = 'VBELN'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        INSERT LINES OF LT_EDIT INTO TABLE ls_outatb-handle_style.
        MODIFY ITAB INDEX V_INDEX FROM ls_outatb  TRANSPORTING
                                          HANDLE_STYLE.
      ENDLOOP.
    * setting focus for created grid control
      CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
        EXPORTING
          CONTROL = G_GRID.
    * Build fieldcat and set editable for date and reason code
    * edit enabled. Assign a handle for the dropdown listbox.
      PERFORM BUILD_FIELDCAT.
    * Optionally restrict generic functions to 'change only'.
    *   (The user shall not be able to add new lines).
      PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
    **Vaiant to save the layout
      LS_VARI-REPORT      = SY-REPID.
      LS_VARI-HANDLE      = SPACE.
      LS_VARI-LOG_GROUP   = SPACE.
      LS_VARI-USERNAME    = SPACE.
      LS_VARI-VARIANT     = SPACE.
      LS_VARI-TEXT        = SPACE.
      LS_VARI-DEPENDVARS  = SPACE.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
    **Calling the Method for ALV output for First Grid
      CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          IS_VARIANT           = LS_VARI
          IS_LAYOUT            = GS_LAYOUT
          I_SAVE               = 'A'
        CHANGING
          IT_FIELDCATALOG      = IT_FIELDCAT
          IT_OUTTAB            = ITAB[].
    * Set editable cells to ready for input initially
      CALL METHOD G_GRID->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    *&      Form  EXCLUDE_TB_FUNCTIONS
    *       text
    *      -->PT_EXCLUDE text
    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    *&      Form  build_fieldcat
    *       Fieldcatalog
    FORM BUILD_FIELDCAT .
      DATA: L_POS TYPE I.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
      X_FIELDCAT-FIELDNAME = 'VBELN'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-NO_ZERO    = 'X'.
      X_FIELDCAT-EDIT      = 'X'.
      X_FIELDCAT-OUTPUTLEN = '10'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Item'(025).
      X_FIELDCAT-FIELDNAME = 'POSNR'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
        L_POS = L_POS + 1.
        X_FIELDCAT-SCRTEXT_M = 'Del Date'(015).
      X_FIELDCAT-FIELDNAME = 'LFDAT'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '10'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
    ENDFORM.                    " build_fieldcat
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.
    **Initializing the grid and calling the fm to Display the O/P
        PERFORM CREATE_AND_INIT_ALV.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • How to disable the link for Credit -check at item level

    Hi Experts,
    I have an issue tht we want to make a block to the link available for
    credit-release at item level. In the view of the item, when we select the item
    in edit view we have a button saying MORE and in tht we have CHEC CREDIT RELEASE.
    We want to disable this.
    I found tht if we made some changes in do_prepare method, we can solve this issue.,but i was
    check fi anyother way we can do it.
    Awaiting for the replies.
    Thanks,
    SA

    Hey Saurabh,
    If you dont want the functionality occurred due to that button, just simply comment the event handler code for that particular button. That will definitely help.
    Let me know if that work.
    Regards,
    Shobhit

  • How to disable mouse click on checkbox for each treeviewitem?

    treeview provode checkbox with state picture. When click on the pic, it will change the state pic.
    I want to have this on display, but only for display, not allow user click on it to switch state pic. It means checkbox is read-only.
    How to do it?

    Hi,
    You can do this :
    -Create a function :
    wf_set_checkbox_state (long al_tvihandle, long al_state) {
         treeviewitem ltvi
         tv_1.GetItem ( al_tvihandle, ltvi)
         ltvi.statepictureindex = al_state
         tv_1.SetItem ( al_tvihandle, ltvi )
    -In the Clicked Event of the treeview add this code :
    long  ll_state
    treeviewitem ltvi
    tv_1.GetItem ( handle, ltvi)
    ll_state = ltvi.statepictureindex
    post wf_set_checkbox_state (handle, ll_state)
    Regards.
    Abdallah.

  • HT3771 how to disable printer updates for printers I do not have anymore

    I'm using Snow Leopard and find that auto-update is constantly wanting to update printer drivers for printers i do not own, but might have had connected in the past. How can I disable these printers? I've spotlight searched through my system and cannot find where these printer profiles are located.

    /Library/Printers/ and delete any manufacturer's folder for the ones you don't have. This is all I have left:

  • How to disable line items of sales order ie not editable

    Hi All,
      I want to diable line items of BOM when using it in sales order, Can any one tell me how to do it and which USER EXIT or BADI i have to use it for.
    Regards,
    Sudhakar.A

    Hi,
    You have to write your code in this Include : MV45AFZZ
    Here i have diabled the components of BOM...change the code accordingly.
    IF ( sy-tcode EQ 'VA01'
             OR sy-tcode EQ 'VA02' ).
        loop at xvbap where pstyv eq 'ZABC'.
          if not vbap-uepos is initial.
            if sy-subrc = 0.
              screen-input = 0.
            endif.
         endif.
        endloop.
      endif.
    Here Xvbap is like Internal table
    VBAP is strucure.
    Regards,
    Sudhakar Reddy.A

  • Help with formula that is dependent on checkboxes

    Hello -
    I can't figure out this one for the life of me... In column A there is a list of tasks, column B has check boxes for each task. Column C has the starting day number of each activity, and column D has the duration of each activity.
    I'd like to check each box for the activities that I'd like to do, enter the duration of the checked tasks, and have the table figure which task starts on which day. ie: - if tasks A, D, & E are checked, then it shows that task A starts on day 1, runs for 2 days, task D starts on day 3 & lasts for 5 days, & task E starts on day 8, and lasts for 4 days.
    Should this be an IF formula? I'm not sure how to make everything dependent of the check box status. Here's a link to the table, if that helps
    http://www.sendspace.com/file/rckrn2
    Thanks
    Jeremy

    Hi Jeremy.
    For starters, I'm less than favourably impressed with your choice to place the file on a site whose first choice, when clicked starts to download a Windows executable file.
    A better choice, and a more 'standard' one here would be to place a screen shot of the result you hope to achieve in your post.
    I've done a little reorganization of your table, adding one column to those described above to avoid having a calculated column between two entry columns.
    Tasks are listed in column A, checkboxes in column B. The estimated duration of each task is listed in column C.
    Columns D and E are calculation columns.
    The value from C is transferred to E if the checkbox is checked in that row.
    Column D determines the starting day  for each checked task, with the assumptions that the tasks will be done in the order they are listed, that each must be finished before starting the next, and that the new task starts on the day the previous one is finished.
    Formulas:
    D2 and filled down to D10: =IF(B,1+SUM($E$1:E1),"")
    E2 and filled down to E10: =IF(B,C,"")
    Row 11 is a Footer row. The formula in E11 is =SUM(E)
    You might find the arrangement below a more logical order for the columns. Note that a different selection of tasks has been made, and the calculations automatically adjusted:
    Revised formulas for this order:
    D2: =IF(C,1+SUM($E$1:E1),"")
    E2: =IF(C,B,"")
    Regards,
    Barry
    PS: Details, and further examples, for each of the functions used are available in the iWork Formulas and Functions User Guide. The guid may be downloaded via the help menu in numbers.
    B

  • How to disable tool tips in JRC

    Please let me know how to disable tooltip in browser for JRC

    I do not think it is possible to disable tooltips with JRC.
    But in RDC you can try to turn off all the tooltips for the reportobjects, including objects within the subreport with the snippet code below:
    Dim i As Integer
    Dim ii As Integer
    Dim iii As Integer
    Dim iiii As Integer
    For i = 1 To Report.Sections.Count
        For ii = 1 To Report.Sections(i).ReportObjects.Count
            Report.Sections(i).ReportObjects(ii).ConditionFormula(crToolTipTextConditionFormulaType) = "chr(9)"
            If Report.Sections(i).ReportObjects(ii).Kind = crSubreportObject Then
                    Set subreport = Report.OpenSubreport(Report.Sections(i).ReportObjects(ii).SubreportName)
                        For iii = 1 To subreport.Sections.Count
                            For iiii = 1 To subreport.Sections(iii).ReportObjects.Count
                                subreport.Sections(iii).ReportObjects(iiii).ConditionFormula(crToolTipTextConditionFormulaType) = "chr(9)"
                            Next iiii
                        Next iii
            End If
        Next ii
    Next i
    Cheers

  • ThinkVantage Toolbox Taskbar Icon - How to Disable

    I did the research and the answer seemed to be to disable the ThinkVantage Toolbox - click on the taskbar and then uncheck (disable) the Toolbox from loading in the toolbar.
    However, everytime I restart the laptop (X220) it comes right back.
    How to disable the toolbar so that it does not keep coming back?   Kent

    http://forums.lenovo.com/t5/ThinkVantage-Technologies/Thinkvantage-toolbox-toolbar-keeps-coming-back...

  • How to disable thumbs.db files?

    How to disable thumbs.db files?

    bobwild is not correct.
    thumbs.db will be created in any directory connected to by osx. This is created for faster loading by finder and the files are automatically hidden. This includes external media and fileservers. When viewing the same directory in another operating system they are no longer hidden.
    To disable the creation of such files on connected media, the following command must be entered into terminal.
    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
    you must log out or restart to take effect.

  • How to Disable Auto Lock - C2-03

    Plz tell me how to disable autolock in nokiaC2-03
    Moderator's Note: A more appropriate subject was provided.

    You cant.
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

Maybe you are looking for

  • HT1711 I don't know my password and iTunes won't back it up without it.

    Yesterday I took my password off of my phone and this morning when I was turning it back on I typed in the wrong password so it reset it to whatever I had actually wrote and I have no idea what I wrote so I ended up locking it for an hour before givi

  • Can't add video to my ipod

    i can't add my videos to my ipod from itunes. itunes reads my videos but when i try and add them to my ipod it say's this ipod can't read these files. i have got the new ipod update and itunes and it still doesnt work. DOES ANYONE KNOW HOW TO GET ROU

  • Multiple "Bill To" for Customer type Business Partners

    Hi all! Can someone tell me when the functionality of Multiple "Bill To" addresses for Customer type Business Partners became available? I have a customer on 2007A SP00 PL06 and we cannot create more than one, while in my test system at 2007A SP00 PL

  • How to load dump file

    hello all, I have a dump file with .dmp extension which is taken from my friend.How could I install in my database.

  • Creating a project in iMovie and not being able to create a project in iDVD

    I created a project on iMovie and published it to the Media Browser. Then, when I tried to start a new project in iDVD, it said "No Themes Installed". It gave me a choice to quit iDVD and install it again, or to look for the "Themes" folder. What do