Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6663135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:27:56+00:00 2026-05-26T02:27:56+00:00

I have a table that displays two columns from a table and a third

  • 0

I have a table that displays two columns from a table and a third with checkboxes the user can check and uncheck.

Nearby is a submit changes button, when that button is clicked I want to iterate down the rows of the table and based on the checkmark’s status take different actions. Right now the table is non-selectable.

I’ve been fiddling with this for over a day now and I’m thinking I may just have to change to an ADF multiple selection table and instead of a column of checkboxes simply allow the user to select and unselect and use the selectedrows collection to take action.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:27:57+00:00Added an answer on May 26, 2026 at 2:27 am

    I came up with a work around that isn’t too dirty. Given that at anytime you can get a set of selected rows from the RichTable object I decided I can temporarily set all rows to selected and get the selected rows set.

    WARNING: In my current application the table I’m dealing with is not set to allow selection so I don’t have to worry about clearing the selection since it gets thrown out after the refresh is completed.

        // set all rows in the table to selected so they can be iterated through
        selectAllRowsInTable( rolesGrantedAndAvailableTable );
        RowKeySet rSet = rolesGrantedAndAvailableTable.getSelectedRowKeys();
    
        Iterator selectedEmpIter = rSet.iterator();
        DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
        DCIteratorBinding roleIter = bindings.findIteratorBinding("usersGrantedAndAvailableRolesView1Iterator");
        RowSetIterator roleRSIter = roleIter.getRowSetIterator();
    
        // iterate through all rows checking checkmark status and deciding if the roles need to be granted, revoked, or no action be taken
        while(selectedEmpIter.hasNext())
        {
            // Do your stuff with each row here
        }
    

    the function for selecting all rows which I found at AMIS blogs is

    public void selectAllRowsInTable( RichTable rt )
    {
          RowKeySet rks = new RowKeySetImpl();
          CollectionModel model = (CollectionModel)rt.getValue();
          int rowcount = model.getRowCount();
    
          for( int i = 0; i < rowcount; i++ )
          {
                model.setRowIndex(i);
                Object key = model.getRowKey();
                rks.add(key);
          }
    
          rt.setSelectedRowKeys(rks);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that displays a table in two different modes. In each
So I have a list box that displays averages in a table like format
I have a webpage on my site that displays a table, reloads the XML
i have a page that displays large datasets into html tables. how can i
Many applications have grids that display data from a database table one page at
I have a field called PropertyValue in the UserProfile table that can contain information
I have a linked table in ms-access that pulls data from a mysql database.
I have a two separate tables that contain parts of user name (don't ask
I have a category table with two columns category_id and name . I have
i have two tables Table1 with columns user_name,Password and course ID and another table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.