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 All
I have a MVC table in a wizard that displays a list of CAD Components. In the same wizard, I have a combo box which when changed has to change the components.
Example, let say the combo box is a filter for parts and assemblies. When I select Parts in the combobox, the table should reload and display only the parts and vice versa.
Any ideas how it can be done? I'm unable to build the table based on the value selected in the combobox.
Solved! Go to Solution.
The requirement was achieved using the below lines in jsp(under the combobox index changed function)
var params = { filter : prt };
PTC.jca.table.Utils.reload('CustomTableBuilder', params, true);
The parameters can be read in the Builder class
@Override
public Object buildComponentData(ComponentConfig con, ComponentParams param) throws Exception {
JcaComponentParams params = (JcaComponentParams)param;
String filter = params.getHelperBean().getNmCommandBean().getTextParameter("filter");
}
The requirement was achieved using the below lines in jsp(under the combobox index changed function)
var params = { filter : prt };
PTC.jca.table.Utils.reload('CustomTableBuilder', params, true);
The parameters can be read in the Builder class
@Override
public Object buildComponentData(ComponentConfig con, ComponentParams param) throws Exception {
JcaComponentParams params = (JcaComponentParams)param;
String filter = params.getHelperBean().getNmCommandBean().getTextParameter("filter");
}