You are not logged in.
I have define a TSQLRecord with a "file" field. This is a RawUTF8 variable where I save a subfolder path.
For example I have this path "SERVER\\mypath\subfolder1\subfolder2\" and I use "file" field to save the string "subfolder1\subfolder2\".
The first part of my path ("SERVER\\mypath\") can change se I don't save this on "file" field.
I'd like to do this:
1. the client ask TSQLRecord to server;
2. the server get the TSQLRecord from db and then edit "file" field from "subfolder1\subfolder2\" to "SERVER\\mypath\subfolder1\subfolder2\";
3. the server send the TSQLRecord (edit by server) to client.
Is it possible?
Offline
create pas, add constant with u path and add on client and server app or save in db in special options table paths and others sys info
Offline
Hi ab, I would like to know something similar to the above question.
I use TSQLDBConnectionProperties.Execute to return ISQLDBRows and then send ISQLDBRows.FetchAllAsJSON to my 3rd party clients.
There are 2 scenarios where I need to change the data before sending it as a result, and I want to ensure that the same format as FetchAllAsJSON is always used:
1) I must step through the data and change the content of some fields (such as hide sensitive values)
2) I must remove some records from the set or add additional records to the result set.
What would be the preferred way of doing this? The queries are very complicated and the data require additional work before being sent as a JSON result. Do I send the ISQLDBRows to a memory table, or is there a way of directly making changes to the resulting dataset?
Offline
> There are 2 scenarios where I need to change the data before sending it as a result, and I want to ensure that the
> same format as FetchAllAsJSON is always used:
> 1) I must step through the data and change the content of some fields (such as hide sensitive values)
> 2) I must remove some records from the set or add additional records to the result set.
I had similar issues and finally settled on using iterating through returned recordset, copying records to TDocVariantData, do the necessary changes and then saving it as JSON. I don't know how effectively or good such solution would be in your case but it would probably require some changes to format.
Offline