<Method name="saveConditionSet">
<ClassMethod>1</ClassMethod>
<FormalSpec>conditionSet:HL7Conditions.ConditionSet1</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set sC = conditionSet.XMLExportToString(.exportStr)
set %session.Data("conditionXML") = exportStr
//every time the condition set is saved, something has changed in
it,
// and the
//cached query terms (the serialqueryform), if in session, has
just
// been invalidated
//(it needs to keep up with the form)--> thus: invalidate it:
do ..removeCachedSearchTerms()
quit $$$OK
]]></Implementation>
</Method>
<Method name="removeCachedSearchTerms">
<ClassMethod>1</ClassMethod>
<ZenMethod>1</ZenMethod>
<Implementation><![CDATA[ set %session.Data("serialQueryForm") =
"empty"
]]></Implementation>
</Method>
For your second request, I don't believe that it is possible, as the
javascript methods are on the client, and the zen methods are on the
server.
(the client can call to the server, but the other way around is more
difficult/not built in; but if there are counter-examples out there I
would definitely like to see them)
-Jill
-- Dale du Preez Support Advisor Dale.d...@intersystems.com +1 (617) 621 0700 Please CC sup...@intersystems.com with regard to any active problems so that you can receive assistance should I be unavailable.
>Hi Jill,
>I'm assuming that
the code you sent below comes from some sample you have. I believe that the 2nd
method doesn't need to be a ZenMethod. Am I right?
Yes, it comes from code I’m working on; and that method doesn’t have to be a zen method
Also, from Dale:
Ø It's possible to call some javascript in a Zen Method using &js<>, but I don't think this is quite what you are looking for.
When I tried the above method, I got the text inside the &js< > to print out to the screen; certainly not the affect that I was looking for.
--Jill