Number 3 is on the View as parameter (int)
Then number 41 is expression based on this number
Then Number 839 expression based on 41
Then Number 2638 expression based on 839
Here is my expression for number 41. And once 41 number is working all other numbers are working as they are linked together.
Expression for number 41: This way is working in chrome, but not in designer.
I am assuming that the id_Line is a URL parameter. These will be a string value at run time. In the designer you have to manually set them, and so I’m guessing you just typed in the number 3 which was converted to an integer.
This is why the expression with string literals works in chrome but not the designer. Because 3 is not equivalent to ‘3’
2 options:
Use string literals (quotation marks) when entering the value in the designer so the designer knows the value is a string.
Use toInt() in your expression to convert the parameter to an integer type.
It’s just an factor for DB query to pick the right tables.
So in my opinion, 3 is an int. So in both cases this option should work. But it working in designer preview but not in chrome.
This may be your opinion, but it doesn't change the fact that anything passed through the URL can only be a string.
Your expression works in the designer because when you just type in the number 3 the designer converts it to an integer. In chrome the parameter is a string and so your expression returns through the false path. In this case -1.
In the designer change the value of id_Line to '3' and change the expression to this: