Hello everyone,
I'm looking for a way to retrieve the result of the ZW command in a global, is this possible?
Hello everyone,
I'm looking for a way to retrieve the result of the ZW command in a global, is this possible?
Hello everyone,
I am looking for the syntax or the way to use a class created in the "BNA" Namespace (my application) from the %SYS Namespace.
Here is the context:
I have a "BNA" application contained in the "BNA" NS, this application provides a user creation functionality. This feature creates both the user in a table in the application and in the Iris system.
Hi,
Our application needs to create system users from a request form.
To use Security classes, it is necessary to have rights to use the %SYS namespace, which is not the case for users who validate requests.
It is not desirable for these users to have this role permanently, so I proceeded as follows:
I created a facade class for the Security.Users, Security.Roles, Security.Resources classes which allows me to log in with an authorized user on the NS %SYS
Here is an example method:
If Iris does propose to create keys following a sequence, how can we obtain a sequential number in another context?
In my case, I automatically create care centers, and I want to set them a number like:
APP-DD-999
APP = Name of the application used by the center
DD = center department number
999: sequential number in the department
It is of course possible that centers will be created in competition, so this possible competition must be managed.
My first approach was to use a persistent class and create a new object to retrieve its id, but this involves creating as many classes as departments.
I want to get a persistent object property type in objectscript and I don't find how to do this.
Can someone help me ?
Hi,
I don't found how to get params send by a GET REST query (not in url but by request param).
this is config of the call in postman
I try to get %request.Data, doesn't work : Data is undefined
I try to get %request.GetCgiEnv("Data"), doesn't work, return ""
I do ZW %request and see that my parameter is present in cgi parameters, but I don't now how to access it.
Hi,
For a REST application, when a user connects, I have to write a message in an application log.
The login is processed by the /login routine by default.
How can I add a process to the login process?
Is there a callback ?
Should I create a login method in my class that extends %CSP.REST ?
I'm not sure and can't find information in the documentation ?
I try this (not working) :
<Routes>
<Route Url="/lists" Method="GET" Call="GetLists" />
<Route Url="/me" Method="GET" Call="GetUserInformations" />
<Route Url="/changePassword" Method="PATCH" Call="ChangeUserPassword" />
Hi,
I try to initialize some properties of a %DynamicObject during his creation.
I Try to use InitialExpression this way :
Property refDate As %Date [InitialExpression = $piece($horolog,",",1)];
But it doesn't compile
I don't found if %DynamicObject can have a constructor to initialize properties by a calculated value, like other languages.