Re: Dynamic screen reference in Navigation possible?
Hi IanN,
The trick here is that you need to pass the screen as an object instead of just using the name. The post you found shows an example on how to do that.
1) Create a collection that has a mapping from screen name to screen object. For example:
ClearCollect(Screens, { Name: "Screen1", Target: Screen1 }, { Name: "Screen2", Target: Screen2 }, { Name: "Screen3", Target: Screen3 })
You can set the above when the first screen loads, i.e. Screen1.onSelect
2) Set your onSelect action to:
Navigate(Lookup(Screens, Name = OtherTablesGallery.Selected.TableRef, Target), None)
Hope this works for you!
Irina