Could you clarify what your expectation is?
Did you assume that this.State will update automatically when this.Budge or this.ResourcePlanningOK change? No, this would not work. You still need to call the function explicitly.
Or are you saying that this.State doesn't change even after calling set_state again (after data changes)?
An alternative design would be to use the code below as a sh:values rules at the State property:
(focusNode.Budget > 0 &&
focusNode.ResourcePlanningOK == true) ? '1_OK' : 'NOK2'
Then any request of this.State would be
dynamically computed from the expression above, including the
Forms, JavaScript and GraphQL queries.
Regards,
Holger
--Kind regards, Richard
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/5d76d937-ce91-46ea-a953-ac56b31de87bo%40googlegroups.com.