Help me to get selected object Ids from search table to wizard table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Help me to get selected object Ids from search table to wizard table?
I need to add an actions on the "search_table_actions_toolbar". User can select multiple objects from the search results page and click "MyAction" and this should open a wizard page with a table showing all the selected objects with some details. I want to know how to get all the selected objects in wizard table while building the data for that table using buildComponentData(). I searched all the methods available on ComponentConfig , ComponentParams as these are the only parameters passed on this method.
Could someone help me on this.
- Labels:
-
General Customization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
The key is to cast the ComponentParams parameter to com.ptc.jca.mvc.components.JcaComponentParams
Then you'll have access to more things, like the NmHelperBean :
Object buildComponentData(ComponentConfig componentConfig, ComponentParams componentParams) {
JcaComponentParams jcaComponentParams = (JcaComponentParams)componentParams;
NmCommandBean nmCommandBean = jcaComponentParams.getHelperBean().getNmCommandBean();
// The selected items :
ArrayList nmoids = nmCommandBean.getSelectedOidForPopup()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thanks a lot. this works fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
can you please mark the answer as correct.
It will help others to find correct answer.
Regards,
Kaushik
