Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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.
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
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?