addDialogComponent( new DialogComponentColumnFilter( new SettingsModelFilterString(“m_data_column”, new String {“include column 1”,“include column 2”,“include column3”} , new String {“exclude column 1”}) , 0, true ));
The third parameter request an in-port index in DialogComponentColumnFilter() but i don’t have an In-Port. How can i use this component? I also checked the API Docs, all DialogComponentColumnFilter() need the in-port index.
I will get the data table from URL inside the node but i don’t know how to show the columns in DialogComponentColumnFilter. Like SetIncludeList(my columns) to show in the dialog.
I think you should just use a DialogComponentStringSelection, you can fill it with custom values and it is not constrained to columns in any way.
best,
Gabriel
Good day. I know this topic is a bit old but I am new with knime node development, and I want to implement the DialogComponentColumnFilter. I am having a hard time getting the columns from my input port. Can you help me with this? I want to get the list of columns from an Array list then use it on DialogComponentColumnFilter. Any advice would be very helpful.
Thanks in advance!