Questions tagged as 'datasnap'

0
answers

How to get the result of a procedure that is on the datasnap server

Needing help here it does not have this function // query that is in fqy_SaldoRs is "PRC_SALDO_MOTOQUEIRO: pMoto" That is nothing more than a query that receives a paramenter of integer type and returns a double function TServerMethods1.fnc...
asked by 21.12.2016 / 20:20
0
answers

Delphi / SendGrid integration

I'm trying to integrate an application Delphi with SendGrid , to configure the request I'm using RESTDebugger . I inform you Header Authorization="Bearer" + [minha chave] Content-Type = "application/json" And the JSON...
asked by 25.10.2016 / 13:43
1
answer

method to log in using DataSnap

I'm doing an Android application using Delphi, I have a server with the methods to get the data from the Mysql database, I would like to know how I can do a method to get the users that are already registered in the database and then how call th...
asked by 17.02.2016 / 14:29
1
answer

Response to preflight request does not pass access control check

When I try to give a GET on a link here on my server that is not in host location this message happens:    XMLHttpRequest can not load    link . Response to preflight request does not pass access control check: No   'Access-Control-Allow-Orig...
asked by 02.05.2016 / 15:06
2
answers

Extract JSON array data on Android received by DataSnap

Good afternoon. I would like to know how I can extract the data received by the server using Delphi's DataSnap. I'm doing this, but it's returning an error: lista_versoes = dsProxy.getVersoes(); TJSONObject json_versao = new TJSONObject();...
asked by 15.03.2015 / 16:44
0
answers

Datasnap + REST + Firedac # 10060/10061

Recently we converted a three-layer Client-Server project using Datasnap technology (Delphi XE7). We have had some intermittent communication problems where, apparently, the server denies some requests at random. What I mean by random is that, a...
asked by 22.11.2018 / 17:46
0
answers

DataSnap Capturing Headers

Is there any way in DataSnap REST, to capture information coming from Headers (GET)? I researched and found: var oWebModule: TWebModule; sHeader: String; begin oWebModule := GetDataSnapWebModule; sHeader := oWebModule.Request.Conten...
asked by 13.04.2018 / 16:25
1
answer

DataSnap with FireDac

In an application with DataSnap, I used SQLConnection : procedure TForm1.Button1Click(Sender: TObject); var ConectaServidor : TUClasseServidorClient; begin ConectaServidor := TUClasseServidorClient.Create(SQLConnection1.DBXConnection); try...
asked by 25.09.2017 / 18:30
1
answer

Delphi Datasnap Callback - Prompt the Client about something

I'm now starting to implement in Datasnap. I searched a lot but I did not find a solution, maybe because of my inexperience, I was letting something very simple go by. I need to find a way to send a message to the clients connected to the ser...
asked by 11.08.2017 / 13:08
1
answer

Delphi - DataSnap Authentication via AJAX

I am now starting to use authentication in DataSnap. I am trying to access methods via AJAX and is returning error 401 - Unauthorized. My request is as follows: $.ajax({ username: login, password: pass, async : false,...
asked by 22.03.2017 / 13:59