What I asked for:
In your Method written in Objectscript, after
&sql(update X_X.X set LocalEnvironment=1 where %ConfigName IN('X_X_X', 'Y_Y_Y'))
Variable SQLCODE holds a success / failure code. That's what I asked for.
see this example:
https://docs.intersystems.com/iris20201/csp/docbook/Doc.View.cls?KEY=GSQL_esql#GSQL_esql_syntax_ampsql
or
https://docs.intersystems.com/iris20201/csp/docbook/Doc.View.cls?KEY=GSQL_esql#GSQL_esql_code_literals
and
https://docs.intersystems.com/iris20201/csp/docbook/DocBook.UI.Page.cls?KEY=RERR_sql#RERR_C136606
- Log in to post comments
.png)