I've been struggling all afternoon,
I'm trying to get a watcher expression to trigger a function but not sure It will work from another form.
Scenario:
form A
{fn functionA()}
form B
observation applicable to functionA()
I'm trying to load a watcher function into form A that will trigger functionA() every time the observation from form B is changed.
best I have is:
{cmPrapareBasics(!OBSNOW("SDHHCADNTCRE"))}
and
{if OBSNOW("SDHHCADNTCRE") == "" then cmPrapareBasics() else cmPrapareBasics() endif ""}
both fail.
please help
This
{cmPrapareBasics(!OBSNOW(“SDHHCADNTCRE”))}
should be
{!cmPrapareBasics(OBSNOW(“SDHHCADNTCRE”))}
But ideally you should put cmPrapareBasicss in a function library and then call the library from any form that needs that function (or any other function you might put in the library).