This is a simple question. Start a multidevice App, place a TDateEdit and DBTable with a field containing TdateTime data. Then use LiveBinding designer link the data source field to TDateEdit.DateTime property. However, this link is unidirectional , The control DateEdit can accept the data from the Datasource, but cannot update the changes to the datasource. How to change the link to bidreiction???
TDateEdit cannot LiveBinding with a datasource bidirection
158 Views Asked by Haizhou At
2
There are 2 best solutions below
0
David Cornelius
On
If you use the LiveBindings Wizard to hook the DateEdit with a field, it will hook it up bi-diretionally to a "virtual" SelectedDateTime property of the DateEdit. That property doesn't really exist in the TDateEdit but is used by the LiveBindings to map the separate Date and Time properties of the DateEdit.
Related Questions in DELPHI
- How can I read the header of request to webserver
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- Delphi - How to get result of function from QuickReport without viewing a report?
- Out of memory while adding documents to a Firebird BLOB field with Delphi
- How to MakeScreenshot fullpage on Delphi
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- How to Dynamically Add Controls to Delphi Form
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- TGrid/TStringGrid multi cell selection / multi editing in delphi firemonkey (12)
- How to localize "Today" in the Delphi TMonthCalendar?
- How can I call a SOAP webserver method in Vue.js?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- Save Form Properties in File and then restore those Properties after reopening
- Is it possible to open a blob without saving it to file
Related Questions in FIREMONKEY
- How to MakeScreenshot fullpage on Delphi
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- TGrid/TStringGrid multi cell selection / multi editing in delphi firemonkey (12)
- Tlabeledit component for FMX framework
- Fastest way to draw a wave distortion effect in Delphi FMX?
- Delphi FMX Android Printing with Sunmi V2 Device
- How to debug on Android device via WI-FI
- Default Text Property for Custom Button in Delphi
- How to capture Enter key (vkReturn) in Delphi FMX on Android?
- Getting list of devices plugged in in a pc (windows platform)
- Delphi FMX: How to write a custom shader filter?
- NetCom7 Chat Demo
- .dylib not Found Trying to Open the Program After Being Generated by PAServer
- Delphi - TakePhotoFromCameraAction - photo resolution
- How do I determine the "z-index" of a Firemonkey component that I have used SendToBack or BringToFront methods on?
Related Questions in BIDIRECTIONAL
- Hibernate: Bidirectional @OneToOne relationship
- How to make a bi-directional RecyclerView?
- Pan-able Layout (needs a little fix to work)
- Hibernate does not create foreign key in tables in bidirectional one-to-one relation
- Android mixed language text - BidiFormatter on String with RTL and LTR text
- Bidirectional string conversion in scala
- Hibernate: Bidirectional ManyToOne Mapping - inverse relation not working
- Spring Boot bidirectional ManyToOne constraint
- JPA one-to-one bidirectional mapping on same object using association table
- How to use multilayered bidirectional LSTM in Tensorflow?
- Add refrences to MongoDB schema within Symfony project
- How can I keep an Arabic character or word on the left of a string of Latin text on iOS?
- Threadsafe bidirectional association in Java
- Display bidirectional and composition relation UML class diagram
- Bidirecional dictionary WITH CASE-INSENSITIVENESS?
Related Questions in LIVEBINDINGS
- livebinding TMemo with two fields from TClientDataSet (dbExpress)
- How to dynamically link different tables to a stringGrid?
- C++ Builder Firemonkey Live Bindings not displaying data?
- Disable live bindings at run time
- Enum to String with Delphi LiveBindings
- Custom TListBoxItem Live Bindings Advice
- Right alignment of a FMX.TStringGrid column after data binding at runtime in C++builder
- C++ builder binding data at runtime
- Delphi Livebindings, Grid shows (BCD)
- How to Show images in ListView depends on the date
- Listbox does not show the changes made to the Dataset
- Delphi Live binding, error converting text to TStrings field
- how can i solve my Livebinding and combobox problem
- TDateEdit cannot LiveBinding with a datasource bidirection
- Updating TClientDataSet (with LilveBindings to controls) from non-VCL thread
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

There may be some things that are not clearly understood.
Normally a LiveBindings link will be bidirectional - so if you setup two
TDateEdits and bind them together changing one should change the other, irrespective of which one you change.It seems that what you are hoping is that changing the
TFieldwill update the data in the database table.That's not typically how the Data Access components in Delphi work.
The
TFieldis part of aTDataSet. TheTDataSethas aPostmethod to write changes to the underlying data store, if that's supported.The Data Access components are extremely powerrful and can cope with lots of different scenarios, and allow you to extended capabilities throguh exposed events as well as subclassing the components.
If you want to update your underlying data store you need to have a writeable
TDataSetand you need to callPoston it to write.I suggest you start off with some of the videos in Enbarcadero's YouTube channel about how to use the data acecss components. It's not difficult to do but beyond the scope of an answer here.