Skip to main content
1-Visitor
June 6, 2014
Question

ObjectBean.getObject() returns null

  • June 6, 2014
  • 3 replies
  • 3354 views

HI.

I set for my table setRowBasedObjectHandle(true)

But in FormProcessor.doOperation(...) method ObjectBean.getObject() returns null.

What should i do to get not null data from wizrd table?

Thanks.

3 replies

1-Visitor
June 11, 2014

In doOperation()

{

ArrayList oidList = commandBean.getSelectedOidForPopup();

}

1-Visitor
June 19, 2014

You can get selected objects like a string from request:

request.getParameter("selectedOids");

1-Visitor
June 19, 2014

Hi,

you can use

commandBean.getSelectedOidxxxx(); depending upon the page from where you are calling in a wizard

see the following link in your dev box

http://localhost/Windchill-WHC/index.jspx?id=WCCG_UICust_ConstructWizards_WizardProcess&action=show

There is a diagram to explain

WizardProcessing_SelectObjects.png

1-Visitor
June 20, 2014

But if I want to get selected objects in the class that extends TreeDataBuilderAsync (not xxxFormProcessor). Is it possible?

1-Visitor
June 20, 2014

Hi,

Just try this

in the buildComponentData

NmHelperBean localNmHelperBean = ((JcaComponentParams) params).getHelperBean();

NmCommandBean nmCommandBean = localNmHelperBean.getNmCommandBean();



NmHelperBean localNmHelperBean = ((JcaComponentParams) params)



getHelperBean();


NmCommandBean nmCommandBean = localNmHelperBean.getNmCommandBean();

From the nmCommandBean, you should be able to get the request/form data

Sorry for the format. When I cut and paste from eclipse, it is behaving like this