Question Stephane Devin · May 17, 2024 How are Stream saved? Hi, I was working with %sStream.FileBynary and following the doc when I find an info that I'm not sure of.In the part of the doc where it talks about saving streams, it does not precise where it is saved.I tried to fill my stream, then rewind, then set the file and finally saved.And it puts in my default directory with the temporary name.If I do a zwrite of my stream, I get these properties about the file and directory.(StoreFile) = "zKc2m8v1.stream"(NormalizedDirectory) = "C:\InterSystems\Community\mgr\user\stream\" #Caché #InterSystems IRIS 0 6 0 229
Question Stephane Devin · May 15, 2024 Embeded python : Can I create a dict from COS? Hi, I need to use some pythonic library from cos.To use them I need a python dict with some python object in itEx in python: #Embedded Python #JSON #Python #Caché #InterSystems IRIS 0 2 0 133
Question Stephane Devin · Apr 10, 2024 get multiple return value in embeded python Hi, I am using embeded python to utilize some pythonic library but i got a problem on my hand.One of the python function i am using return multiple values in python you would do something like that : val1, val2, val3, = function(params) In COS I got something like that : lib = ##class(%SYS.Python).Import("lib") val1 = lib.function(params) And I don't know how to get the second and third values.Is there a way to get them? #Beginner #Embedded Python #Python #Caché #InterSystems IRIS 1 5 1 167
Question Stephane Devin · Feb 15, 2024 Can we use the READ command to make password prompt Hi, I need to make a prompt for a password and to not display what the user is typing in a CMD. I want to use the read command but i'm not sure if it is possible with it. #Authentication #Beginner #Caché 0 4 0 175
Question Stephane Devin · Dec 14, 2023 Can I extract a JS function body in cos? I got a problem to resolve, to sum it up I need to extract a function body from a JS file with cos.I already got the JS code in a string and the function name but I'm kinda stuck as to how to get my function body, I already tried a few things (regEx, counter bracket) but there are comment and strings that block them from functioning. Is there a javascript parser or a good way to do it except by creating a javascript parser? #JavaScript #ObjectScript #Caché 0 8 0 398