Order capture app - disable Add action when order is closed

Hi! I'm trying to make an app for capturing orders. I have Orders table, which has an Order status column and Order details table which holds all items from all the orders. I want to disable the system action Add when the order is marked as Closed.  I've set its Only if this condition is true value to 

 

[Order ID].[Order status] = "Open"

 

but the action is unavailable even when the order is Open

Zrzut ekranu 2022-07-05 143300.jpg

 

How it looks like:

Zrzut ekranu 2022-07-05 143438.jpg

How it should look like:

Zrzut ekranu 2022-07-05 143613.jpg

 

Solved Solved
0 2 159
1 ACCEPTED SOLUTION

Steve
Platinum 5
Platinum 5

The Only if this condition is true expression or the Add action does not have access to column values of the current row, so you won't be able use it as you want. Instead, consider disabling the system-provided Add action and creating your own of type App: go to another view in this app with a Target expression that uses LINKTOFORM(). The action won't display in the same place, but it will allow you to do what you want.

View solution in original post

2 REPLIES 2

Steve
Platinum 5
Platinum 5

The Only if this condition is true expression or the Add action does not have access to column values of the current row, so you won't be able use it as you want. Instead, consider disabling the system-provided Add action and creating your own of type App: go to another view in this app with a Target expression that uses LINKTOFORM(). The action won't display in the same place, but it will allow you to do what you want.

Thank you! I didn't think about it, it worked.

Top Labels in this Space