go to post Chris Stewart · Apr 7, 2022 If only seeing new data suits your use case, then you are probably ok with this approach. You may wish to look at %ValidateIndices() which I believe is present in Cache2018. This will allow an online check of the index state and can either report on mismatches, or be set to autorepair. It is MUCH slower than a %BuildIndices, but does not require a full freeze for safety https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...
go to post Chris Stewart · Feb 18, 2022 Hi Token I think this might be case senstivity, try using %request.Content and see if that works better? Regards Chris
go to post Chris Stewart · Dec 15, 2021 Great new feature! Even more glad to hear there is no work required to use it after we upgrade
go to post Chris Stewart · Sep 8, 2021 HI Ben, I believe this is implemented specifically on each mail server and client, so there is no standard for it: See https://www.chilkatsoft.com/p/p_471.asp for details You can set these headers, but there's no guarantee the client or receiving server will take note of them HTH Chris
go to post Chris Stewart · Feb 23, 2021 Hi Julius Thanks for your comments, and you are correct in assessing this is for a specific use case (I'm migrating data between 2 structures and want to make sure the exported JSON is EXACTLY the same). For the first point, I really only care that all values in the source are also in the target. If I wanted to be thorough, I woudl run the compare in both directions, but since I'm expecting that the target will contain additional properties, I only need a 1 way compare) For the second point, I actually define the ordering of exporting of arrays explicitly, so I would expect a like for like compare. For other cases, additional logic would need to be added, as you pointed out For the last point, this should return a mismatch, which is good enough for my use case, but again, might not be ideal for other use cases
go to post Chris Stewart · Feb 18, 2021 That would be an easy adjustment to make. In my use case I'm also interested in knowing which fields are mismatching, and there may be multiple mismatches (hopefully not) per export
go to post Chris Stewart · Sep 24, 2018 HI StephenI beileve https://community.intersystems.com/post/rest-how-pass-query-parameters#a... has an example of thisThanksChris
go to post Chris Stewart · Sep 24, 2018 HI DennyTrakcare publishes it's CSPs as Deployed, so a standard install will not contain a user friendly way to view themHTHChris
go to post Chris Stewart · Sep 24, 2018 I wrote this tutorial some time ago https://community.intersystems.com/post/lets-write-angular-1x-app-cach%C...It covers making an AngularJS front end with a basic Cache REST backend
go to post Chris Stewart · Apr 23, 2018 If I'm writing something that will maybe run 2 or 3 times, and is less than 10 lines of code, I might use a .mac. For anything more than that, I would use a class, as the time saved in setup is pretty negligible compared to the rest of the work done
go to post Chris Stewart · Mar 2, 2018 Hi JayThis has happened a few times, and I've readded them a few times. I'll see if I still have the images handy and get them reattached again
go to post Chris Stewart · Feb 15, 2018 Could you try making the call with a REST client like RESTLet for Chrome, and seeing if the request comes through on that method?
go to post Chris Stewart · Feb 15, 2018 Try reading the Request data with this Set updateJSON = %request.Content.Read()Edited because I missed that you already tried this?
go to post Chris Stewart · Feb 15, 2018 Hi DavidAre you specifying the HTTP verb in the $.ajax call?ThanksChris
go to post Chris Stewart · Feb 7, 2018 HI FabioI've built it into my Authentication routine on my REST services, as all of my functionality goes through REST. I created a simple Audit class, and had each call to the Authentication include information specific to which service called it.HTHChris
go to post Chris Stewart · Jan 19, 2018 Hi Wendy,I would need to see some details of what your class is doing to comment further.
go to post Chris Stewart · Jan 19, 2018 HI GaryThere's an example of this in the SAMPLES database if you have that installed. Take a look for upload.csp in /csp/samplesHTHCHris
go to post Chris Stewart · Jan 15, 2018 Reposting as an answer to get this removed from the "Unanswered questions" listHI RuiUnicode 0x3 is the ETX character, which can be used as newline in certain text editors. Any control chars are disallowed in XML processing, so these should be stripped from whatever query you are using to drive this reportHTHChris
go to post Chris Stewart · Jan 12, 2018 Hi Sudarshan, If you are using a version later than 2016.2, then the following guide shows how to read through a Request content and parse out a JSON objecthttps://community.intersystems.com/post/lets-write-angular-1x-app-cach%C...