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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

How to add checkboxes in table column?

VasiliyRepecki
12-Amethyst

How to add checkboxes in table column?

Hi.

I need to add columns with checkboxes for my wizard.

Wizard tree:

tree.setRowBasedObjectHandle(true);

ColumnConfig in ComponentBuilder:

ColumnConfig paperConfig = factory.newColumnConfig("columnId", false);

paperConfig.setComponentMode(ComponentMode.EDIT);

paperConfig.setDataUtilityId("myCheckboxDataUtility");

tree.addComponent(paperConfig);

GuiComponent in DataUtility:

AttributeGuiComponent guiComponent = new BooleanInputComponent();

((BooleanInputComponent) guiComponent).setStyle(BooleanInputComponent.Style.CHECKBOX);

Then i try to get data in FormProcessor, but ObjectBean.getChecked() method returns map with null key and null element in the list only.

Can anyone say where is an error or offer another solution?

Thanks.

3 REPLIES 3
KD
12-Amethyst
12-Amethyst
(To:VasiliyRepecki)

Hi ,

Try to use this class "com.ptc.core.components.rendering.guicomponents.CheckBox"

Thanks,

Kaushik

VasiliyRepecki
12-Amethyst
(To:KD)

no difference

BooleanInputComponent.Style.RADIOBUTTON and ObjectBean.getRadio() works.

BooleanInputComponent.Style.COMBOBOX and ObjectBean.getComboBox() works.

BooleanInputComponent.Style.CHECKBOX and ObjectBean.getChecked() does not work.

Why?

Announcements
Top Tags