Or can I change namespaces within one connection object?
Working on wrapping an IRIS Cache ObjectScript method that runs for a few seconds. Trying to get UI updates to show BEFORE the method runs in an async/await function. But it seems to be running synchronously rather than asynchronously . So my question is does IRIS/ObjectScript CSP pages support futures with JavaScript or does it run all synchronously.
I am trying to catch an exception and write it to the Application Error Log, but cant find any details on how to do this in IRIS health.
Catch ex { Set logger = ##class(%Logger).%GetLogger("MyApp") Do logger.Error($ZError) }
Cant seem to find the %Logger class either.
I am trying to create users who only have `%SQL` Role for the INSTANCE. But I am unable to find any documentation on the `
See:
// Instantiate the Security.Users object Set userObj = ##class(Security.Users).%New() // Set the username and password Set userObj.Name = userName Set userObj.FullName = userFullName Set userObj.Namespace = "USER" Set userObj.Roles = "%SQL" Set sc = userObj.ChangePassword(passwd) // Save the user to the database Set ss = userObj.
I am doing a form POST to myself (same class) and when I do the form action it gets a page similar to the error page but just says:
Invalid action
There is nothing in the application error log. How can I troubleshoot this?
I recently started trying out Python in IRIS, but now I get this message repeated over and over again:
^Sources is not setup so hooks will not work
No idea where this came from and how it started. Any suggestions?
I am trying to get the value of a Submit button on a CSP object page.
<input type="Submit" value="Assign" name="action" id="action">
I tried getting it thru $GET(%Request.Data("action")), but it throws an Undefined error. Isnt $GET supposed to handle it if its undefined anyway?
How do I get the "value" of the button pushed when the form is set to POST?