Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Web Experience Factory 8 Documentation WebSphere Portlet Factory 7 Documentation WebSphere Portlet Factory 7.0.1 Documentation Custom Search Scope...
Search
Community Articles > FAQs > How do I add a check box or radio button column to a data table?
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Kevin Tapperson
Contribution Summary:
  • Articles authored: 13
  • Articles edited: 9
  • Comments Posted: 3

Recent articles by this author

WebSphere Dashboard Framework Tutorials Feature Sets

This article contains the WebSphere Dashboard Framework Tutorials Feature Sets.

Managing SSL certificates used for publishing in the WEF Designer

This article describes how to manage SSL certificates used for publishing by the WEF Designer.

Diagnosing JMX publishing problems with WebSphere Portlet Factory

This article provides information on diagnosing problems with the JMXbased publish configurations in WebSphere Portlet Factory

How do I use the Transform builder?

Here is an example of using the Transform builder to map from one schema to another.
Let's assume a source schema like this:
{code:} Smith John
222 Main ...

How do I retrieve generated values from a SQL insert or update operation?

SQL provides the ability to retrieve the entire table of modified data following an insert/update/delete operation. For insert and update operations, you can use a syntax like this: {code:} SELECT * FROM NEW TABLE (INSERT INTO SCHEMA.TABLE_NAME (UNIQUEID, NAME, DESCRIPTION) VALUES ((SELECT ...

Community articleHow do I add a check box or radio button column to a data table?

Added by Kevin Tapperson | Edited by IBM contributor Rob Flynn on December 23, 2009 | Version 4
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: FAQ

To add a check box column to a data table:

You can use a Data Column Modifier builder to insert a new column in the data table. In the Data Column Modifier, use the Add Columns input to add a new column.



Then use a Data Field Modifier builder to alter the new field and present it as a check box. In the Data Field Modifier, change the Field Behavior input to Data Entry and change the Control Type field to Check Box.



This will result in a new field being added to the data variable for each row of data. This is the desired effect for a check box - each row can have its own independent value for the check box.


To add a radio button column to a data table:


The process is similar, but there is one important difference. Usually, when a radio button column is added to a table, the desired effect is to keep only a single value (single selected row) for the entire table. This is a bit different than the check box behavior.


Again, we can use a Data Column Modifier builder to insert a new column in the data table. In the Data Column Modifier, use the Add Columns input to add a new column.



Then add a Variable builder to contain the value for the selected row of the table.



Use a Radio Button builder to place a radio button in the new field. The Value input for the Radio Button builder should use the LoopVar variable for the table and point to a column in the data that provides a unique ID for the row.

The Selected Value input for the Radio Button builder should point to the Variable created by the Variable builder described above.



An Action List should be created to handle the form submission. This Action List needs to assign the value of the selected radio button from the form inputs into the variable that contains the selected row.




The attached models provide a sample for each case.

  • Edit
  • More Actions Show Menu▼


expanded Attachments (2)
collapsed Attachments (2)
Edit the article to add or modify attachments.
File TypeSizeFile NameCreated On
application/octet-stream 14 KB RadioButtonSample.model 3/4/09 11:26 AM
application/octet-stream 16 KB CheckBoxSample.model 3/4/09 11:26 AM
expanded Versions (4)
collapsed Versions (4)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (4)Dec 23, 2009 11:45:47 AMRob Flynn  IBM contributor
3Dec 23, 2009 11:44:06 AMRob Flynn  IBM contributor
2Dec 23, 2009 11:40:28 AMRob Flynn  IBM contributor
1Mar 4, 2009 11:28:36 AMKevin Tapperson  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • BlogsIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use