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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Null value for selected ID from NMCommandBean

anabors-keating
4-Participant

Null value for selected ID from NMCommandBean

For one of requirement, I have created two tables in wizard through multicomponent config.

Out of which one table has the Action menu with event like "Validate", "Publish" and "Edit Details".

I wrote the "DefaultObjectFormProcessor" for all action event. but once i am trying to get selected object details in doOperation method. Null value returned by all getSelectedXXXX, getNMXXXXX methods of NMCommandBean.

Is it require some settings in case of multicomponentconfig?

your help on that highly appreciated

3 REPLIES 3

Hi,

I use

nmCommandBean.getActionOidsWithWizard()

This returns an array of com.ptc.netmarkets.model.NmOid

NmCommand  has many accessors 🙂

I've explored it with a debugger, to find what to call...

Regards

I tried that method too but response remain same i.e. null

I am using multicomponent config. Is it requires any settings in that?

I also tried printing commandbean.getParameterMap. In that map, I am getting value for the all table Ids referenced in wizard.

Is there any way to traverse details for table (WC Java API)?

Regards,

Strange

Each table have their own ids ( defined by setId like below ) ?

final TableConfig table;

table = factory.newTableConfig();

table.setId("myTableID");

and each component must be declared in the jsp view

<%
   ComponentDefinition cdef = (ComponentDefinition) request.getAttribute("componentDefinition");

%>

<mvc:table componentDef="${cdef}" compId="myTableID"/>

This should be enough.

Now it would be intersting to use a debugger to explore what's in nmCommandBean...

Announcements

Top Tags