1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

FireDac and MemTable post to DB

Discussion in 'Delphi Programming' started by dudedolf2, Jan 11, 2015.

  1. dudedolf2
    Offline

    dudedolf2 DF Member

    [font=Arial, Liberation Sans, DejaVu Sans, sans-serif]Hi there,[/font]


    [font=Arial, Liberation Sans, DejaVu Sans, sans-serif]I am new to FireDac (and these forums, so be gentle) and trying to get my head around the components. I have used ClientDataSets before so, i guess i am expecting similar functionality. I have a FDQuery in a DataModule and would like to create views of this data at run time. The way i would have done this previously is to use ClientDataSets and the CloneCursor function. This would mean that i can work on an 'independent' dataset but still save changes to the source.[/font]


    [font=Arial, Liberation Sans, DejaVu Sans, sans-serif]However, with FireDac i cannot seem to do this. I tried to use CloneCursor on another FDQuery component but got a connection error (as it does not clone these properties). I partially got it working with a FDMemTable where i am able to clone and post changes to the dataset but in order to save to the DB i must call 'ApplyUpdates' on the source FDQuery.[/font]


    [font=Arial, Liberation Sans, DejaVu Sans, sans-serif]Am i missing something which is stopping me saving the data from the FDMemTable straight to the DB much like a ClientDataSet. I have tried applyupdates on the FDMemTable but no joy.[/font]


    [font=Arial, Liberation Sans, DejaVu Sans, sans-serif]Thank you for your time[/font]
     
  2. mehdi.jahangard
    Online

    mehdi.jahangard Guest

  3. sicmy
    Offline

    sicmy DF Junior

    thankyou
     

Share This Page