How to make check box mandatory.

Kindly help , how can I make a checkbox UI mandatory and have the corresponding label the mandatory * sign.

Hi Atanu,
the documentation doesn't show the required-property for the checkbox. That should explain why the required sign isn't shown.
But it can simply be added manually:
label.addStyleClass('sapUiLblReq sapUiLblReqEnd');
Greets,
ben

Similar Messages

  • HOW TO MAKE CHECK BOXES EXCLUSIVE IN MULTI ROW BLOCK

    Hi,
    I have a multi row block with one item as check box.It is
    required that at a time only one record can be marked as
    selected through this item. If user marks a record as selected
    the previous selected record should be marked as deselected.
    How i can make these check boxes mutually exclusive ?
    can anybody help me?
    Thanks in Adv
    Sharath.
    null

    SHARATH (guest) wrote:
    : Hi,
    : I have a multi row block with one item as check box.It is
    : required that at a time only one record can be marked as
    : selected through this item. If user marks a record as selected
    : the previous selected record should be marked as deselected.
    : How i can make these check boxes mutually exclusive ?
    : can anybody help me?
    : Thanks in Adv
    : Sharath.
    Hi
    The check box can not be mutually exclusive.
    This is a basic functionality.
    You convert this item type into radio button.
    It will satisfy your requirements.
    Jeya Raman R
    null

  • How to make check box as checked by default thru personalization

    Hi,
    I tried to make the check box to be checked by default, but i can't find the "Initially Checked" property in the personalize page.
    Its not there, only "Initial Value" property available.
    Tell me how to do that by personalization.
    Thanks in advance,
    SAN

    San,
    I don't think through personalization it is possible, may be try extending the controller and get the handle of the item, and set the value in the ProcessRequest.
    Thanks.
    With Regards,
    Kali.
    OSSi

  • JTree - How to make Check box as cell editor?

    Dear Swing developers,
    I am planning to make a editable JTree with each node having a JCheckbox. I am kind of stuck at defining the cell editor, any suggestion?
    thanks
    -jay

    take the answer there :
    http://www.mutualinstrument.com/Easy/FAQ/Tree/tree.html

  • How to make Business place mandatory

    Hi, SAP Gurus,
    How to make business place mandatory in "MIRO ". As i know there are two ways
    1) Through Screen Variant T/code: SHD0
    2) Validation
    But here  i Never worked on sreen variant level and validation, I need step by step to make business place mandatory in MIRO
    bY USING ABOVE T/CODES,
    Regards,
    Prabhakar

    Hi Bhanu,
    Use T.Code GGB0 - Validation maintenance - Change Validation overview.
    Choose Financial Accounting in Application area. Select Line Item and click Validation create icon.
    Give a Validation ID BP and text Business Place Mandatory and save.
    Click Step icon - Step 01 - now the prerequisites; check and message will come in margin panel.
    Give text for the step 01. Click Prerequisites. You can see the Table Fields  Structure BKPF, BSEG, and SYST.
    If you double click on this you view individual fields relating to these master tables.
    Your prerequisite may be like this :
    Company Code is = XYZ ; T.Code = MIRO & F-43; Posting key = 31 ( Credit Vendor)
    Double click BKPF > double click  BKPF-BUKRS>  click "=" >  click constant > a pop up box will open
    here fill up your company Code XYZ.  This will automatically come in the top box.  Click "AND". Now  there is a back arrow
    button in the table field panel and come back to the original display of master tables.  Here double click SYST
    Click SYST-TCODE > click "=" > click Constant > in the pop up box enter tcode MIRO. If you want to add F-43,
    you have to click "AND" after this and repeate SYST-TCODE = F-43. Now click back arrow and double click BSEG and
    click BSEG-BSCHL > Click "=" > Click Constant > in the popup window enter 31 and save the prerequisites.
    (For the above requisites, the system will check if  Business Place is 1000 is filled up during transaction and if not it has to
    give a error message.)
    Now Click Check in the right margin below prerequisites menu. Again the table list will be seen with BKPF, BSEG and SYST
    Double click BSEG > click BSEG-BUPLA > Click "=" > Click constant and in the pop up box fill the business place 1000 and save
    the check menu.
    In the right margin now double click message.  Here you can create a message text of your own "Business Place mandatory"
    Save the Message and come back and finally save the Validation so created.
    Now use T.Code OB28 and enter your Company Code > give call point 2 > and Activation level 1 and save the entries.
    Now you can check for the transaction in MIRO where without filling the Business Place field you cannot save the entries.
    Hope the above steps will be clear for you.  If you have any doubt please revert back.
    Best Regards,
    Sadashivan

  • How to make characteristic as Mandatory

    Dear All,
    In Batch Management, for a class, how to make particular characteristics as a "Required Entry".
    In class, I can see "Required Entry" check box, but it is greyed out. How to make it as Mandatory.
    Because, we have maintained "LOBM_HSDAT" characteristic for a class.
    But while doing MIGO and MB1C, it is not asking to Manufacturing date.
    Please let me know how to make it as mandatory field in a Class.
    Regards,
    Mullairaja

    Not sure this would help you but you can try,
    In t.code CT04, enter the characteristic LOBM_HSDAT and click on change button. Go to basic data tab. Check the box required entry, which you can find on the right hand side and then save. Test again. You must also test in t.code MSC1N apart from MIGO.
    MullaiRaja, I must take a step back. The above solution proposed will not hold good for MIGO. To force the user to enter the manufacturing date/expiry date, then in material master ->Plant data/Stor.1 view, maintain the settings for min.shelf life, total shelf life and Period indicator for SLED. If these data are maintained, then when the user does MIGO and if there is no batch master already maintained, then the system will force the user to enter the manufacturing or expiry date.
    Regards,
    Edited by: Shiva Ram on Jan 5, 2011 11:27 AM

  • How to add check box in SAP B1 grid controls..

    hi all,
    Anyone know how to add check box in SAP grid control?
    It will be great if you could show me some sample code.
    thanks.
    regards,
    sohch

    Hi Sohch,
    1. First of all you should define the Column in a matrix as it_CHECK_BOX. Like
            oColumns = oMatrix.Columns
            oColumn = oColumns.Add("chk_YesNo", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
            oColumn.TitleObject.Caption = "YesNo"
            oColumn.Width = 60
            oColumn.Editable = True
    2. Bind it with a DBDataSource as defined
            oColumn = oColumns.Item("chk_YesNo")
            oColumn.DataBind.Bind("UDTable", "U_YesNo")
    3. Make Sure that the value that is being put into the Database is either 'Y' or 'N'.
    Hope this Helps
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan

  • How to make a field mandatory in billing

    How to make a field mandatory in billing document,if m right with the help of incomplition log but how.....
         plz reply the full configuration.

    Hi Mohan,
    We normally create a billing document with reference any other document say Order or delivery.
    so, all the necessary information in the invoice will be taken from preceeding doucments. Thats way in the order level we check for incompletion log. If any important data is missing in the order level then the succeding documents will not be created.
    Thats way in the billing documents all the necessary information will come automatically either from preceeding documents or from master data.
    Still you want to make any field mandatory, you can do these by modifieing Billing documents user exists,you can make which ever the fields are mandatory and to be checked before saving. so when you are going to save the invoice, it will check if these fields are maintained or not.
    Hope this is clear.
    Reward if helpful.
    Thanks,
    Praveen

  • How to make a checkbox mandatory

    Hello,
    I created  a checkbox where I want the user to check that they have read and acknowledged a privacy statement.
    I am curious how I make the checkbox mandatory, as I dont see an option in the Object Pallete.
    Thanks in advance!
    Nik

    Write the following line code on initialize event of the CheckBox to make it mandatory.
    this.mandatory = 'error'
    Nith

  • How to make a filed mandatory of an editable ALV

    Hi Guru,
    Pls tell me how to make a filed mandatory of an editable ALV so that while a new records is inserted the mandatory fields are filled.

    hi,
    You can make fields as mandatory fields using data changed event.
    validate the entered or blank entries of a column in data changed event and call method 'add_protocol_entry' to raise errors.
    Check the program : BCALV_EDIT_03 & BCALV_EDIT_04for more details.
    Refer to this link....
    about field in alv
    obligatory field editable in ALV

  • Make check box disappear

    In a selection screen, how do i make check boxes disappear for a specific tcode.
    does this code work below:
    loop at screen.
    if tcode = ' xyz'.
        if screen-name = 'CHK1'.
           screen-input      = 0.
           screen-invisible  = 1.
           modify screen.
       endif.
    endif.
    endloop.

    Hi,
    you can try this code:
    *specify the parameter of your checkbox.
    PARAMETER : p_check AS CHECKBOX.
    * Event at screen PBO
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-NAME = 'P_CHECK'   "Check the screen name
        AND sy-tcode = 'SE38'.       "Check for your t-code
          screen-invisible = 1.      "if satisfy, set the invisible on
          MODIFY SCREEN.             "and modify the screen properties
        ENDIF.
      ENDLOOP.
    Have a nice try

  • How to print Check Box in smartform

    HI,
      How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
    Thanks
    Raghavendra

    hi,
    u can print a check box in different ways.. by inserting symbols and making window as check box..
    once go through the thread u will get to k now differnt ways
    putting checkboxes in smartform?
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • How can multiple check boxes be added at one time to a form?

    How can multiple check boxes be added at one time to a form?

    Thanks for your response, but copying and pasting creates a link. If the user places a check mark in one of the boxes, all the rest of the boxes will have a check mark also. I will research this some more.
    Carol Deatherage
    Receptionist
    Novar/Honeywell
    1000 SE 14th Street
    Bentonville, AR 72712
    Office:  (800) 341-7795
    Fax: (479) 271-0657
    [email protected]<mailto:[email protected]>
    Your feedback is important to us! Please take a moment to rate this response.
    Click Here to Access the Survey<https://www.surveymonkey.com/s/NovarSurvey>!
    This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately.
    Novar Confidential ***

  • How to insert check box fields in a htmlb: tableview

    Hi,
    Can anybody tell me how to insert check box fields in a htmlb: tableview in a sequence of rows in a table view. How to generate the sequence no for the checkbox inorder to know the row that is checked.
    Thanks in advance,
    Aruna.

    Here is the code which has the custom "Checkbox" in the tableview & Triggers the event. <b>You can identify the checkbox based on cell ID (p_cell_id)</b> in the method "IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START" & Based on the event name + Cell ID. Look at the code & let me know if you any issue.
    <b>Layout:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "design2002+design2003"
                   controlRendering = "SAP"
                   rtlAutoSwitch    = "true"
                   forceEncode      = "ENABLED" >
      <htmlb:page title="Test " >
        <htmlb:form>
          <%
      data TV_ITERATOR Type Ref To zcl_itr.
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id              = "fligts"
                           headerText      = "Flight"
                           width           = "100"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "10"
                           fillUpEmptyRows = "true"
                           showNoMatchText = "true"
                           filter          = "server"
                           sort            = "server"
                           onHeaderClick   = "MyEventHeaderClick"
                           table           = "<%= APPLICATION->itab %>"
                           iterator        = "<%= ITERATOR %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Event Handling:</b>
    DATA: EVENT_ID1 TYPE REF TO IF_HTMLB_DATA.
    EVENT_ID1 = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    CASE EVENT_ID1->EVENT_SERVER_NAME.
    IF NOT event_id1 IS INITIAL.
       if event_id1->server_event+0(9) = 'chkevent'.
      SPLIT event_id1->server_event AT '-' INTO v_event v_dummy v_row v_col.
      endif.
    endif.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
         CLEAR p_column_definitions.
        CLEAR p_overwrites.
        DATA: tv_column  TYPE TABLEVIEWCONTROL.
        tv_column-COLUMNNAME  = 'FLDATE'.
        tv_column-edit        = 'X'.
        tv_column-sort        = 'X'.
        tv_column-TITLE               = 'Flight Date'.
        tv_column-WIDTH  = '100'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CONNID'.
        tv_column-TITLE               = 'Conn.ID'.
        tv_column-WIDTH  = '70'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CHECKBOX1'.
        tv_column-TITLE               = 'Check Box'.
        tv_column-WIDTH  = '30'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
    endmethod.
    METHOD IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
           DATA: L_EVENT TYPE STRING.
      CASE P_TABLEVIEW_ID.
        WHEN 'fligts'.
          CASE P_COLUMN_KEY.
            WHEN 'CHECKBOX1'.
    *          CONCATENATE 'chk_event' '123' '2323' INTO L_EVENT SEPARATED BY '-' .
    CONCATENATE 'chkevent' p_cell_id INTO l_event SEPARATED BY '-'.
              P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
            ONCLICK = L_EVENT CHECKED = 'false' ).
          ENDCASE.
      ENDCASE.
    ENDMETHOD.
    Hope this will solve your problem.
    <b><i>* Reward each helpful answer.</i></b>
    Raja T
    Message was edited by:
            Raja T

  • How to insert check box value in table?

    Hi all
    kindly help me how to insert check box value in database. what code i have to use as i am new in programing.
    thanx in advance

    Hi,
    There is no "Check box" in a table, a check box is a GUI (Graphical user interface) item.
    What you want is to store a boolean value in a table. For that you can use the varchar2(1) datatype and store Y or N. (or anything else)
    (you cannot define boolean as a datatype for a column).
    If you're using a front-end application like apex then it might be useful for you to read the documentation about chekc boxes :
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/check_box.htm#CHDDFBFH
    (for the rest if it's Oracle Forms then everything is already said).
    Edited by: user11268895 on Aug 17, 2010 10:44 AM

Maybe you are looking for

  • Spry Validation issue.

    I'm trying to use spry validation to have some informative text disappear from a text area when the user clicks on the text area. Attached is my code. What am I doing wrong?

  • About Blackberry Curve 9380 Battery Warranty

    Hi, I have bought a BB Curve 9380 from Sharaf DG 4 U (Mirdiff Centre, UAE) dated 30-06-12. The phone is dead now as a result of a faulty Battery. I went to the Customer Service at Sharaf DG 4 U today and they are saying that there is no Blackberry wa

  • Including JQuery Plugins

    Hello together, I have some troubles with JQuery Plugins. What is the reason that some simple JQuery Plugins work with Edge Animate and some not? For example, I am trying to include the Plugin Foggy to create the blur effect. there is just one way to

  • Error Downloading Quicktime For Windows

    I receive this error at the end of my download of this program, "error writing to file: c:\programfiles\quicktime\qtsystem\quicktimecapture.resources.\de.\proj\quickti mecapturelocalized.qtr" I cant update my Iphone and need to know what to do...

  • I can't get the sound to come through my headphones

    The sound on my computer is working just fine but when I plug my headphones in, the sounds still comes through my computer. I know it isn't the headphones because I have tested them on other devices and they work fine.