Hi all,
is it possible to use a TWebHTTPRequest instead of TWebClientConnection and
link with a TWebClientDataSet.
I explain it.
To hide some url from client and to get data we use an TWebHTTPRequest and our own Http.rest server (mOrMot 1.8) with form/submit routing.
But sometimes we need to use TWebClientDataSet and TWebDataSource.
Can we cast TWebClientConnection to an TWebHTTPRequest ?
or
Link TWebClientDataSet with TWebHTTPRequest ?
Thank you.
Then you will need to write the necessary code to get the data via the TWebHTTPRequest component and assign it in your code to the TWebClientDataset.
I've already get the data via TWebHTTPRequest, but I try a shortest way using Tdataset.rows with TJsonArray(dataset.rows) but allways javascript error say need some open to assign this.
Is there some rapid solution, like this ? Or should I assign fieldsdef/type and values ?
Thank you.
You should setup FieldDefs.
In WEBLib.CDS.pas you can see how it is done with the TWebClientConnection.