Replies:

Hi,

Indeed, the problem was caused because the address to which it is going to connect is variable, so the component is not configured with the Server or URL parameters.

I've solved it by the following way:

set ..Adapter.HTTPServer = pRequest.Url
Set URL = pRequest.Url_"/search"
set tHttpResponse = ##class(%Net.HttpResponse).%New()
set tSC = ..Adapter.SendFormDataArray(.tHttpResponse,"POST",tHttpRequest,,,URL)

if $$$ISERR(tSC) && (tHttpResponse="") $$$ThrowStatus(tSC)

// Check what is the status code
set content = ""
while (tHttpResponse.Data.AtEnd = 0) { 
    set content = content_tHttpResponse.Data.Read() 
}

do pResponse.%JSONImport(content)
set pResponse.StatusCode = tHttpResponse.StatusCode

Regards,
Kurro Lopez

Congratulation... next challenge... 15,000 members and 10,000,000 views  🥳🥳🥳🥳🥳

Thanks John,

We've reinstalled it using the dowload packaged from the website. Now it works.

This is the second time that the link in the WebTerminal doesn't work.

Thanks againg mate.

Best regards,
Francisco Lopez

Open Exchange applications:
Followers:
Following:
Global Masters badges: