logo
down
shadow

Usage for LiveBinding


Usage for LiveBinding

By : 18ck
Date : December 05 2020, 12:23 PM
hop of those help? I doubt v. much that anyone would use live bindings if they could use traditional db-aware VCL components. However, that's not an option for non-VCL projects (Android, Apple, etc) and live bindings is the only Emba-supplied option for delivering data to those from TDataSet descendants.
An advantage of live bindings is that in addition to the Android and Apple targets, you can use them in Windows apps, so conceivably you could write the same (FMX-based) application for all three.
code :


Share : facebook icon twitter icon
Why can't I do LiveBinding against a data module in XE5?

Why can't I do LiveBinding against a data module in XE5?


By : Shawn
Date : March 29 2020, 07:55 AM
I wish this help you You need to ensure that your data module is created before your form. This is so when the form is opened, there's an instance (in this case) of dmdLocal which in turn has an instance of the datasource you're after - in this case dsModels. Otherwise you could assign the property at runtime once you know your datamodule has been created.
FormatFloat in Livebinding

FormatFloat in Livebinding


By : Aeolikos
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further You can use something like Format('%%.1f',%s) See Mike Sutton's answer here on SO: Using Format in a livebindings CustomFormat
LiveBinding value can not be set by code

LiveBinding value can not be set by code


By : user2157980
Date : March 29 2020, 07:55 AM
wish helps you Unfortunately due to the design the bindings are not triggered by the setter of the Value property but by the GUI interaction (mouse clicks or key presses).
You can see that by adding an OnAssigningValue event handler to your TLinkControlToProperty binding and then looking at the callstack when it triggers.
code :
TBindings.Notify(TrackBar1, 'Value');
TLinkObservers.ControlChanged(TrackBar1);      
How to refresh TListView LiveBinding with TAdapterBindSource

How to refresh TListView LiveBinding with TAdapterBindSource


By : user2862929
Date : March 29 2020, 07:55 AM
this will help I found a solution to refresh the TListView.
The issue happened due to re-create of TObjectList here:
code :
FreeAndNil(FList);
FList := TDataList.Create; // re-create the list, then create Tdata object and add to it again.
FList.Clear();
// then add objects to it again, such as FList.AddRange(...)
Livebinding Listbox in Delphi xe2

Livebinding Listbox in Delphi xe2


By : starlight
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further In short this is how i did this as a firemonkey application, same should work with vcl i guess:
Create a new firemonkey HD application
Related Posts Related Posts :
  • Do Delphi IDEs have a project/grouproject's file count and line count functionality?
  • To check if a query returns more Fields than when you created it and defined its persistent fields
  • Increment a value like 'CJana001' in delphi object pascal
  • Delphi IdFTP Timeout
  • FireMonkey Getting FMXObjects at runtime using RTTI
  • "Floating point overflow" error in Delphi code
  • How generate uniformly distributed random numbers between 0 and 1, in Delphi
  • delphi: generate random data for cryptographic
  • Delphi Format Strings - limits for width and precision values?
  • Upgrading Delphi 7 Indy 9 app to Indy 10 (II)
  • How to Extract sub-string after delimiter but ignore if found between two tags?
  • responding to dbCheckbox changes programmatically
  • Why doesn't the compiler recognize "exports" when I convert a unit into a standalone project?
  • display cxSchedulerHolidays editor from application
  • Desktop application with custom uri schema, "Missing scheme" on token request
  • Using TDictionary "for...in"
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com