#accessing storeValue depending on currentIndex

1 messages · Page 1 of 1 (latest)

crystal cairn
#

Hi! I am trying to change the text color of a cell from a table (date). It should change depending on true or false. True is when the difference between the date from the cell and the current date is bigger than 7 days.

For every row I storeValue with true or false with the name of the stored valued ending in the rows index.

So if I have 6 rows I woud have storedValue1, storedValue2 and so on. (storedValue could be any name)

I am having some problems accesing the stored value later. I can't seem to concatenate the row index with appsmith.store."storedValue"+currentIndex

Can anyone help?

floral flowerBOT
#

Hey There,

We've registered your query, and our team will get back to you soon.

Regards,
Pranav

#

Hello! Please give us some time to look into this issue. Could you please also
let us know what Appsmith version you are using?

crystal cairn
#

sure, Appsmith Community v1.9.1

floral flowerBOT
crystal cairn
#

I think my problem is related to incorrect syntax, new version will not fix this. I don't think this is a bug

floral flowerBOT
#

We also had some bugs related to Appsmith store and the storeValue method that
have been fixed in the later versions, so that’s why I recommend you update
first.

crystal cairn
#

Okay we have updated appsmith to the latest version

#

we still have the same problem

jaunty hollow
#

I think the syntax you're looking for is: {{appsmith.store['importance'+currentIndex]}}

floral flowerBOT
#

Hey @crystal cairn, @jaunty hollow's suggestion is correct. Could
you give it a try?

crystal cairn
#

we solved the problem, thank you @jaunty hollow @floral flower