How to remove NEW when order status is Complete

In my version of Order Capture, I want to remove the add new order detail when order status is complete. Where can I find those settings to edit?

This is controlled by the system generated ADD action fo that child table.

To see system generated Actions. navigate to Actions in the Behaviors tab, scroll to bottom and click link to “Show systems actions”. See image.

Then go to the list of actions for your table. My table was for Products. In your case it looks like it’s the Order Details table.

Then adjust the expression for the “Only if this condition is true” property in the Action.

2 Likes

Thank you very much

It works, though I’m using this formula that is getting rid of the ‘New’ even on order status is open.

[Order Id].[Order Status] = “Open”

Any formula that would preserve the ‘New’ when order status is open?

  1. Make a slice of the child table, include all columns, and disable Adds.
  2. Make a new VC in parent table, copy the REF_ROWS() expression from the “Related Order Details” column, or whatever you renamed it, but point it at the new slice.
  3. Toggle visibility between the two VCs above based on [Order Status]
4 Likes

I apologize!

@Marc_Dillon is correct. I answered a bit hastily and overlooked that this action is not a row-level action (see image below). I knew this at one time but had forgotten it.

The message “not a row level action” means that you do not have access to column information. So, you will not have the ability to hide/show the Action based on the parent info - since you can’t access it.

@Marc_Dillon 's suggestion is a great workaround!

2 Likes

Thank you

Thank you. I have made the slice and new VC. #2. I don’t seem to know how to point the REF_ROWS() expression the new slice. Also can you explain more on how #3. to toggle visibility between two VCs based on [Order Status]?

To point to you newly created Slice, simply replace the datasource name in the REF_ROWS() function. See the image below for the location.

To toggle between the two VC’s, insert an expression into the Show_If property of each VC.

In the VC that shows when the Order is still active use something like: [Order Status] <> "Closed" or whatever the name of your closed status is. I am suggesting <> assuming you have several active status’

In the VC that is to show when the Order is closed use [Order Status] = "Closed"

Where to insert Slice name in REF_ROWS()
Screen Shot 2020-04-13 at 8.30.56 AM

2 Likes