Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Data View: Hide New button with "when Script" based on a property of the parent controller

I have a data view embedded in a form of another controller (parent). I work with a status in this parent controller and would like to remove/hide the NEW button of the data view based on this status, in order to set everything read-only in the parent controller form. I added the status field of the parent controller to the data view and used the "when script" functionality. Unfortunately, the data view does not know the value of the status field until I create a new entry in the data view and the NEW button is removed in whatever status the record in the parent controller is.

Is there a way to pass through the status of the parent controller to the data view for instance by an URL parameter to get the "when script" working correctly or using the "when href"?
1 person has
this question