How do I set Page variable from DB when page mounted

I want to get All data that used by page , when Page mounted.

I create Page variable.
When page mounted Event, I set data to that Page variable by formula “NUMBER(LOOKUP(FIND_BY_KEY(data.JanPlace1, “id”, params.JanPraceId),“GameCost”))”

then I use this Page variable in the page.
I can’t see value…

If I set same formula to Paragraph .
I can see value.

how do I set Page variable from DB when page mounted?

Hi!

Page mounted happens before the data appears. Move the set page variable to be on the data logic canvas after the data has been set, or make a loop like this:

Screenshot 2020-11-13 at 14.10.04
(checking if data.JanPlace1 is empty and then setting page variable when it isn’t)

I can set Page variable from DB!

Thank you for helping me!

1 Like