Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Deleting portal row is deleting the child record??


This topic is 1511 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have tried to find the answer to this but cannot.  I have a HOUSE Table (parent) and an OCCUPANT Table (child).  I have a portal on the HOUSE layout showing the occupants for a particular house.  When I delete the occupant, it also deletes the occupants record!!  I do not have the delete box checked in the edit relationship dialogue box.  I have attached the file.   Thanks for any assistance.

HouseOccupantExampleForumQ.fmp12

Posted (edited)

Yes, deleting a portal row means deleting the child record shown in that row. There is nothing else to delete: a portal row has no existence of its own. If you want to remove the occupant from the portal and keep the occupant record as an orphan, you need to empty the house ID field in the occupant's record, not delete the portal row.

10 hours ago, Greg58 said:

I do not have the delete box checked

That box serves a different purpose; when checked on the Occupant's side,  it will delete all child occupant records when you delete the parent house record. IOW, it makes sure there are no orphans left in the child table when a parent is deleted.

Perhaps you were thinking of a different situation, where a person can live in more than one house. In such case there would be three tables - and deleting the record joining a person to a house would not affect the person's record itself.

 

Edited by comment
  • Like 1
  • 2 weeks later...
  • 3 weeks later...
Posted

Sorry but still having a problem with this.  I have tried several methods to remove the employee from the portal but not delete the child record, but having no success.  Would you mind having a look at the example file please??

CompanyEmployee.fmp12

This topic is 1511 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.