Conditional Dropdown behaviour

Hello,

I am a bit confused about my app’s behavior.

I have 4 tables:
Clients
3X_5_b_5bd4011446cfcbc5bb011be67e1e0330d9daafc3.png
Client Sites
3X_0_c_0c0219d7a8e36a917f26cbb9900709496aa92f03.png
Client Rates
3X_7_7_772d2707219fd944af14cfa52e64b42f56faf885.png
Bookings
3X_1_e_1e391c6417c59eed486237dceab7cf2be0b0c8ed.png

The expected outcome is that, when creating a new Booking, the [Rate] dropdown will only have the [Client Rates] for the client that owns the selected [Client Site]

[Rate] from Bookings table has the following ValidIf condition:

SELECT(Client Rates[ID],[_THISROW].[Client Site].[Client]=[Client])

What actually happens is that when I select the dropdown, the list is empty.
I click New on the dropdown to add a rate but then I click Cancel.

Selecting the [Rate] again, the dropdown will have the correct values.

EXTRA: If, after selecting the Rate, I change the Client Site and then save, it allows me to do it even if the rate should be invalid.

Tried to upload a screen recording but the format is not allowed.

Solved Solved
0 9 263
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

That’s very odd. I’d call it a bug. Consider reporting it to support@appsheet.com.

As for the Valid if expression, try this:

FILTER(
  "Client Rates",
  IN(
    [Client],
    SELECT(
      Client Sites[Client],
      ([ID] = [_THISROW].[Client Site])
    )
  )
)

View solution in original post

9 REPLIES 9
Top Labels in this Space