delphi-10.3-rio

How to set the the cell value for displayed cells only?

瘦欲@ 提交于 2020-06-29 03:58:16
问题 I have some data I want to display in a StringGrid. This data contains many rows with some pretty static columns but also two columns that need web-API lookups and take some time to gather. SO when I try to set these cells in the OnShow of the StringGrid (or any other "Init") I get a long delay until the cell values are set. What I would like to do is only look up the values for those cells that are currently displayed (and not all of them at once). How Do I find out which rows are currently

Delphi 10 TRestClient MIME boundary issue

元气小坏坏 提交于 2020-06-16 04:54:47
问题 I am trying to consume a REST service using TRestClient but I believe there is an issue with the boundary string for multipart content. I am capturing the body of the request I am sending, and this is the content type header: Content-Type: multipart/form-data; boundary=-------Embt-Boundary--07CC944C29DA577E Then, this is the first section of the multipart form: -----------Embt-Boundary--07CC944C29DA577E Content-Disposition: form-data; name="file"; filename="ce.csv" Content-Type: text/csv And

How to get at response headers from THTTPReqResp?

橙三吉。 提交于 2020-04-16 08:22:53
问题 I have some old code using THTTPReqResp , this calls Execute for SOAP requests against Exchange Web Services. I'm modifying it to (also) use OAuth login. This works fine, but I'm having trouble detecting when an access token has expired. In a test app using a TipwHTTP component from nSoftware IP*Works I can go through the response headers to detect the one indicating an expired token: with ipwHTTP do try PostData := ABody; Post(cBaseURL); except on e:Exception do begin // A special header is

How to get more detailed error info in EWS SOAP response?

▼魔方 西西 提交于 2020-03-25 18:42:17
问题 I'm posting SOAP calls to Exchange webservices (using Delphi and the IpWorks TipwHTTP component) and some of these return with internal server errors (some CreateItem and UpdateItem SOAP actions), but no more info than that: <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorInternalServerError</faultcode> <faultstring xml:lang="en-US"

How to get more detailed error info in EWS SOAP response?

房东的猫 提交于 2020-03-25 18:42:07
问题 I'm posting SOAP calls to Exchange webservices (using Delphi and the IpWorks TipwHTTP component) and some of these return with internal server errors (some CreateItem and UpdateItem SOAP actions), but no more info than that: <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorInternalServerError</faultcode> <faultstring xml:lang="en-US"

How to keep my (custom) IDE color scheme after switching themes?

夙愿已清 提交于 2020-03-23 08:00:34
问题 Delphi Rio comes with two color schemes: dark and light. I open Tools->Options->Editor->Color and changed the dark color scheme to make it even darker. But after switching to the 'light' theme and then back to the 'dark' theme my colors were lost: I don't get how this color editor works. How do I permanently store my colors? 回答1: Know Delphi bug (no wonder why Delphi will fall out of Tiobe index) as reported by Dalija: quality.embarcadero.com/browse/RSP-19524. Workaround: Setup editor colors

DEPLHI - Trying to get EXIF data on library images in Android

痴心易碎 提交于 2020-03-05 00:35:33
问题 I am new at developing for Android, but not so new on Delphi development though. Anyway I am struggling to get EXIT data from an image (loaded from library) and show that image on the form. Here is my code: unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Messaging, {$IF CompilerVersion > 32} System.Permissions, {$ENDIF} Androidapi.JNI.JavaTypes, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdActns, FMX