Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

getCellValue on filtered Object error

Topic Labels: Automations
Solved
Jump to Solution
1426 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Christian_L
6 - Interface Innovator
6 - Interface Innovator

Hi,

I am stuck with the following (most probably simple) problem -

836DF5F2-78DE-485E-AFD8-ECDA5D1C6FE9.png

  • I am getting a records list of a table
  • I am filtering the list acc to 3 criteria (name, type, date) 
  • this all works fine, I log a correctly filtered object in the console
  • then I want to get the value of the column with the name „tac_descr“ (variable set at the beginning of the script) of the found object/row.
  • This should be done in the „active_descr“ definition
  • Pls see the error in the console; no clue what is wrong; I have the correct object filtered (active_immo_tacs) and I just want to display the cell value of the column „tac_descr“ of „active_immo_tacs“. 

Could anyone pls help me on that? thank you very much - I am now trying to solve this since hours…

1 Solution

Accepted Solutions
Sho
11 - Venus
11 - Venus

Hi @Christian_L ,

Try this one and see if it works.

console.log(active_immo_tacs[0].getCellValueAsString(tac_descer));

 

See Solution in Thread

3 Replies 3
Sho
11 - Venus
11 - Venus

Hi @Christian_L ,

Try this one and see if it works.

console.log(active_immo_tacs[0].getCellValueAsString(tac_descer));

 

Christian_L
6 - Interface Innovator
6 - Interface Innovator

@Sho This is it! Thank you so much - especially for the super fast reply.

If I may add: why is this working now? The only difference to what I did, is that you add "[0]" to the variable "active_immo_tacs". Would you have an explanation or refence to that where I can read in to avoid such issues in future? thank you again, br Chris

Sho
11 - Venus
11 - Venus

I'm glad you solved the problem!
I think it would be helpful to learn how to handle arrays and objects in Javascript.

"all_tacs" and "active_immo_tacs" are arrays containing record objects.
The getCellValue function can only be used on record objects in this array.
Therefore, specify [0] in the "active_immo_tacs" array and use the getCellValue function on it.