I have a custom node which get the table's column name from a previous node. I want to use this columns name in both "NodeModel .java" and in "NodeDialog.java". So far I could get the column names in "NodeModel .java" without any issue. However, I am not yet able to do the same for "NodeDialog.java". The reason is that I want to use one of the column name from previous node as default value in the "NodeDialog.java".
Thanks a lot. Now I can get the column names inside the "NodeDialog" and store them in my defined "ColumnsArray". Unfortunately the "ColumnsArray" values still doesn't show up in the configuration dialog.Only the default values of "ColumnsArray" show up in the configuration dialog. Here part of the code:
public class VizDataConfiguratorNodeDialog extends DefaultNodeSettingsPane {
private static final String[] ColumnsArray= new String[] { "a","b"};
Mmmh, haven't tested myself, but maybe simply invoke `org.knime.core.node.defaultnodesettings.SettingsModelString.setStringValue(String)` in the `loadAdditionalSettingsFrom` method? (keep the settings model, which you instantiate in the constructor, as a field)