cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Oids for all the rows in the table

anabors-keating
4-Participant

Oids for all the rows in the table

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 2

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
     */
Announcements

Top Tags