I have a mapview , Label bind the parameter “isEdited” .
In Dashboard , available Widgets[2] bind the “mapview”, viewparameters set “isEdited”.
Bind the parameter “isEdited” to PROPS’s “isEditing”.
When I Edit or not Edit , the label always is True ,not change?
Try adding a messageHandler that does refreshBinding on the label on value change of isEditing.
For that, you can create a messageHandler on your Label_0 component and add script self.refreshBinding("props.text")
in the messageHandler.
Then, call this messageHandler on value change of isEditing.
By creating a messageHandler ,Label’s value change to the new. It’s right .
But I pass a parameter is always not active.
I think instead of creating a param in your map view, just create a custom property in the view. Remove all other code on your messageHandler and just put this code below.
self.view.custom.isEdited = payload["value"]
Then, bind your label to this custom property view.custom.isEdited.