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?

0 8 382
8 REPLIES 8

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.

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]

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!

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()
2X_8_806252674061591d2c1ee164d9268abf64062caa.png

Top Labels in this Space