How to disable selection of checkbox ?

Hi,
I got the following query wrote under WHEN-ITEM-NEW-INSTANCE :-
Declare
In_routing_header_id number;
begin
select      rrh.routing_name,
     rrh.routing_header_id
into     :receipt_match.aic_routing_dsp,
     in_routing_header_id
from     po_line_locations_all plla,
     rcv_routing_headers rrh
where     rrh.routing_header_id = plla.receiving_routing_id
and     plla.line_location_id = :receipt_match.po_line_location_id;
if in_routing_header_id = 2 and :receipt_match.rect_qty_accepted = 0 then
set_item_property('receipt_match_control.receipt_match',enabled,property_false);
*** set_item_property ( 'receipt_match.selection_checkbox', enabled, property_false);
raise form_trigger_failure;
end if;
set_item_property('receipt_match_control.receipt_match',enabled,property_true);
end;
Please note on line *** where I inserted this line is to disable user from make selection/ click on the checkbox. However, I got the error when putting this. The error prompt : 'FRM-41032: Cannot set enabled attribute of current item XXXXX '
Please helps. I'm new in oracle forms.
Thanks
Lim

Hi,
Thanks for reply. However, I need to put the code only in the WHEN-NEW-RECORD-INSTANCE as the form that I called will display the data for user to check the button and select. I need to diable the check button from selection here. As you can see from the code, the match button had disable but now I need to disable the checkbox.
This is b'cos current status is even the match button has disable but the checkbox still can enable user to make mistake and record still can be saved from there. That's why I need to disable the checkbox to prevent user from make selection and saved.
Hope this is clear and looking forward to your helps.
rgds
Lim

Similar Messages

  • How to disable "Selection Security" in a correct way?

    hi experts!
    how to disable "Selection Security" in a correct way?
    !http://img689.imageshack.us/img689/2748/28668107.png!
    thanks!

    Hi...
    Open "Catalog Manager" and
    navigate to Shared -> "Shared Folder Name" (ex: Sample Sales) -> _Portal.
    Here you find all dashboards. Open the dashboard that you already enabled selection. In that dashboard folder you find one more folder with name: _selections*
    Delete the _selections* folder.
    You will get Enable option again in front end.
    All the best

  • How set disable select matrix column header

    How set disable select matrix column header same Inventory-->Pick List Form
    Thanks Advance.

    Hi ,
    do u mean Price List Form Header...
    If Yes Means Try the Following,
    select case pVal.FormType
    case "155"
    Select Case pVal.Before_Action
    case True
    select case pval.ItemUid
    case "3"
    Select Case pVal.EventType
    Case SAPbouiCOM.BoEventTypes.et_CLICK
    if pval.row = 0  Then BubbleEvent = False : Exit Sub
    End Select
    End Select
    End Select
    Regards,
    Ganesh k

  • How to disable selection parameter for a particular radio button

    hi experts,
    How to disable selection parameter(bukrs) for a particular radio button 'radio1'.

    hi,
    Check This Code (copy paste and run it ).
    U have to use MODIF ID along with the parameter.
    *----------------Option
    *---Background
    *---Summary Report
    PARAMETERS       : p_backgd RADIOBUTTON GROUP rad1
                       USER-COMMAND radio DEFAULT 'X'.
    PARAMETERS       : p_sumrep RADIOBUTTON GROUP rad1 .
    *----------------File
    PARAMETERS       : p_sumfl TYPE char255 modif id ABC  .
    PARAMETERS       : p_detfl TYPE char255 modif id ABC.
    *---------------Activate & Deactivate Screen Fields--------------------*
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_sumrep = 'X'.
          IF screen-group1  = 'ABC'.
            screen-input  = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    <b>Please Reward Points & Mark Helpful Answers</b>
    To mark Helpful Answers ;click radio Button next to the post.
    RadioButtons
    <b>o</b> Helpful Answer
    <b>o</b> Very helpful Answer
    <b>o</b> Problem Solved.
    Click any of the above button next to the post; as per the anwers
    <b>To close the thread; Click Probelm solved Radio Button next to the post ,
    which u feel is best possible answers</b>

  • How to set selected all checkboxes in all dataTable's rows?

    Hi there,
    I'm trying to perform this simple task: having a dataTable with a column containing checkboxes, how can I allow (with a button, a "super" checkbox or so) to simultaneously set selected all checkboxes in all rows?
    And - is it possible to do so without calling the submit of the page?
    Thanks to everyone!

    Yes, the paging for <h:dataTable> works pretty good, it manages the task through four methods created in the java code -- DataTable1_firstPageAction(), DataTable1_previousPageAction(), DataTable1_nextPageAction(), DataTable1_lastPageAction() -- without adding any javascript in the jsp page.
    Maybe I could test if a java script similar to the <ui:table>'s one fit also the dataTable...
    thanks

  • How to disable 'select display' on screen sharing?

    One improvement in Lion is Screen Sharings 'asking' of the current logged in user as to whether or not it is ok to share the screen.  While I understand the need for this in a multi-user environment, this is a unnecessary level of feature for most home users.  In fact, it's been a total pain and I'd like to know how to disable it.  Trying to remote support parents has become virtually impossible as they are unsure as to what it means to allow screen sharing when I attempt to connect.
    Anyone know how to disable this feaute and let Screen Sharing work as it did pre-lion?

    Apple menu > System Preferences > Sharing > Screen Sharing > Allow access for: account you want to log into
    Connect as that user.

  • How to disable selection of root node in JTree

    Hi all! Thanks for taking a minute to read my post!
    I am writing a really basic JTree for showing a list of items.
    Here is some of the code:
    /** Create a basic tree **/
    DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Title");
    DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
    JTree tree = new JTree(treeModel);
    /** Method to return the string of the current highlighted selection **/
    public String getSelectionString()
    DefaultMutableTreeNode node =
    tree.getSelectionPath().getLastPathComponent();
    return (String)node.getUserObject();
    I would like to disable selection of the root node of my JTree.
    Thus, if I make a call to getSelectionString() above, it would return null instead of the string that represents the root label.
    I have read the following forum on disabling various TreePaths and TreeNodes in a JTree:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=224691
    This forum suggests implementing the TreeSelectionListener interface and the TreeSelectionModel class and over-riding the addSelectedPath() methods. I tried this suggestion, and I was able to enable and disable the different children of the Jtree, but the root of the JTree would not disable.
    I suppose that I could just simply remove the visibility of the root node, but I really want to avoid that option if possible.
    Wait --- let me be clear ---- I want to disable the selection of the root node only - still allowing selection of all its children.
    Any suggestions?
    Am I missing something really simple here?
    Did I explain my problem clearly?
    Thanks in advance!
    jewels

    simply try this..
    in the
    public void valueChanged(javax.swing.event.TreeSelectionEvent event);
    method of TreeSelectionListener impelentation get the
    TreePath tp = event.getPath();
    from TreePath get the component and then remove the selection from the treePath if it is the node u were checking/root node in this case
    tree.getSelectionModel().removeSelectionPath(tp);
    Try out....

  • Using Report Catergory and how to Disable 'Select Range button on screen'

    Hi All,
    I am using logical Database PNPCE and I have created my own report category and I would like to disable the 'Select Ranges'
    button that shows to the right of my field for Organization Unit as I would like them to be restricted to only one entry.
    thank you,
    KW

    I have tried this in my INITIALIZATION of my program but no luck... how is there a way to accomplish this? Remember I am trying to restrict the range selection on my report category that is attached to my LDB PNPCE.
    * Define the object to be passed to the RESTRICTION parameter
      DATA lv_restrict TYPE sscr_restrict.
    * Auxiliary objects for filling RESTRICT
      DATA lv_opt_list TYPE sscr_opt_list.
      DATA lv_***      TYPE sscr_***.
    * KIND = 'A': applies to all SELECT-OPTIONS
      MOVE: 'A'    TO lv_***-kind,
      '*'          TO lv_***-sg_main,
      'NOPATTERN'  TO lv_***-op_main,
      'NOINTERVLS' TO lv_***-op_addy.
      APPEND lv_*** TO lv_restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
       program                      = sy-repid
       restriction                  = lv_restrict
    *   DB                           = ' '
    * EXCEPTIONS
    *   TOO_LATE                     = 1
    *   REPEATED                     = 2
    *   SELOPT_WITHOUT_OPTIONS       = 3
    *   SELOPT_WITHOUT_SIGNS         = 4
    *   INVALID_SIGN                 = 5
    *   EMPTY_OPTION_LIST            = 6
    *   INVALID_KIND                 = 7
    *   REPEATED_KIND_A              = 8
    *   OTHERS                       = 9
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Edited by: Keith Warnock on Jan 13, 2011 8:30 PM

  • How to disable selective cells in a column of a table?

    Hi
    I have a Table UI element having 5 columns. 4 of this are non-editable and only one is editable i.e. having input field . The data is picked from the backend. The 5th column also gets default data from the backend, which the user can later on change.
    But there is a condition, that only the input fields from that row onwards should remain enabled whose month field matches the current month. Rest all should become disabled or invisible.
    I worte the code in the wdModifyView() which picks the current date, and then in a loop it checks all the rows for the condition. If it matches the condition, it comes out of the loop, else it sets the enable property of input field to false.
    But when i run this application, all the cells become disabled, not selective cells.
    Is there a way in which I can sort this problem, any API using which i can access each cell by its row number and column number and then disable it.
    If anybody could please help, it is urgent.
    Thanks & regards,
    Anupreet

    Anupreet,
    Create a subnode with cardinality 1..1 and boolean attribute IsEnabled right under your data node. Write a supply function for this subnode, and set boolean attribute value depending on month in parentElement (parameter of supply function). Then bind InputField "enabled" property to this boolean attribute.
    VS

  • How to disable selection of  End Date depending on start Date.

    Hello,
    I have  2 DatePicker controls
    1) Start Date
    2) End Date
    When I select a start date  in  date picker depending on that  it should disable the  selection of  dates less than  Start date in End date Date Picker.
    Could anyone please provide solution for it.
    Thanks & regards,
    Viswanath

    You can always check UI5 core files and extend it. FYI, most of UI5 calendars are based on "MobileScroll" UI library, e.g.
    DateTimeInput - Mobiscroll - Demos and Examples - Date &amp;amp; Time - Date with min and max
    DatePicker - Mobiscroll 2.15.1 Documentation - Calendar
    Below you can find few extension examples:
    sap.m.DateTimeInput extend- JS Bin - Collaborative JavaScript Debugging&lt;/title&gt;  &lt;link rel=&quot;alternate&quot; type=&quot;application/jso…
    sap.m.DatePicker extend -> JS Bin - Collaborative JavaScript Debugging&lt;/title&gt;  &lt;link rel=&quot;alternate&quot; type=&quot;application/jso…
    Regards,
    Vladimir

  • How to disable selecting adjustment layers

    Hello
    When you're selecting layers directly from an image (using CTRL) you also select adjustment layers, so sometimes you have to lock this layer in order to get to the right layer.
    It would be a lot easier to manipulate many layers (usually in my case, most of them have the adjustment layer setting 'attached' to them) if i wouldn't select these 'adjustments' when I click on the canvas.
    Is it actually possible to do?
    Hope I made some sense (english ain't my native tongue ;-))
    Cheers for your reply!

    Noel Carboni wrote:
    Have you considered using the right mouse button (i.e., right-click) on the image to get a list of layers under the cursor, then selecting by name?
    -Noel
    nah, thats whats Layers panel is for, innit?
    I would like to be able to easily select layers by directly clicking on them (on canvas), which I am, but sometimes select the adjustment layer, though it only happens with the 'Exposure' one, for some reason.
    its a silly little issue, but quite annoying when you wanna manipulate your composition very quickly/easily.

  • How to disable one check box when another is checked

    Hi, I'm a first time user.
    i am trying to make text fields appar and dissapaer when check boxes are ticked. but only alow one check box to be active at one time. 
    I am making a simple form in Acrobat pro 9,
    I have two check boxes Checkbox1 & Checkbox2.
    I have two text fields Textfield1 & Textfield2
    i have added actions to checkbox1 & checkbox2 to 'hide or show' the text fields.
    Action --> on focus (checkbox1) show/hide field (textfield1) is hide
    Action --> on focus (checkbox1) show/hide field (textfield2) is show
    oposite
    Action --> on focus (checkbox2) show/hide field (textfield2) is hide
    Action --> on focus (checkbox2) show/hide field (textfield1) is show
    problem 1 - how to disable checkbox1 when checkbox 2 is ticked.
    or disable checkbox2 when checkbox1 is ticked.  
    my other problem is that this action has the same effect for ticking or unticking the checkbox.
    thanks in advance to anyone who can help.
    can you please write your answer in simple terms. Basically this is the first time i have used acrobat pro so please dont assume any knowledge at all. thansk very much .

    First, I would experiment with just check boxes and learn their properties and how they can interact.
    Have you tried using the same name for 2 check boxes and assign a different "export value" to each check box.
    Have you looked at the values a check box or boxes have when checked or un-checked?
    Have you looked at how the various actions for a field work?

  • Disable Select-Options Tabstrips

    Hi,
    Does anyone know how to disable select-options dialog box's tabstrips? Standard multiple selection dialog box comes with 4 tabstrips (single values, ranges values, excluded single values, and excluded ranges value). I would like to disable one of these tab, does anyone work with this before.
    Thanks,
    SP

    Hi Seng,
    Please use NO EXTENSION NO INTERVAL
    for further help please go through KEY word documentaion.
    Regards
    Ramchander Rao.K

  • 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 CheckBox for a Particular Condition

    Hi All,
    In my application, iam using one table having 5rows , with checkboxes,
    based on one condition i want to  make few checkboxes as default disable in the same table, and some checkboxes i shud make it as enable, so experts please help me how to disable some checkboxes.
    disable means even if we select it shud not get selected, like that is it possible,

    Hi Sushma,
    You can have one more attribute in the same node from where you are populating the table and bind this boolean attribute to the enabled property of your CheckBox.
    and by looping thriugh the table you can check for conditions and based on it set the Enability of the checkbox.
    for (int iRowsCount =0;iRowsCount < wdContext.node<name>().size();iRowsCount++)
    if (condition)
    // Disabling the Checkbox based on the condition
    wdContext.node<name>().get<name>ElementAt(iRowsCount).set<BooleanAttributeName>(false);
    Hope this helps!!
    Cheers,
    Arafat

Maybe you are looking for