Jump to content

Olli73

Members
  • Content Count

    58
  • Joined

  • Last visited

Everything posted by Olli73

  1. Olli73

    FireDAC connection lost on setting TFDQuery's SQL.Text

    What is the setting for Connection.ResourceOptions.KeepConnection ?
  2. Olli73

    Custom Time format in TDBGrid

    You could also try to enable ExtendedMetaData for connection.
  3. Olli73

    Custom Time format in TDBGrid

    What are your connection settings?
  4. Olli73

    Cannot get email with image inline

    Do you have in your HTML part something like <img src="cid:FileName"> ?
  5. You are using a Generator and a trigger? I thought you were using "generated by default as identity" for field in create table.
  6. In Firebird 4 something like this could work: UPDATE OR INSERT INTO ESTDTL (EST_ID, ESTDTL_ID, CSC_ID, ESTDTLDSC, CSTPLS, GSTINC, GSTPCT, QTYCLC, QTY, CST, GST, SLE, VAL) OVERRIDING USER VALUE VALUES (:NEW_EST_ID, coalesce(:NEW_ESTDTL_ID, -1), :NEW_CSC_ID, :NEW_ESTDTLDSC, :NEW_CSTPLS, :NEW_GSTINC, :NEW_GSTPCT, :NEW_QTYCLC, :NEW_QTY, :NEW_CST, :NEW_GST, :NEW_SLE, :NEW_VAL) MATCHING (EST_ID, ESTDTL_ID) RETURNING EST_ID, ESTDTL_ID
  7. The images are not visible to me. And what was the solution for your initial issue?
  8. Therefore I have used MATCHING (EST_ID, ESTDTLDSC) (And maybe additional fields), because ID is created by DB after post. But maybe there is another solution using the id field...
  9. Have you also provided values for "providerType", "isFolder", ...? See my JSON above.
  10. I have no experience with Microsoft API, but that looks to me that you do not need to create a sharelink first, instead you can directly enter the file or folder as sourceUrl: { "post": { "body": { "contentType": "text", "content": "I attached a reference to a file on OneDrive." }, "attachments": [{ "@odata.type": "#microsoft.graph.referenceAttachment", "name": "Personal pictures", "sourceUrl": "https://contoso.com/personal/mario_contoso_net/Documents/Pics", "providerType": "oneDriveConsumer", "permission": "Edit", "isFolder": "True" } ] } }
  11. And this was my fault: You had a "b.*", not an "a.*".
  12. The modify SQL should look something like this: UPDATE OR INSERT INTO ESTDTL (EST_ID, CSC_ID, ESTDTLDSC, CSTPLS, GSTINC, GSTPCT, QTYCLC, QTY, CST, GST, SLE, VAL) VALUES (:NEW_EST_ID, :NEW_CSC_ID, :NEW_ESTDTLDSC, :NEW_CSTPLS, :NEW_GSTINC, :NEW_GSTPCT, :NEW_QTYCLC, :NEW_QTY, :NEW_CST, :NEW_GST, :NEW_SLE, :NEW_VAL) MATCHING (EST_ID, ESTDTLDSC) RETURNING ESTDTL_ID, ESTDTLMNTDTE
  13. The database file is missing...
  14. And ARequest := arInsert; ARequest is no var parameter, so changing should have no affect!?
  15. And is this condition true on insert: if (ARequest = arUpdate) and (ASender.FieldByName('EstDtl_ID').IsNull) then Normally it should be insert and not update for new record and the estdtl_id is not in the query, so that should raise an ecxception!?
  16. In the query I would include the b.ESTDTL_ID to have a unique ID for "ESTTDL table" and in the insert I would set b.est_id to a proper value. What is the content if this est_id field? Can it be null?
  17. When I understood you right, you have problems with inserting new records !? How looks your "TFDUpdateSQL.InsertSQL" ?
  18. Olli73

    Multithreading

    At least createCompomponents should not be synchronized so that components gets created in thread context.
  19. Olli73

    Printing Bitmap in FMX with a Thermal Printer

    Do you want to print under Windows or mobile phone? Under Windows you can follow the approach from Vincent. A printer driver must be installed under windows for that. Under mobile phone you should connect via bluetooth to the printer, establish a communication channel and send data in the "printer language" to the printer.
  20. ConvertThreadToFiberEx is a WinAPI function which exists since Windows Vista, so it cannot work under XP.
  21. Olli73

    Creating a Server Application using tidtcpserver

    Isn't it so that the IdContext is freed on connection loss and so I have no reference anymore to my data on reconnect? Then he could save the data reference in a dictionary (do not forget to use a locking mechanism) with IP address or any Unique Client ID as key and restore the data reference on reconnect.
  22. Olli73

    TEdit problem capital letters (Delphi 12, Android)

    Therefore I asked if it is Samsung! Samsung can everything except software! 😚
  23. Olli73

    TEdit problem capital letters (Delphi 12, Android)

    Then setting the control type to platform should work, as I have mentioned.
  24. Olli73

    TEdit problem capital letters (Delphi 12, Android)

    Happens that only in Delphi Apps? Then try to set the control type to platform for the edit. When it happens in all apps, which smartphone do you use? Samsung?
  25. Olli73

    Edge Webview2 Environment

    Is 32 / 64 bit matching between your app and webview?
×