![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Although I have privately used FM for many years it has only been simple unrelated files. If I have a Customer table related to an invoice table :- What is the correct process to delete a single line item from the invoice table without deleting the customer as well from the customer table. John G. |
#3
| |||
| |||
|
|
No straightforward answer. all depending on your setup. But the simplest would be if you had a portal in customer showing all related invoices. Then it would require a script with only one step (Delete Current Portalrow) and a button on the first portal row firing the script. Ofcourse this deletes the related record without any confirmation, you have to add this to the script if you want. -- Keep well / Hou je goed Ursus "John G." <greentest (AT) ozemail (DOT) com.au> schreef in bericht news:4aade71d$0$27597$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au... Although I have privately used FM for many years it has only been simple unrelated files. If I have a Customer table related to an invoice table :- What is the correct process to delete a single line item from the invoice table without deleting the customer as well from the customer table. John G. |
#4
| |||
| |||
|
|
Thanks for the help. I am sure I can develop something from that clue. But I would have thought there should be a way to delete a "record" from the detail table when looking at a list view of just the details without deleting the master part. This is mostly a learning experience on my part as the application is just for me and the world won't end if I don't get it right. Thanks agian for your help. John G. "Ursus" <ursus.kirk (AT) ziggo (DOT) nl> wrote in message news:237b5$4aae01cd$53578889$10719 (AT) cache4 (DOT) tilbu1.nb.home.nl... No straightforward answer. all depending on your setup. But the simplest would be if you had a portal in customer showing all related invoices. Then it would require a script with only one step (Delete Current Portalrow) and a button on the first portal row firing the script. Ofcourse this deletes the related record without any confirmation, you have to add this to the script if you want. -- Keep well / Hou je goed Ursus "John G." <greentest (AT) ozemail (DOT) com.au> schreef in bericht news:4aade71d$0$27597$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au... Although I have privately used FM for many years it has only been simple unrelated files. If I have a Customer table related to an invoice table :- What is the correct process to delete a single line item from the invoice table without deleting the customer as well from the customer table. John G. |
#5
| |||
| |||
|
|
I am sure I can develop something from that clue. But I would have thought there should be a way to delete a "record" from the detail table when looking at a list view of just the details without deleting the master part. This is mostly a learning experience on my part as the application is just for me and the world won't end if I don't get it right. |
#6
| |||
| |||
|
|
On 2009-09-14 02:27:49 -0700, "John G." <greentest (AT) ozemail (DOT) com.au> said: I am sure I can develop something from that clue. But I would have thought there should be a way to delete a "record" from the detail table when looking at a list view of just the details without deleting the master part. This is mostly a learning experience on my part as the application is just for me and the world won't end if I don't get it right. Take a look at the relationship between the table occurences. If you have "Delete related record in this table when a record is deleted in the other table" set on, in either direction, there will be effects. If it's set for the child table, and you delete the parent, you'll lose all the child records on deleting the parent. If it's set on the parent table, you'll lose the parent every time you delete a single child. If you've lost the parent record after deleting a child record from a list view, I suspect this is what you've got. Normally, deletion permission should only be set on child tables. Many developers script their child record deletion so that it doesn't fire when they don't want it to. Setting deletion in both directions on a relationship will set up a circular thing I have no idea what will happen. Could be very bad. Also, make very sure that if you have a constant relationship (using a calc of 1 in either or both tables) and you set deletion on, you'll lose the entire table of data if you delete one record in the other. This also works for Cartesian relationships. Cascading deletes, where a parent, child, grandchild and so on, string of tables all have deletes turned on, can be very very slooooow. Not recommended. Luckily, the deletion option is set off by default, so you have to very deliberately choose the directionality of your deletion, if any. Lynn Allen FM 10 Certified Developer Long Beach, CA |
#7
| |||
| |||
|
|
Thanks to you all I think I have a better understanding now and can do what I wanted to do. How did we solve little understanding difficulties before we had News groups and the rest of the internet to ask others these questions? |
#8
| |||
| |||
|
|
Thanks to you all I think I have a better understanding now and can do what I wanted to do. How did we solve little understanding difficulties before we had News groups and the rest of the internet to ask others these questions? |
(
)
#9
| |||
| |||
|
|
"John G." <greentest (AT) ozemail (DOT) com.au> wrote in message news:4aaf7100$0$27611$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au... Thanks to you all I think I have a better understanding now and can do what I wanted to do. How did we solve little understanding difficulties before we had News groups and the rest of the internet to ask others these questions? By reading the manual that used to be included with software (and hardware), but rarely is these days. The software "Help" is useful, but not very comprehensive. (Helpful Harry )In my days (long ago) of teaching in company training schools I was renowned |
#10
| |||
| |||
|
|
"Your Name" <your.name (AT) isp (DOT) com> wrote in message news:h8oums$nd7$1 (AT) lust (DOT) ihug.co.nz... "John G." <greentest (AT) ozemail (DOT) com.au> wrote in message news:4aaf7100$0$27611$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au... Thanks to you all I think I have a better understanding now and can do what I wanted to do. How did we solve little understanding difficulties before we had News groups and the rest of the internet to ask others these questions? By reading the manual that used to be included with software (and hardware), but rarely is these days. The software "Help" is useful, but not very comprehensive. (Helpful Harry )In my days (long ago) of teaching in company training schools I was renowned for saying "RTFM" but sometimes little details still escape one just reading the Help, so a few clues from this group, who always seem very ready to help, just filled in a little gap that may have taken ages to realize on my own. Thanks again to those who answered, and keep up the good work. PS this seems to be one of the better NGs, free from politics and personal attacks. John G. Reading the manual may not have helped much. |
![]() |
| Thread Tools | |
| Display Modes | |
| |