Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Strange behaviour - Master Detail main record delete


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 7, 2016 6:25 PM Last Post By: John MacDonald Threads: [ Previous | Next ]
John MacDonald

Posts: 179
Registered: 3/22/98
Strange behaviour - Master Detail main record delete  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 7, 2016 3:30 PM
Ok, so this is a sample app that I have been using to learn about Interbase and FireDac at the same time.
I'm using a navigator to delete records and I came up with something strange.

I have Person ( Main file ) in one database with other tables to hold Address (T1), phone numbers(T2), and emails(T3).

I can add records now, thanks to new understanding....

When I try to delete records I get an error if the Address database is completely empty. (cannot perform this operation on an empty dataset)

If I type a character in and delete everthing is fine.

If the phone numbers or emails are empty there is no error.

John

John MacDonald

Posts: 179
Registered: 3/22/98
Re: Strange behaviour - Master Detail main record delete  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 7, 2016 6:25 PM   in response to: John MacDonald in response to: John MacDonald
False Alarm:

I had written a piece of code earlier and didn't figure in the address being empty.

Nothing strange...

John

John MacDonald wrote:
Ok, so this is a sample app that I have been using to learn about Interbase and FireDac at the same time.
I'm using a navigator to delete records and I came up with something strange.

I have Person ( Main file ) in one database with other tables to hold Address (T1), phone numbers(T2), and emails(T3).

I can add records now, thanks to new understanding....

When I try to delete records I get an error if the Address database is completely empty. (cannot perform this operation on an empty dataset)

If I type a character in and delete everthing is fine.

If the phone numbers or emails are empty there is no error.

John


--
JMAC out
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02