Skip to main content
1-Visitor
May 21, 2017
Question

Oids for all the rows in the table

  • May 21, 2017
  • 2 replies
  • 1919 views

I have a table in wizard page. I have actions menu on the table. When I click of the actions on the table, I need to get all the oids from the table. I don't need to have to set the setSelectable(true) as I need all the rows from table. How to do this?

ArrayList a1 = paramNmCommandBean.getActionOidsWithWizard();

When I use this it returns only the parent oid and not all the rows inside the table.

Appreciate your help in this.

2 replies

1-Visitor
August 7, 2018

Hello

 

You can use the below code to get all the added items in the table. 

//Get all items of table initially selected from the opener 

ArrayList a1 = paramNmCommandBean.getActionOidsWithWizard();

//Get all the added items from a collector

HashMap<String,List<NmOid>> allAddedItems = paramNmCommandBean.getAddedItems();

 

Then add the return List<NmOid> to the a1. 

 

 

 

16-Pearl
August 9, 2018

I think we can use "getAddedItemsByName" to get all the oids in the table. for example, List<NmOid> addedItems = commandBean.getAddedItemsByName(AddToCollectionHelper.ADD_TO_COLLECTION_TABLE_ID);

 

The  getAddedItemsByName function OOTB comment is as below:

 /**
 *
 * Will return the list of NmOids which were selected for addition from the component defined by the component name
 * <code>param_name</code>. <BR>
 *
 * @param param_name
 * The name of the component which the items were added to. (for example: table ID)
 *
 * @return a list of oids that are added from the component.
 *
 * <BR>
 * <BR>
 * <B>Supported API: </B>true
 *
 * @return List
 */