Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
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.
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.
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
*/