Two LINKTOVIEWS on the same table?

Afternoon all,

Please advise if it is possible to have each row below open a different view?

I have two actions set up:

One for: Sort (A-Z)
called goto_floorplan_codes
LINKTOVIEW(“Floor Plan (codes)”)

One for Sort (1-9)
called goto_floorplan_levels
LINKTOVIEW(“Floor Plan (levels)”)

I’m using the Gallery View here to keep with the look and feel of the rest of the app.

I am able to get this working for one of the LINKTOVIEWS but not for both.

.
.
.
I currently have this set up (which works) on a detail page (straight from the thumb menu) but it is not consistent with the look and feel of the rest of the app.

Thanks in advance…

Solved Solved
0 2 242
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

You need only a single action that chooses the navigation target according to the column value of the row the user taps, then make the action the Row Selected event action for the gallery view.

SWITCH(
  [label-column],
  "Sort (A-Z)",
    LINKTOVIEW(“Floor Plan (codes)”),
  "Sort (1-9)",
    LINKTOVIEW(“Floor Plan (levels)”)
)

Replace label-column with the name of the table’s label column.

View solution in original post

2 REPLIES 2

Steve
Platinum 4
Platinum 4

You need only a single action that chooses the navigation target according to the column value of the row the user taps, then make the action the Row Selected event action for the gallery view.

SWITCH(
  [label-column],
  "Sort (A-Z)",
    LINKTOVIEW(“Floor Plan (codes)”),
  "Sort (1-9)",
    LINKTOVIEW(“Floor Plan (levels)”)
)

Replace label-column with the name of the table’s label column.

Thanks @Steve,

Works perfectly!

I didn’t realise an action could be just an expression!

That’s a very handy trick and I’m sure I’ll find other uses for that too.

Many thanks once again…!


.
.

Top Labels in this Space