Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Need a checkbox to mark record for deletion


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

Recommended Posts

Posted

Ok, maybe its that Ive been looking at the screen too long, combined with my newness to FMP -

but I cannot figure out how to make one single checkbox on my layout that when checked marks that record for deletion.

I would like a checkbox where users can mark records... they stay marked until the button gets clicked that does a find for those with checks and deletes all the records of that find.

Can someone help me? My head hurts! hahahah

Posted

Create a number field, flag_IsMarked.

Use Field>Setup to format it as a checkbox with a value list that just contains the number "1" (no quotes).

The button finds all records flag_IsMarked =1, and then I'd pop a dialog to confirm deletion.

Posted

I prefer to do my marking records usually by storing a global text field with the IDs of the records that I have marked. In this case, you can then do a simple script with GTRR and then delete the found set. It avoids record locking as well as different sets for different people.

Posted (edited)

I usually collect IDs in a global, too, but in this case don't you feel that it is better to store the mark in the record? Delete can happen through a loop instead of isolating marked and Delete Found Set, but the worst case is that you're left with a marked record that couldn't be deleted bcs another user had it open.

Edited by Guest
Posted

I guess I can see your point. I guess in the end it really would depend on the business process.

Posted

Well, thanks. As for biz process...that's something we're often left to wonder about here.

This topic is 5640 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.