Your Rank: 85
Right-clicking the toolbar, and unchecking "Embarcadero Community" works for me - no need to do any registry mods
"One of the solutions in KastriFree is a way to handle keeping the current focused control visible when the keyboard is visible on mobile devices"I don't believe that's included (unless it's there by accident!). There is, however:* Support for Fireba
I have the following code:
TRequestCompleteCallback = procedure(ASuccess: Boolean) of object;
procedure TNetworkDatamodule.RefreshRequest(ARequest: TRESTRequest; const AIDList: string; AComplete: TRequestCompleteCallback);
ARequest.Params.ParameterByName('$idlist').Value := AIDList;
This method is called multiple times in succession, each time passing a different TRESTRequest as the first parameter. This causes a "Duplicates not allowed" exception which is occuring in TMacHTTPClient.DoExecuteRequest in the System.Net.HttpClient.Mac unit on this line:
I'm not sure why the error should occur, because it looks like the connection and response being added to FDataTasks should be unique, since they're being created within DoExecuteRequest.
I could refactor my code so that each request is called when the previous one completes, but that seems to defeat the purpose of calling them asynchronously
You realise that on mobile, Delphi code has ARC, i.e. automatic reference counting? Does Swift have the ability to compile to Android?
I already tried option 1, and it is far less desirable.
Option 2 works; thanks very much! I'm going to blog about your solution (at delphi.radsoft.com.au/blog) when I have time.
PS: My profile activity shows that I uploaded the example project, but it's not appearing in the message, and clicking on it says "Fatal error - attempt to access unpublished file by non-admin user"
It seems the attachment process isn't working for me. What other ways are there to insert records other than using Append or Insert? (Neither works in this instance). For what it's worth, my code looks like this:
qryItemsListID.Value := ListID;
..and fails on the second line.
I've now discovered the issue seems to be the LiveBindings link between the BindSource and the Synch property of the ListView (it's a Win32 ListView) because if I take that off, it works. The problem is that I need the link. Is there a way around this?
I'm using Delphi XE8, and have a pretty simple master/detail setup, bound to a couple of listviews using LiveBindings to a SQLite db.
I'm attempting to append to the detail dataset, and before I can change any of the fields, the dataset falls out of dsInsert state to dsBrowse, thus causing a "Dataset not in insert or edit mode" error.
I've attached a test case as a demo of what's happening