go to post Robert Cemper · Mar 30, 2020 Not as string.Parameters are stored as sub-object with the class object in %Dictionary.* classes.And serve as Information for the code to be compiled.
go to post Robert Cemper · Mar 30, 2020 PARAMETER and DISPLAYLIST are both compiler directives and you can't mix them. But you may workaround it by writing your own pair of DisplayToLogical / LogicalToDisplay ClassMethods for this property´. Parameter Active = 1; Parameter Inactive =2;Parameter Production = 3;Parameter Upkeep 4;/// DISPLAYLIST = ", Active, Inactive, Production, Upkeep", Property Status As %String(VALUELIST = ",1,2,3,4") [ Required ];ClassMethod StatusDisplayToLogical(%val) As %String{ Quit $case(%val,..#Active:1,..#Inactive:2,..#Production:3,..#Upkeep:4,:"") }ClassMethod StatusLogicalToDisplay(%val) As %String{ Quit $case(%val,1:..#Active,2:..#Inactive,3:..#Production,4:..#Upkeep,:"") }
go to post Robert Cemper · Mar 30, 2020 Hi Nigel,About a year ago a faced a similar problem and found 2 possible workarounds. Instead of writing a WS client a delegated it out to JavaScript.#1) Using CSP#2) my preferred one with node.jsBoth examples are available on OpenExchange Client for WebSockets based on CSP Client for WebSockets based on Node.js as Websockets ar so natural to JavaScript the result is no rocket science. Stay healthy
go to post Robert Cemper · Mar 29, 2020 @Julius Kavay is fully correct. The compiler was first written ~10 years before the idea of LLVM started @ University of Illinois.Various interfaces allow your development very close to the data store. I'd suggest you contact your Sales Engineer @ InterSystems (Darmstadt ?) for disclosure of internals.
go to post Robert Cemper · Mar 27, 2020 The official way is to log an ENHANCEMENT REQUEST at WRC portal.And wait.
go to post Robert Cemper · Mar 27, 2020 it is an IRIS export <?xml version="1.0" encoding="UTF-8"?> <Export generator="IRIS" version="26" zv="IRIS for Windows (x86-64) 2019.1.1 (Build 609U)" ts="2020-03-22 18:56:51"> while for Cache it ooks like this: <?xml version="1.0" encoding="UTF-8"?><Export generator="Cache" version="25"> it might be sufficient to change 26 to 25 to make your Caché happy
go to post Robert Cemper · Mar 27, 2020 You don't have a great chance, but you may dig it down like this And I assume once seen you get your display faster than this cycles where I had no idea on the subscript structure before
go to post Robert Cemper · Mar 27, 2020 I don't know of reverse order BUT if you have some idea of the last subscript you may enter the starting subscript. instead of seeing the whole Global ^CONFIG just one specific subscript ^CONFIG("Telnet" os starting from a specific subscript ^CONFIG("Telnet": or from:to subscript ^CONFIG("ECP":"Journal" or just the select subscript level with a closing bracket ^CONFIG("ECP":"Journal") Basically it is the same behavior of the ancient (not to say antique) routine ^%G When it was written traversing a Global in reverse order was not implemented in Caché nor ist'S predecessors.So no reverse display It has a help function that tells you it's capabilities DO HELP^%G The %G utility displays global nodes. A "?" at the "Global ^" promptdisplays the global directory. If you enter just the name of a global,%G displays the entire global. You may also display a portion of theglobal at different subscript levels or specific nodes. A complete global reference, such as ^GLO(3,"BED",5) will displayonly that particular node. You may specify a subtree, such as^GLO(3,"BED", to display all descendants of that node. To displayboth the node and its descendants, do not end your entry with acomma or a right parenthesis. You can leave a subscript field empty when you specify the subtree andthe %G utility displays any nodes matching the other subscripts:^GLO(,"BED") will match any nodes with 'BED' as the second subscript. You can specify a range of subscripts for a particular subscriptlevel by inserting a colon between the first and last subscript in therange: ^PT(1,"ACC":"BIRTH" You can use variables and simple expressions in a subscriptspecification by assigning a value to the variable before calling %G.For example SET ID=214 and enter something like ^PT(ID,0).
go to post Robert Cemper · Mar 27, 2020 just use a single liner from terminal for the last 10 lines or any number you need s g="^myGlobal("""")" f i=1:1:10 s g=$q(@g,-1,%) q:g="" w !,g zw %
go to post Robert Cemper · Mar 26, 2020 Hi Jenna, my personal experience with binary over HTTP is painful. I'd suggest using Base64-Encoding (which means ASCII readable Characters only)The downside is you have to decode it at the receiver side.But that way it should be foolproof over across all proxy-, web- and other servers in between. HTTP was invented when there was EBCDIC for 8 bit and ASCII for 7 bit. And some transport software hasn't improved since.
go to post Robert Cemper · Mar 22, 2020 why not use a free local mail server for testing?I personally use the german speaking Hamster. But there are lots of them. Google is your friend
go to post Robert Cemper · Mar 14, 2020 make your formula f = x + 20(y*y) > z a calculated, SQLcomputed property in your TABLEand provide it with a bitmap index and it will run distributed and be incredible fast docs: https://docs.intersystems.com/iris20192/csp/docbook/DocBook.UI.Page.cls?KEY=GOBJ_proplit#GOBJ_proplit_computedhttps://docs.intersystems.com/iris20192/csp/docbook/Doc.View.cls?KEY=RSQL_C145362
go to post Robert Cemper · Feb 28, 2020 error -400 means there is an internal error It might be caused by using object properties as :context.anyname inside embedded SQL give it a try and use "simple variables" as :%myanyname , :%myShipmentTrackingNo and fill the context object outside the embedded SQLas you do with SQLCODE
go to post Robert Cemper · Feb 26, 2020 I'm surprised you don't see the obvious performance difference of looking for something of distinct length at the beginning of a stringvs. scanning an eventual rather long string for some bytes somewhere eventually including also composed strings as %AB%CD%. keep in mind: Caché is built for speed, not for the comfort of the average programmer
go to post Robert Cemper · Feb 24, 2020 %STARTSWITH relates better to Caché internal structures and is faster in larger scale
go to post Robert Cemper · Feb 24, 2020 what you seem to look for is $LISTTOSTRINGsame concept as .toString in Java, just no dot