Items inside List has default values after Notify

Items inside List has default values after Notify

  

Hi!

I have a weblock in every row of a ListRecord. This weblock launches a notification message every time an input inside it is changed, which is catched on the top page, and saved in a local variable of list type.

But when a second notification arrives, the list on the page where the results were stored has an element (the first notification) but is empty  . If I generate a third notification, the list will have two records, and the records are empty.

Why? How do I make the values added to the list be maintained?

I attach an screeshots of the catching action in the parent page showing this:

Solution

Hi Carlos,

In general, the most likely cause for that behaviour (missing values) is that those values are not used. Optimisations done by OutSystems will make values that are not used as null or empty in the debugger.

Cheers,

José

Solution

You are completely right!

We were implemented only the firs step in were we store the changes un weblocks, but we had not yet implemented use this values, so as you say, Outsystems optimizes the list and put all values to default value. I've make a server action in which I use the data list, and now the list is correct with his values.


Thx a lot!

No problem.

Glad to help.

Cheers,

José