Notifications
Clear all
Topic starter
I would like to add values. The first paragraph works. In the 2nd paragraph, I replaced a doc variable with an obs term and now it doesn't work. What am I missing?
{!if OBSNOW("fahri7") == "" then document.rhitotal = "" else
document.rhitotal = val(document.rapid1) + val(document.rapid2) + val(document.rapid3) + val(document.rapid4) + val(document.rapid5) + val(document.rapid6) + val(document.rapid7)
endif
}
{!if OBSNOW("fahri7") == "" then OBSNOW("RHITOTAL1") = "" else
OBSNOW("RHITOTAL1") = val(document.rapid1) + val(document.rapid2) + val(document.rapid3) + val(document.rapid4) + val(document.rapid5) + val(document.rapid6) + val(document.rapid7)
endif
}
Posted : August 6, 2017 5:51 am
To add a value to an obsterm: ObsNow("ObsTerm",strNewValue) not ObsNow("ObsTerm")=strNewValue.
Nobody ever accused MEL of being symmetric, logical.
Posted : August 6, 2017 7:06 am