Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Disable function if condition. Show according status.

Hi,

 

This is my first ever app. 

It should show that station is not available if someone is checked in and also not allow to check in. 

As of now it allows check in and shows that is available all the time. Any solutions?fitcrates_0-1729682417668.png

Solved Solved
0 4 153
2 ACCEPTED SOLUTIONS

Aurelien
Google Developer Expert
Google Developer Expert

Hi @fitcrates 

I don't see the relation between your question and the expression you provided later.

This one looks more like an expression for conditioning any update to the table according to the user logged, as you can set it here:

Aurelien_0-1730097355605.png

For your need described here:


@fitcrates wrote:

It should show that station is not available if someone is checked in and also not allow to check in.


At looking to the template app "Workstation Tracker", there is a condition that makes sense:

Aurelien_3-1730098018111.png

I just tested it, it seems OK. 

Don't you have this condition anymore?

 

View solution in original post

Sorry, it seems like I answered in a wrong topic. Had few opened. This is solved by "AND([Occupied]=false,
CONTEXT("ViewType")=Detail)" 

As you mentioned. 

View solution in original post

4 REPLIES 4

Hello, did you solve the problem?

I did this: 

SWITCH(USEREMAIL(),
"xx@flixstock.com", "UPDATES_ONLY",
"me@flixstock.com", "ALL_CHANGES",
"READ_ONLY")

 

Can't verify if it works as app is not deployed, but I think it should work.

Aurelien
Google Developer Expert
Google Developer Expert

Hi @fitcrates 

I don't see the relation between your question and the expression you provided later.

This one looks more like an expression for conditioning any update to the table according to the user logged, as you can set it here:

Aurelien_0-1730097355605.png

For your need described here:


@fitcrates wrote:

It should show that station is not available if someone is checked in and also not allow to check in.


At looking to the template app "Workstation Tracker", there is a condition that makes sense:

Aurelien_3-1730098018111.png

I just tested it, it seems OK. 

Don't you have this condition anymore?

 

Sorry, it seems like I answered in a wrong topic. Had few opened. This is solved by "AND([Occupied]=false,
CONTEXT("ViewType")=Detail)" 

As you mentioned. 

Top Labels in this Space