Get dimension of input table

Hi guys,

I would like to ask for your opinion on advices on how to get the dimensions of input data and then reflect it on the dialogue. Currently, using JAVA to develop a node but having a hard time doing this feature. For example, I would like to show the number of rows or number of columns of the input data on the dialogue of the node that I am developing.

Thank you in advance.

Regards,
Gambit

You are probably aware of the various nodes that do extract specifications from tables and columns?

2 Likes

Hi @mlauber71 ,

Yes, however I am using JAVA now. Is there a way for this feature?
Thank you in advance.

Regards,
Gambit

Hi @Gambit

Nodepit website provides a link to the Java source code at the end of each node explanation:

Extract Table Dimension — NodePit

In this case:

Hope this helps.

Best

Ael

3 Likes

Hi @aworker ,

Good day. It is possible to make a static text of the dimension of input table on the dialogue even before executing it? because currently I need to execute the node first before it reflects on the dialogue. What I would like to do is it will immediately reflect on the dialogue even before executing the node itself.

Thanks in advance.

Best regards,
Gambit

1 Like

Hi @Gambit,

If you extend knime-core/DataAwareNodeDialogPane.java at master · knime/knime-core · GitHub you can access the input table in the dialog.

best,
Gabriel

2 Likes