no1tmorrow Posted December 13, 2012 Posted December 13, 2012 I have a simple portal that i have placed a button on the portal row. I have tried just running "delete portal row" I have also tried tying it to a script that has the command "delete portal row". The problem is that if I click the button the row does not delete. Once in a while I can open up filemaker and get it to work but it is very random. I have watched the script get called in "script debugger" and have no errors. But yet it does not delete the record. Any ideas? Thanks Thom
LaRetta Posted December 13, 2012 Posted December 13, 2012 Is it possible that you allow creating new records in the portal and what you are trying to delete is the empty row? You can check in the graph, open the relationship and see if 'allow creation' is checked on the portal table's side.
no1tmorrow Posted December 13, 2012 Author Posted December 13, 2012 In the relationship of the portal. The portal is the child and has Allow creation of records in this table via this relationship and delete related records in this table when a record is deleted in the other table. Thanks Thom Small update. I went in and looked at my relationship and canceled out, making no changes and it is working. So it is very random.
LaRetta Posted December 13, 2012 Posted December 13, 2012 The relational 'delete in other' means nothing in this situation. You can still delete portal row by button or script as you are doing. But if you have 'Allow Creation' on, your portal will show a trash can or button on the last row even when there is NO RECORD there to delete. Could this be what is happening?
no1tmorrow Posted December 13, 2012 Author Posted December 13, 2012 I would say that is not the case since if I have 4 portal rows and I try to delete the 1st, 2nd, 3rd it does nothing so I don't think it is the not created yet row. I really appreciate your help... Thank you!!!
LaRetta Posted December 13, 2012 Posted December 13, 2012 Okay, well it wouldn't be permissions or you would get a message so let's keep looking... Do you have any script triggers on the layout? Are you sure the button is within the portal row? Are you sure that the table the portal is based upon doesn't have records which appear the same? Have you counted the related, deleted one via the portal, then counted related again? Otherwise I suggest you attach a zipped empty clone of your file so we can explore the issue further.
LaRetta Posted December 13, 2012 Posted December 13, 2012 I also wonder if a Commit Record[] step is removing it from the row. Seeing your script would help but file is best. :-)
Recommended Posts
This topic is 4362 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 accountSign in
Already have an account? Sign in here.
Sign In Now