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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

ObjectBean.getObject() returns null

VasiliyRepecki
1-Newbie

ObjectBean.getObject() returns null

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.

8 REPLIES 8

In doOperation()

{

ArrayList oidList = commandBean.getSelectedOidForPopup();

}

You can get selected objects like a string from request:

request.getParameter("selectedOids");

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

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

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

What do you mean about request/form data?

commandBean.getRequest()?

Hi,

The NmCommandBean class various methods to get the data

for eg: getSelected()

you can go through the Javadoc for the appropriate method

All methods return null. But I am trying to get VR of the objects that was checked in item picker. May be commandBean doesn't contain data about pickers?

Announcements

Top Tags