go to post Robert Cemper · Sep 4, 2024 Congrats:I like your code example that demonstrates deep understanding of the DB concept. 💪
go to post Robert Cemper · Sep 3, 2024 From docs: tformat = 1 >>> Express time in the form "hh:mm:ss" (24-hour clock).W $ZTIME(338,1,)00:05:38W $ZTIME(338+43200,1)12:05:38My guess: You look for thisW $tr($ZTIME(338,3),"AM")12:05:38
go to post Robert Cemper · Sep 2, 2024 set time="2023-09-28T20:35:41Z" write $TRANSLATE(tine,"-:TZ") 20230928203541
go to post Robert Cemper · Aug 18, 2024 with set pSettings("From_Source_Rec_Job","Adapter... you pass a String literal assuming the value of your variable str = From_Source_Rec_Job then set pSettings(str,"Adapter","FTPPort")=2022 should be sufficient
go to post Robert Cemper · Aug 16, 2024 iris | 08/15/24-05:47:48:778 (828) 3 [Utility.Event] Error while moving data directories ERROR #5001: Cannot create target: /shared/durable/ You may have some file protection issue
go to post Robert Cemper · Aug 15, 2024 Studio has a feature to expand / compress ObjectScript CommandsAdvanced Editingthis might be a starting point.
go to post Robert Cemper · Aug 9, 2024 You mentioned IIS.Are you sure IIS is listening at port 57772 ? And: http://localhost:57772/csp/sys/UtilHome.csplooks like the old call to private Apache
go to post Robert Cemper · Aug 8, 2024 on Windows use $$$installdir\bin\iris.exe iris stop <instance-name> iris start <instance-name> for instance-name use iris list
go to post Robert Cemper · Aug 2, 2024 a zen page definition creates a class (just like CSP) the runtime of this class is an INT routine. Anr there is hidden the truth of JS and COS
go to post Robert Cemper · Jul 31, 2024 ZENpages load a bunch of dedicated js libraries + scripts in browser for it's communicationSuggestion: create a simple ZEN page and check js libraries and scripts used.
go to post Robert Cemper · Jul 29, 2024 not so much need of a SET class in ObjectScript every local variable array or a global allows alphanumeric subsriüpts up to size 255 those subscripts are unique
go to post Robert Cemper · Jul 25, 2024 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>
go to post Robert Cemper · Jul 25, 2024 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()
go to post Robert Cemper · Jul 21, 2024 %BuildIndices is required if the indexed values are manipulated directly in the Global.OR if the index definition is changed in Class or By DDLduring use as Object or SQL table it is maintained automatically.
go to post Robert Cemper · Jul 20, 2024 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