- Log in to post comments
Using my previous reply you can do this without need of any custom object:
SAMPLES>read xml
<?xml version="1.0" encoding="UTF-8"?> <session> <session_Id>124364</session_Id> </session>
SAMPLES>set rdr=##class(%XML.Reader).%New()
SAMPLES>do rdr.OpenString(xml)
SAMPLES>zwrite
%SAX=1
%SAX(1)=2
%SAX(1,0)=""
%SAX(1,1)="1" ""
%SAX(1,2)="!>A"
%SAX(1,"N","http://www.w3.org/2001/XMLSchema-instance")=1
%SAX(1,"d")=4
%SAX(1,"d",1)="session"
%SAX(1,"d",2)=" "
%SAX(1,"d",3)="session_Id"
%SAX(1,"d",4)=124364
%SAX(1,"n")=1
%SAX(1,"n",1)="http://www.w3.org/2001/XMLSchema-instance"
%SAX(1,"v")=6
rdr=<OBJECT REFERENCE>[1@%XML.Reader]
xml="<?xml version="1.0" encoding="UTF-8"?> <session> <session_Id>124364</session_Id> </session>"
SAMPLES>- Log in to post comments
edited and simpler
- if this has an XMl header <?xml version= ...
- then ##class(%XML.Reader).OpenString(yourxmlstring) will deposit your input in the local aray %SAX()
- Log in to post comments
%BuildIndices is required if the indexed values are manipulated directly in the Global.
OR if the index definition is changed in Class or By DDL
during use as Object or SQL table it is maintained automatically.
- Log in to post comments
- for a NEW created index this is "work in progress" that shouldn't be used until completed.
- if it's a matter of repair $SYSTEM.OBJ.ValidateIndices() might be more useful.
see my article Fix broken index
- Log in to post comments
Hi @Ben Spead !
My personal congratulations to see you here!
Working with you and your team on the worldwide HERMES project was one
of my highlights during my time at InterSystems.
It was due to your interpersonal skills to make this team so successful.
It was so special to me to participate and share this experience.
As a Sales Engineer with no local office I often felt "at the outer border of the milky way".
Not lost in space but almost.
But working in your team gave me the feeling of a "technical home".
As Engineer I enjoyed to style and create a product.
Which was more important to me than to consult, advice, and teach how to use some features.
Big THANKS for that!
Robert
- Log in to post comments
from class documentation:
You can import files exported in
- XML format,
- %RO format,
- CDL format,
- UDL format,
- %GOF,
- and CSR/CSP files.
You should do an export of one of this types and then see
how this may match your .vm thing.
Your screenshot is definitely some XML
But it doesn't match any formatting structures or rules required in IRIS or Caché.
- Log in to post comments
another hack:
- create an SQL Procedure in SMP
- once compiled use Test Feature in SMP to execute it
Example:
CREATE PROCEDURE ANY.NAME()
LANGUAGE OBJECTSCRIPT
{
;;; fill in whatever you want to do
}- Log in to post comments
or over SQL using OEX package SQL-for-ERRORS-Global
- Log in to post comments
I just gave it a try:
- an 8-bit DB works with code and globals without problem on a UNICODE (16bit) installation
- I didn't try CSP pages
- in ns %SYS you have a utility ^GBLOCKCOPY converting a 8bit DB to a new 16bit DB for a DB conversion
- Log in to post comments
According to docs
processing 8-bit on a unicode install should be possible
,,,, while a Unicode instance can process both 8-bit and 16-bit data.
It's anyhow a tricky exercise
- Log in to post comments
- in OEX you find 13 matches for SWAGGER already
- and 6 articles in this forum
simply search
- Log in to post comments
do LOG^%ETN
does an actual snapshot and you my examining the actual content at that point of time in SMP
- Log in to post comments
This docu on Cached Queries may be an explanation of what you identified
- Log in to post comments
- how do you identify 2 cached queries generated at the same time?
- and if so, what is the difference ?
- Log in to post comments
object code is just binary content.
not even debugger can decipher it.
I've never seen a decompiler (like for java) the last 25 years.
- Log in to post comments
- in SMP > System Explorer > SQL you place your query and tab SHOW PLAN tells you the best approach with lowest cost
-
.png)
- As any data in IRIS (Caché,...) are stored in Globals B+Tree structure always applies by design.
- Log in to post comments
Hi @Daniel Aguilar
This looks pretty much like my case:
https://community.intersystems.com/post/docker-start-iris-community20241-preview-fails-repeatedly
if your processor doesn't fit the requirements this applies also to Docker images.
- Log in to post comments
Basically every SQL statement whether internal or external is cached for eventual reuse in future
You can find Cached Queries from SMP > System Explorer > SQL > Cached Query.png)
clicking on one in the list you get the details.png)
Tab SQL Statements shows much more details.png)
Click on SQL Statement Text offers a further drill down into details.png)
- Log in to post comments
Typical mistakes with ODBC access over Windows DSN
- ODBC driver old version
- 32bit driver on 64bit installation or vice-versa
- not created & tested as System DSN
- user / password / namespace mismatch
- wrong configured TLS/SSL access
- Log in to post comments
How can I run this from my Win 11 + Desktop Docker ?
it actually fails, issue is reported https://github.com/grongierisc/iris-flask-template/issues/1
- Log in to post comments
How can I run this from my Win 11 + Desktop Docker ?
it actually fails, issue is reported https://github.com/grongierisc/iris-django-template/issues/1
- Log in to post comments
How can I run this from my Windows 11 Docker Desktop ?
install fails. https://github.com/grongierisc/iris-fastapi-template/issues/1
- Log in to post comments
http://<server>:<port>/csp/......
refers to the private webserver installed and used in past releases
- Log in to post comments
check if your external webserver listening to 8080 is started at all
- Log in to post comments
You probably should ask this in an Oracle forum.
This is definitely not the best place to discuss such idea
- Log in to post comments
_SYSTEM is just another user name with role %ALL
any other account with the same role can do it as well.
Tying some code to a Username ignoring the power of roles is an elementary design error.
- Log in to post comments
Hi @Otto Medin !
HTTP is basically US ASCII 7bit with some "handcrafted" extensions
- somehow "UTF 7.6" 🤪 focussing on octets
it works for äöü but NOT for € (x20AC) >>> in URL %u20AC
for details: https://softwareengineering.stackexchange.com/questions/304419/what-encoding-are-the-http-status-and-header-lines
my hint: Try to avoid it in HTTP headers and stick with 7bit ASCII to be on the save side
browsers are less risk for problems but old applications are
- Log in to post comments
any MIRORING is technically GLOBAL Mirroring
read in docs https://docs.intersystems.com/iris20242/csp/docbook/Doc.View.cls?KEY=PAGE_high_availability
- Log in to post comments
4 options:
- map it to namespace %ALL
- naming it with % as first character places in %SYS namespace (e.g. ^%MUTHU)
- that traditional approach is possible but not recommended
- naming it ^mtemp.*, ^CacheTemp*, ^IRIS.Temp* allocates it in db IRISTEMP
- subscript level mapping allows partial mapping (e.g. to IRISTEMP)
- Log in to post comments