Multiple Checkbox Selection should not be not be allowed

Hi,
I have 4 checkboxes in a region ( based on transient attributes).
I do not want the user to select more than one at any given time. How can I achieve this ?
Would I need to write code in each setAttribute method for each attribute to check if the others are checked as well or is there another way ?
Thank you
Shanky

Try Setting PPR for every Checkbox to make the other checkbox to become disable when one checkbox is checked.

Similar Messages

  • PO RELEASED IT SHOULD NOT BE ALLOWED TO AMMEND

    Sir,
    once po is released it is should not be allowed to edit.
    how can i configure this
    regards
    amey

    Hi Amey,
    Once PO is released it cant be Changed it can be done by doing the following setting in SPRO.
    SPRO>Material Management>Purcahsing->Purchase order->Release procedure for purchase order--->Define release Procedure for the PO
    In this Release Stategy config there is option called Release indicator
    where in we have to define a release ID and this release ID ( Eg A ) has to be given 1 cannot changeable in the feild in chagble--for the allowing no changes in PO after release and then we have to go to release Strategy option we can select the release strategy we want the change and in the Strategy
    click on the release status and in this status we can give the ID defined earlier ( at which level what effect should come)
    hope so it helps
    regards
    Anjanna.

  • Inventory in storage bins should not be allowed to go negative

    Hi
    Inventory in storage bins should not be allowed to go negative?
    Regards
    Vivek

    you can uncheck the "Allow negative stock" for the combination of warehouse and the storage type.
    Path is-
    SPRO > Logistics execution > Warehouse management > Stock removal startegies.
    Then select your strategy.
    Check out if it helps.
    Regards,
    nilesh

  • Production Order Usage Probability should not be allowed to change after GI

    Dear Gurus,
                  pls tell me how to do this ,Production Order Usage Probability should not be allowed to change after Goods Issue (GI) done against Prod Order . pls tell me procedure or any UserEXit for this.
    Thanks in Advance,
    Regards,
    Dev

    Hi,
    Can you elaborate little bit more?
    Regards,
    Sankaran

  • Zero quantity should not be allowed for STO delivery

    Hi,
         zero quantity should not be allowed for STO delivery.
         when i create a delivery for a STO it should not allow zero quantity
         can someone throw some light.
    Alec

    Hi,
    Please maintain the "B - Create Delivery with qty greater than Zero" in Part.dlv./item  in shipping tab page of the customer of site.
    more briefly: in WB02 --> click on the customer of the site --> Shipping Tab page --> Maintain B (Create Delivery with qty greater than Zero)
    Regards,
    Srini

  • Multiple checkbox selection in ALV and updating internal table

    Dear Expert,
    Can anyone tell me how to handle the multiple checkbox selection in ALV Grid report and then updating the internal table.
    I tried the option but it works only when i select only 1 row in ALV.
                    DO L_LINES TIMES.
                      read table icoas index rs_selfield-tabindex.
                      if sy-subrc = 0.
                        ICOAS-NOCHK = 'X'.
                        modify ICOAS INDEX rs_selfield-tabindex TRANSPORTING NOCHK.
                      ENDIF.
                    ENDDO.
    Requires help....
    Regards & Thanx,
    Bhupathi.

    Hi,
    Use this method to capture the check box event. Write this once you create your grid using CREATE OBJECT grid1.
    DATA:      GRID1 TYPE REF TO CL_GUI_ALV_GRID,
    CALL METHOD grid1->register_edit_event
      EXPORTING
        i_event_id = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED
      EXCEPTIONS
        ERROR      = 1
        others     = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      LOOP AT T_GRIDDETAILS INTO WA_GRIDDETAILS.
        IF WA_GRIDDETAILS-CHECKBOX = 'X'.
                  "Do your operation
        ENDIF.
        CLEAR WA_GRIDDETAILS.
      ENDLOOP.

  • User should not be allowed to login 2 times to an application from same m/c

    Hi Everyone,
    I have to find all possible solutions to below problem:
    Problem: User should not be allowed to login 2 times to an application from same machine.
    Steps to produce the problem:
    1) User 1 logins to application.
    2) User 1 tries to login with different credentials from same machine.
    3) User 1 should be presented with a message that he cannot login from same machine using 2 browsers.
    4) User 2 tries to login to application with credentials of user 1. System should now display an alert to both users on System 1 and System 2 of this conflict.
    Please share your thoughts regarding above problem.
    Thank you
    Edited by: rishab.garg on Feb 25, 2009 10:53 PM

    When a user logs in to application flag it in database. Irrespective of client machine and browser when another user tries to login using same user id you will be able to identify that easily using stored flag against the user id.
    If you want to distinguish between client machine for displaying different messages you can easily do this by comparing client IP address. To obtain client IP address use:
    request.getRemoteAddr();Note that getRemoteAddr() might return last proxy machine's IP address (in case proxy is used) instead of client's machine. In that case you may consider using cookie (though using cookie is not a great idea).
    Thanks,
    Mrityunjoy
    Edited by: mrityunjoy on 28 Feb, 2009 11:43 PM

  • BOM editing should not be allowed while creating P.O./ Scheduling agreement

    BOM editing should not be allowed while creating P.O. / Scheduling agreement

    Hi,
    I think that when you create a subcontracting PO it READS the valid BOM, so there's no locking. From a business point of view you need to question such a requirement, since in SAP you can have many kinds and types of BOMs. Then what if one of the BOMs is open in change mode (edited) exactly when you try to create the order? It should not allow you to create the order? Why?
    Regards,
    Mario

  • How to identify multiple checkbox selected in JSF

    Hi All,
    My scenorio is.
    I am diplaying records on page using <h:dataTable>
    I have one column in dataTable which contains checkboxes which I displayed as,
    <h:selectBooleanCheckbox id="abc" />
    Also I have button on page.
    I want to select 2 check boxes & then click onto button then that 2 records should get deleted.
    how to identify that 2 checkbox selected ?
    can anybody help ?
    Thanks
    Sandip

    Hi BalusC
    Thanks for your reply.
    Is there any other approach to do this ?
    because as per your approach my code will not work because you are using seperate bean.
    If i try to compare your code with my code then I have to do changes in my entity bean which is not possible.
    So is there any other way ,
    If I want select more than 1 checkbox & delete those records of selected checkboxes .
    i.e. I want to find which checkboxes selected on JSP page sothat I will get those selected value on Java side & will delete that record from java side.
    Please help.
    I am not finding any solution to this.
    If any code then it will be a great help for me.
    Thanks
    Sandip

  • Re-extraction should not be allowed in J2i5

    Hi friends,
    I have this business requirement that data should not be re-extracted once the extraction is done
    in J2I5 .
    I did not find any  User_exit or BADI for the same .
    Can anybody suggest me how can i go about it.?

    You can copy the program to a Z program and check whether the excise registers are already extracted with the given date or not.
    You can make use of Last extraction date button on the input screen to validate the data on the input screen.
    Regards,

  • QM system has expired, MIGO should not be allowed

    HI All,
    If the vendor QM Sytem has expired ,then the sytem should not allow posting of goods receipt (MIGO) by using the functionality of Quality Info record or any other methods of control like vendor master or purchasing info record.
    Please provide your valuable suggestions
    Thanks & regards,
    rajesh

    The QM system is only designed to control the creation of the PO against vendors with the specifiied QM system. 
    If you want to block receipt at the time of MIGO, you will need to use a MIGO user exit to do a check against the vendor's QM system to verifiy it ihas not expired since the purchase order was created.
    FF

  • Sales Order item should not be allowed to modify after doing PGI.

    Dear all SAP experts,
    When i create a sales order say for 10 pieces. Now I have created the delivery for all the 10 pieces & also created the invoice.
    My requirement is when i create a delivery for all 10 pieces then after doing the PGI the system should make the sales order line item & qty "grey" - I should not be able to change the sales order item in any respects.
    If not from delivery then when i save the invoice for that sales order then I should not be able to modify the sales order item & qty.
    With best regards,
    Allabaqsh G. Patil

    Hi
    I think there can be a problem in copy control
    In copy control at item level, in teh item category, ensure that the field "Update document flow" and the Pos/neg quantity are properly updated.
    Update document flow shoudl be ticked on
    Pos/neg quantity should be positive.
    Before doing this , check teh document flow of the sales order. Do the same after doign this configuration. Note the difference.
    This will solve your problem

  • PR derelease should not be allowed after  PO creation

    Dear Friends
    I have created a PR, released , then PO is created with reference to PR. After that I came back to me54n and cancel the PR release. As per our Business Practice it should not allow to cancel the PR release after PO creation.
    I have maintained message 06 076/06 400 and 06 608 as error message.
    The changeability indicator is also maintained as '1' against the release indicator'2'.
    I don't want to go for any Badi implementation or user exit. Is there any solution in standard SAP
    Thanking you
    Tapan

    Even I tried this testing but it seems like not working. I this is standard SAp behaviour. 
    Check this OSS notes 493900
    1. Question :
    Why can I modify a purchase requisition although I set the changeability of
    the release indicator to '1' ('Cannot be changed')?
    Answer :
    The purchase requisition is not modifiable via a purchasing transaction
    like ME52 or ME52N. But it is possible to change the purchase requisition
    from any other external application like sales order, planned order,
    maintenance order or network.
    The Changeability functionality only concerns the purchasing transactions.
    This is intended and a new release strategy determination takes place if
    there is a modification of the data in the external application.
    But logically why the user is cancelling the PR after PO creation? Even if they cancel the PR it doesnt impact the PO which is already created. Even if they cancel and re release the PR and try to create a new PO, system wont allow you to create new PO stating that PR is already ordered. Even though it looks strange but it doesnt harm the procurement.

  • User should not be allowed to change plant in SO once PR/PO is created

    Hi SAP Gurus,
    User has created the Purchase Request & Purchase Order for a sales order line item. After PR/PO creation user is able to change the plant. We need to stop that is there any standard configuration or setting by which i can stop the user to change the plant.
    System is giving the error if i am trying to delete the item since the PO exist but not stoping me to change the plant.
    Thanks
    Surender

    Hi,
    Standard setting is not available.You need to write the specific code in Sales order change exist by checking the VBEP -schedule line table where the PR exists.so for the line item the Plant should not be changeable.
    Sales Order Change exit the following requirement has to be incorporated.
    You can find the user exits in SPRO-Sales and DistributionSystem ModificationsUser Exits--User Exits for Order Processing.
    Regards,
    Saju.S

  • Checkbox selected : row not rendering

    I am not able to set colors for the row that has checked checkboxes. I want to set red color for the row having
    checked checkboxes and green for unchecked.
    table.getColumnModel().getColumn(3).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),Name));
    table.getColumnModel().getColumn(3).setCellRenderer(new CustomTableCellRenderer3());
    setcellEditor:
    package moxaclient;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JTable;
    public class CustomTableCellRenderer extends DefaultCellEditor implements ItemListener{
    private static final long serialVersionUID = 1L;
    private JCheckBox checkBox;
    private JTable table1;
    private int row;
    private int column;
    Object abc="null";
    private String Name;
    Component comm=null;
    public CustomTableCellRenderer(JCheckBox checkBox,String name2) {
        super(checkBox);
        this.checkBox = checkBox;
        this.checkBox.addItemListener(this);
        this.Name=name2;  
    public Component getTableCellEditorComponent(JTable table, Object value,
            boolean isSelected,int row, int column)
        Component comp = super.getTableCellEditorComponent(table, value, isSelected, row, column);
        this.row = row;
        this.table1=table;
        this.column = column;
        checkBox.setSelected((Boolean)value);
        return super.getTableCellEditorComponent(table, value, isSelected,row, column);
    public void itemStateChanged(ItemEvent e)
       this.fireEditingStopped();
        //System.out.println("Item Changed " + row + " value is: " + checkBox.isSelected());
         //System.out.println("Item Changed " + column + " value is: " + checkBox.isSelected());
          String Sensor =(String) table1.getValueAt(row, 0);
          Double Value =(Double) table1.getValueAt(row, 1);
          String Date =(String) table1.getValueAt(row, 2);
          Boolean select=(Boolean) table1.getValueAt(row,3);
           if (Boolean.TRUE.equals(select))
            abc += Sensor+"\t"+Value+"\t"+Name+"\t"+Date+"\t";
            // table1.set Background(Color.black);
            //  checkBox.setBackground(Color.red);
              // comm.setBackground(Color.red);
        Clientthread ct=new Clientthread(abc);
    package moxaclient;
    import java.awt.Component;
    import java.util.EventObject;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JTable;
    import javax.swing.event.CellEditorListener;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    public class CustomTableCellRenderer3 extends DefaultTableCellRenderer {
    JTable table1=null;
    DefaultTableModel model;
        public CustomTableCellRenderer3() {
            // TODO Auto-generated constructor stub
        public CustomTableCellRenderer3(JTable table,DefaultTableModel model1) {
            this.table1=table;
            this.model=model1;
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
             Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
             Boolean last=(Boolean)model.getValueAt(row,3);
                       if(last)
                             //setcolor dosent work here
                    return null;
    }Edited by: 1000637 on Apr 17, 2013 5:29 AM

    I suggest first trying to get cell renderers to work as expected before going onto cell editors. See Using Custom Renderers in the Swing tutorial for basic information on how to use cell renderers. That said, subclassing DefaultTableCellRenderer won't do if you want to display a check box, because DTCR is a JLabel but you need to return a JCheckBox as cell renderer component. To get you startet, here is a simple demo for a custom JCheckBox based renderer:import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableCellRenderer;
    * Demonstrates how to create a custom boolean table cell renderer.
    public class BooleanRendererDemo {
       * Creates and displays a sample {@link JTable} with a customized boolean
       * table cell renderer.
      private void start() {
        // create a table with sample data
        final JTable jt = new JTable(new MyTableModel());
        // configure the renderer for boolean values
        jt.setDefaultRenderer(Boolean.class, new MyBooleanRenderer());
        // boiler plate code necessary for displaying a Swing GUI
        final JScrollPane jsp = new JScrollPane(jt);
        jsp.setPreferredSize(new Dimension(480, 320));
        final JFrame frame = new JFrame(BooleanRendererDemo.class.getName());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(jsp);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main( String[] args ) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            (new BooleanRendererDemo()).start();
       * A customized table cell renderer for boolean values.
      private static final class MyBooleanRenderer implements TableCellRenderer {
        private final JCheckBox jcb;
        MyBooleanRenderer() {
          jcb = new JCheckBox();
          jcb.setHorizontalAlignment(JCheckBox.CENTER);
        public Component getTableCellRendererComponent(
                final JTable table,
                final Object value,
                final boolean isSelected,
                final boolean hasFocus,
                final int row,
                final int column
          final boolean state = value != null && ((Boolean) value).booleanValue();
          if (isSelected) {
            jcb.setForeground(table.getSelectionForeground());
            jcb.setBackground(table.getSelectionBackground());
          } else {
            jcb.setForeground(table.getForeground());
            // check if the renderer should display the last column
            // if so, use custom background colors depending on the cell value
            final boolean last = table.getModel().getColumnCount() == column + 1;
            if (last) {
              jcb.setBackground(state ? Color.GREEN : Color.RED);
            } else {
              jcb.setBackground(table.getBackground());
          jcb.setSelected(state);
          return jcb;
       * Dummy table model with nonsense sample data.
      private static final class MyTableModel extends AbstractTableModel {
        public Class getColumnClass( final int columnIndex ) {
          return columnIndex < 2 ? String.class : Boolean.class;
        public int getColumnCount() {
          return 4;
        public int getRowCount() {
          return 4;
        public Object getValueAt( final int rowIndex, final int columnIndex ) {
          if (columnIndex == 3) {
            return (rowIndex % 2) == 1 ? Boolean.TRUE : Boolean.FALSE;
          } else if (columnIndex == 2) {
            return (rowIndex % 2) == 0 ? Boolean.TRUE : Boolean.FALSE;
          } else {
            return "Dummy";
    }To customize cell editors, work through the JTable tutorial (and maybe take a quick look at DefaultCellEditor's OpenJDK sources).

Maybe you are looking for