go to post Fabian Haupt · May 3, 2017 Slight correction: the system mode is per instance and not per namespace.
go to post Fabian Haupt · May 2, 2017 More interestingly, searching for 'wireshark installer' bring up this: https://community.intersystems.com/post/webinar-configuring-iis-better-p..., which doesn't even mention wireshark?!
go to post Fabian Haupt · May 2, 2017 I have absolutely seen similar issues with search all over the place. Generally, it is basically impossible to find a post using the search.
go to post Fabian Haupt · Apr 17, 2017 Hi, your suggestions #2 and #3 would work against the weak typed character of the language. I.e. a method like this: ClassMethod test() as %String { q 23} Will work perfectly fine, no matter if you use the return value a string or integer. You can actually also return values from methods that don't define a return type at all. As you already point out, changing any of this behaviour would likely break quite a lot of existing software, so it's not really feasible.
go to post Fabian Haupt · Apr 12, 2017 Thanks for the overview! I definitely think TDD (i.e. #9) should be the fist one :) Another good thing to do is rubber-ducking. Not just to find bugs once they come up, but talking your code through is a good way to catch bugs before they get committed to version control. Cheers!
go to post Fabian Haupt · Apr 4, 2017 Hi Peter, a couple of things: * You're trying to write out the numbers twice. Everything that is >60 is also >30. * The css style for background is background-color. See CSS reference This works for me: Method SetAlertColor(pTable As %ZEN.Component.tablePane, pName As %String, pSeed As %String) As %Status { s val=%query(pName),col="" if (val>60) { s col="#FF0000" } elseif val>30{ s col="#FF6600" } else { s col="#AAAAAA" } &html<<div style="background-color:#(col)#">#(val)#</div>> q $$$OK }
go to post Fabian Haupt · Apr 4, 2017 If the condition is not sufficient, you can always roll your own rendering code for cells, using: ondrawcell
go to post Fabian Haupt · Mar 30, 2017 With your xdata block, this works: ClassMethod GetFile() as %Status { set xdata = ##class(%Dictionary.CompiledXData).%OpenId($ClassName()_"||File7") s %response.Status=200 s %response.ContentType="application/octet-stream" write $System.Encryption.Base64Decode(xdata.Data.Read(xdata.Data.Size)) q $$$OK }
go to post Fabian Haupt · Mar 30, 2017 This works for me for a file from the FS: ClassMethod GetFile() as %Status { s file=##class(%Stream.FileBinary).%New() s file.Filename="/tmp/Psi-0.15.dmg" s %response.Status=200 s %response.ContentType="application/octet-stream" while ('file.AtEnd) { w file.Read(10000) } q $$$OK }
go to post Fabian Haupt · Mar 28, 2017 No. We should try and shut down the google groups, or at least make them read-only. BTW, I don't see this post having carried over.
go to post Fabian Haupt · Mar 28, 2017 given the low number of 3rd party modules, I don't think this is something that is being thought about as a general problem. That being said, a new namespace seems cleaner, but does have limits due to license limits.
go to post Fabian Haupt · Mar 25, 2017 But for that he needs to add an extending class to his classes. Using the native functions directly is less overhead.
go to post Fabian Haupt · Mar 25, 2017 %ToJSON() is only defined on objects extending %DynamicAbstractObject. For example: SAMPLES>s obj={"test":"42"} SAMPLES>d obj.%ToJSON() {"test":"42"} SAMPLES> To serialize arbitrary %Persistent/%Registered objects you'll have to use altJSONProvider for example: SAMPLES>s p=##class(Sample.Person).%OpenId(1) SAMPLES>d ##class("%ZEN.Auxiliary.altJSONProvider").%WriteJSONFromObject(,.p) {"_class":"Sample.Person","_id":1,"Name":"Love,Wolfgang A.","SSN":"917-96-1802","DOB":45275,"Home":{"_class":"Sample.Address","Street":"8360 First Street","City":"Zanesville","State":"WV","Zip":25788},"Office":{"_class":"Sample.Address","Street":"1842 Maple Court","City":"Hialeah","State":"NH","Zip":65893},"Spouse":"","FavoriteColors":[],"Age":"52"}
go to post Fabian Haupt · Mar 24, 2017 Bapu, have a look at this article, it's explaining everything: https://community.intersystems.com/post/introducing-new-json-capabilitie... and this one explains the updates that have been made to the syntax: https://community.intersystems.com/post/json-changes-cach%C3%A9-20162 Cheers, Fab
go to post Fabian Haupt · Mar 23, 2017 wouldn't it be easier to store your data in a more generic form to avoid having to do that?
go to post Fabian Haupt · Mar 22, 2017 You now have answers to 3 interpretations of your question, please clarify which one you meant ;) Cheers!
go to post Fabian Haupt · Mar 22, 2017 Oh, hang on. You want to download a file in Cache Objectscript within your CSP page? In that case, have a look at the %Net.HTTPRequest documentation here: http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?P...
go to post Fabian Haupt · Mar 22, 2017 Have a look at the same question: https://community.intersystems.com/post/upload-and-strore-file