Outsystems 10 - List record with link :Input values not passing

Good afternoon,


I have a Record list populated by a serverAction.


Inside a link with an expression to show the value of the row and a link to run a javascript function and a screen action.




The screen action runs, but the input variable is always 0. 

The expression works well,

The javascript function works.

I just dont understand why i cant pass the input with the same value as the expression....

The input works if i put a fixed value like "2" but using  

ListRecordsAreas2.List.Current.AreaId


will result in always having 0.



Anyone can explain what i'm doing wrong?





RecordList result:


Solution

Hello Marco, 

You are checking the value with debug. Are you 'using' it? 

Because if not, the platform will optimize it and will mot really store it in the view state, causing the value to be empty server side... 

Solution

Eduardo Jauch wrote:

Hello Marco, 

You are checking the value with debug. Are you 'using' it? 

Because if not, the platform will optimize it and will mot really store it in the view state, causing the value to be empty server side... 

Thank you Eduardo. Wasted a lot of hours because of this simple issue, but I'll never forget this now :)


First time I was faced with this I also spend a couple hours trying to figure out what was happening ;)

Cheers!