Hi,
In a CDS database have a parent entity and several child entities with a 1:M relationship.
In the Canvas app in the homescreen I have Gallery1 and Gallery2. In case user clicks on Gallery1 variable is set to 1, in case user clicks on Gallery2 variable is set to 2. In both cases it navigates to screen2.
On screen2 I want to show all related records of child entity e.g. "Notes" in Gallery3. I set items of Gallery3 to this:
If(variable=1,Gallery1.Selected.Notes,variable=2,Gallery2.Selected.Notes).
This does not work as expected only see empty lines (the number of empty lines is correct though). If I set items to e.g. Gallery1.Selected.Notes everything works as expected. Also if I retype "Notes" in the formula above, it will work for a while.
Could you please let me know why it behaves like this?
Thanks