Conditional view

Hi All,

My app has related to field delivery in which drivers and admin can login:-

I have created Six Primary Views that are listed below:-

Active Job's -> Admin
Driver's -> Admin
Finished Job's -> Admin

Active Jobs -> Driver
Driver -> Driver
Finished Job - > Driver

Now the condition is if Admin login into the app then [Active Job's], [Driver's] & [Finished Job's ] views should be seen
and If Driver login into the app then [Active Jobs], [Driver] and [Finished Job] views should be seen.


Please help me.

Solved Solved
0 5 180
  • UX
2 ACCEPTED SOLUTIONS

You can conditionally show/hide you views by setting the below in your view definition

TeeSee1_0-1643442253740.png

 

View solution in original post

For each slice, just add another condition ANDed with your user name setting such as blelow

AND(USERSETTINGS(USER NAME)=[Driver Name], [STATUS]="Finished")

The above assumes that your table has a col named STATUS and it takes the value "Finished" (and "Pending", of course)

View solution in original post

5 REPLIES 5

You can conditionally show/hide you views by setting the below in your view definition

TeeSee1_0-1643442253740.png

 

Hi TeeSee,

The Problem of conditional view is solved.

Now I have created a slice for filtering the data of driver which is listed below

USERSETTINGS(USER NAME)=[Driver Name]

the above expression is filter the data specific to the driver but i wish to create 2 more slices

1. Pending Jobs 

2.  Finished jobs

 

Please help how do make an expression to filter the data of job sheet specific to the driver.

For each slice, just add another condition ANDed with your user name setting such as blelow

AND(USERSETTINGS(USER NAME)=[Driver Name], [STATUS]="Finished")

The above assumes that your table has a col named STATUS and it takes the value "Finished" (and "Pending", of course)

Thank you Very much Sir.

Please refer to the Attached snapshot,

In the login panel, I want to see the Save Button name as Login.

How it will be possible. Please suggestLogin Page.png

Top Labels in this Space