Question

Not able to set value in data table by using column name

  • 7 February 2022
  • 7 replies
  • 38 views

Badge +4

Hello, I am trying to insert a data in data table using set value of a single cell by using column name and row record value.

 

Added insert row before set value, but getting the below error. Earlier the same was working, am not sure what causing the issue now. Please assist me.

 

image.png 

image 


7 replies

Userlevel 3
Badge +7

Hi @Madhumitha Sakthivel​ ,

 

Sorry, what I meant to say was to only pass in a row number (1,2,3...).

 

Kind Regards,

Ashwin A.K

Userlevel 3
Badge +7

Hi @Madhumitha Sakthivel​ ,

 

The Row By Index Field is expecting a Number which is why you are running into that error.

Could you try providing a number and try once more?

 

Kind Regards,

Ashwin A.K

Badge +4

Hello @Ashwin A.K​ 

Thanks for the response

 

Tried number in Row by Index getting below error.

image

Badge +4

No problem..

 

Getting Column name not exists.. Attached my Insert row command details also.

 

Checked the column name, its valid.

 

image 

image 

Tried column by index number, got below error.

 

image

Userlevel 3
Badge +7

Hi @Madhumitha Sakthivel​ ,

 

The error message states that the indexing ends at 11, so please pass in 11.

 

Also, if you want to check if your DataTable contains the right headers, download the Java FX Package and use the Show Table Action.

 

Kind Regards,

Ashwin A.K

Badge +4

Did the changes, Same error is coming @Ashwin A.K​ .Let me check Java FX Package. I am using community edition, is it allow to import package ?

Userlevel 3
Badge +7

Yes you can import packages into Community Edition.

 

Kind Regards,

Ashwin A.K

Reply