Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

DonBakke

About

Username
DonBakke
Joined
Visits
3,093
Last Active
Roles
Administrator

Comments

  • To answer your question, you need to loop through the array and get the values one at a time.
  • Barry - Our apologies. The code that generates the JSON had a couple of typos in it. I've corrected it and now the entire code snippet works. Let us know if you still have questions.
  • I'm still having a bit of difficulty following you, but I think what you are trying to do is: * Use Postman to send a request to an API. * In this request you have the Content-Length header set to a value (although Postman normally sets this va…
  • Are you trying to get the value of the Content-Length header in your API from what Postman is sending you or are you trying to set the Contet-Length header in your API and see the results in Postman after the API call is finished?
  • How do you mean "working in postman"? What, ultimately, are you trying to do?
  • The only thing I want to correct you on is the spelling of JSON vs. JASON. Yeah, pronounced similarly, but definitely a different spelling (JSON = JavaScript Object Notation). Are you simply asking if you can use SRP JsonX with the HTTP Framework? …
  • @BarryStevens - Yes, that is the right way to handle it. Something I would like to do sometime is update Error_Services so it supports different levels of errors. Some errors are innocuous and shouldn't affect behavior downstream. This is one of tho…
  • To be fair to you, methods and services are interchangeable terms...especially with BASIC+ procedures that provide "commuter module" structures. The Utility() function uses the term "service", Set_Printer() uses the term "message", and Repository() …
  • No. You are probably referring to this sentence from the How do I add hypermedia controls to a resource? article: In keeping with the spirit of HTML hypermedia controls, the SRP HTTP Framework supports a custom property called _forms. It serves the …
    in _form Comment by DonBakke March 2022
  • Just curious, what does "ssp" mean to you? I've already assumed it meant "system stored procedure" (i.e., a Revelation Software provided routine).
  • You are not completely wrong. Every "resource" has its own stored procedure. So your "job" resource - even though it is a sub-resource to "bsmob_Jobclockon" - will have its own "JOB_API" stored procedure.
  • I get it. Lot's to learn. Here is the relevant text: How do I create an API? When creating an API you are either creating a new resource coupled with one or more supported HTTP methods or you are updating an existing resource by adding new support…
  • Gotcha. Well, I do understand the desire to keep your stored procedures sorted. However, this approach sort of moves away from the appeal of Semantic URLs (and RESTful design) and turns it into more of an RPC (remote procedure call) design, which is…
  • Did you click the Create APIs button again after you added that "job" resource?
  • You can drag the top-level resources up and down to group together.
  • It is passed in through the OECGI payload.
  • @BarryStevens - This was a bug in a low-level service that only occurred when the name of your resource started with the same letters as your API root. In this case, your resources started out as "API" or "api" and your API root is also "api". I hav…
  • The HTTP Framework gets the registry values you are referencing from the OECGI payload. It doesn't have to query the registry. (Once upon a time it did do that, but that was problematic because we made assumptions about the path to the correct OECGI…
  • Ah...okay. "methods" means something specific in HTTP/REST (e.g., GET, POST, PUT, etc.). We refer to these as services. Yes, these are official.
  • The SRP Editor uses the entity name to remove the executable rather than the name you indicated in the signature of the stored procedure. Having said that, I do recommend updating the name in the signature to match the name of the entity to avoid OI…
  • I applaud your tenacity to work through this. I think, however, you would greatly benefit from some training. If you are new to OpenInsight, there is a lot of ground that can be covered with formal or informal training. We are an ATC (authorized tra…
  • I appreciate the explanation of what you are attempting to do. There are a few things that we need to go over. Some of this might be already known to you, but since you said you were new to OpenInsight, I am going to err on the side of caution. Whe…
  • Is the OLE control you added to the form specifically the SRP Panel control?
  • How vastly different from the version 1 days :) That's an understatement.
  • You are correct on both accounts. The Authorization header contains the (typically encoded and/or encrypted) credentials. You could get this using HTTP_Services('GetRequestHeaderField', 'Authorization'), but then you would have to decode it yourself…
  • I think you are correct. It had been awhile since I looked at this code. We do have built-in caching in the HTTP_Resource_Manager_Services module. This is managed by this equate: Equ CacheTTL$ to 300 ; // Allow cached data to only be fresh …
  • I am very aware of your request (especially from Revelation) for such a tool. While I think something could be developed that would provide some value, I would also want to caution against heavy reliance upon this tool. Applications and their databa…
  • The UD 5 did not introduce any performance benefits. It added support for: * VSS integration for better backups while running live. * Encryption over the wire. * Auto-recovery if OI disconnects from the server. I have yet to see the auto-r…
  • @Opto_Will I was always under the impression that your esteemed predecessor simply didn't understand the need for the UD and thus got along without it. However, I made it very clear this was dangerous and unsupported. As Barry noted, there can be …