Skip to Content
avatar image
Former Member

code for retriving the selected multiple values of checkbox group

Hi

I have to display the selected checkboxs from checkbox group into a table

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 06, 2007 at 06:07 AM

    Hi Padma,

    Can you describe how you are managing your context?

    Regards

    Abhimanyu L

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 04:57 AM

    Hello Abhimanyu L,

    Can you show me how to "directly read the index of the check box and its checked and unchecked?

    Thanks and WR,

    Jane

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Read the Javadoc for CheckBoxGroup:

      " Data binding:

      The context must provide a node X with X.cardinality = 0..n and X.selection = 0..n with an attribute y. The type of y must be a simple type like String. The number of check boxes is the number of node elements, their texts are the values of attribute y, and <b>the selection of the check boxes is determined by the (multiple) selection of the node.</b>

      The property texts must be bound to the attribute y. "

      To find out the selection, check the selection of the node. See

      IWDNode.getLeadSelection()
      IWDNode.isMultiSelected(int index)

      Armin