Jul 24, 2023 03:10 PM
Hi,
I am stuck with the following (most probably simple) problem -
Could anyone pls help me on that? thank you very much - I am now trying to solve this since hours…
Solved! Go to Solution.
Jul 24, 2023 04:50 PM
Hi @Christian_L ,
Try this one and see if it works.
console.log(active_immo_tacs[0].getCellValueAsString(tac_descer));
Jul 24, 2023 04:50 PM
Hi @Christian_L ,
Try this one and see if it works.
console.log(active_immo_tacs[0].getCellValueAsString(tac_descer));
Jul 24, 2023 11:48 PM
@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
Jul 25, 2023 12:52 AM
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.