go to post David Hockenbroch · Jul 27, 2021 I'm about to go down the same path here. I have a rough idea of what I need to do. I'm going to try to use the %Net.HttpRequest object and do at least the following steps: 1. Create a new %Net.HttpRequest object set myrequest = ##class(%Net.HttpRequest).%New() 2. Set the server set myrequest.server = "www.whatever.com" 3. Set the locatoin set myrequest.location = "/path/to/rest" 4. Create a global binary stream. 5. Write json data to the stream. 6. Use the stream as the EntityBody for the HttpRequest. 7. Call the get, put, or post method of the HttpRequest object to consume. 8. Use the HttpRequest's HttpResponse object to check the response
go to post David Hockenbroch · Jul 21, 2021 If your other system is also a Cache or IRIS server, there is a mirroring options called a reporting async that exists for this specific purpose. If you've got multiple servers and need to consolidate that data for reporting purposes, a reporting async can be a part of up to 10 mirrors to help you bring that data together, too.
go to post David Hockenbroch · Jul 20, 2021 Sam, thanks, that solves the first part! Any idea how to make it show the item number somewhere no matter what drill down level I'm at?
go to post David Hockenbroch · Jul 19, 2021 Somewhere in your button tag, you have onselect= something. Buttons don't have an onselect, but even if they did, I'm guessing that's not the event you actually want. onselect happens when a user highlights text within a control, like in a text input. If you're trying to set what happens when the user clicks the button, that's onclick. If you're trying to set what happens when the user selects the button but doesn't click it (say by pressing tab until the button is highlighted) that's onfocus.
go to post David Hockenbroch · Jul 15, 2021 It looks to me like the data returned in the HTTP response might not be proper JSON. Do you have that data for us to see?
go to post David Hockenbroch · Jul 13, 2021 ObjectScript variables are untyped, so preserving the type isn't necessary. You'll build the list by adding your MyPackage.MyClass objects to it, then you'll return the %ListOfObjects, then you'll use that list's methods to manipulate those objects. For instance, set mything = mylist.GetAt(1) will give you an object that is identical to the MyPackage.MyClass object you put in the list with all of its properties an methods.
go to post David Hockenbroch · Jun 28, 2021 The %OnAfterCreatePage() method takes place after an instance of your page has been created on the server, but before it gets sent to the client, so it's really intended for server-side stuff. Maybe instead you should be using the onloadHandler() method. That one runs on the client just before the page is displayed.
go to post David Hockenbroch · Jun 25, 2021 A while back, I downloaded Crystal Reports for Eclipse and projected a couple of classes into Java and used them to set up an interface for us to automate emailing, printing, or archiving reports through Cache/IRIS's internal task manager.
go to post David Hockenbroch · Jun 23, 2021 Can you post the code for your form? That would be very helpful.
go to post David Hockenbroch · May 27, 2021 Just to clarify, in those bottom two queries, is that the entire query? No grouping, no sorting, no COUNT() functions? If these are counts, it sounds like you've got some nulls in those columns. Try SELECT COUNT(*) FROM ACCT.Services WHERE TransID IS NULL and see what it says.
go to post David Hockenbroch · May 20, 2021 FYI, I enabled the /api/atelier web app, and that fixed the issue. Once I did that, I tried it both with and without the extra commas, and it was fine letting me connect either way. They were incorrect JSON, but they weren't the source of this particular problem.
go to post David Hockenbroch · May 20, 2021 EnsLib.File.PassthroughOperation that lets you use timestamp variables, not EnsLib.File.PassthroughService. PassthroughOperation sends files, PassthroughService receives them.
go to post David Hockenbroch · May 20, 2021 You were right. The requested URL /api/atelier/ was not found on this server. What do I do about that, though?
go to post David Hockenbroch · May 20, 2021 I tried it without those commas, and it made no difference. Thanks for the suggestion, though.
go to post David Hockenbroch · May 19, 2021 Steven, I'm getting this even after doing a docker logout too. Same error, BAD_CREDENTIAL. I see there's a comment above about linking an account to an organization. Do I need to do that?
go to post David Hockenbroch · May 19, 2021 I got that every time unless I did sudo for the docker pull.
go to post David Hockenbroch · May 18, 2021 In his class definition, DocumentData is a %xsd.base64Binary, not a string.
go to post David Hockenbroch · May 18, 2021 I've added that too. As far as I can tell, it's fine. It definitely doesn't start with a <.
go to post David Hockenbroch · May 18, 2021 Dmitry, I've added one now. It comes up every time I click on anything on the left side or just when I click on a different tab at the top.