Is there a way of deleting a custom event (not just data) and removing it as an event? Would all the records have to be emptied?
I have wrongly specified as a custom event an item that ought to be an attribute.
ID:66
* Deleting custom events/attributes
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Deleting custom events/attributes
I passed this over to Simon at Calico who said
Jane
If you create a new custom event (imprisonment say), that event will appear in the list of events if and only if there is at least one Individual in the file (asssuming its an Individual custom event), who has an event of that type. If you delete all instances of the imprisonment event, the event itself is effectively deleted and will no longer appear in lists of events.
To delete all instances of a custom event such as imprisonment, simply create a query that returns that field for all individuals in the file. Then select each cell of the imprisonment column in the Results tab of the Query Window, and press the 'Delete' key. If some Individuals have multiple instances of the event, you can simply repeat this process until no more instances are found. See 'Delete Multiple Fields' in Chapter 11 of the User manual for more on this.
Incidentally its not especially recommended but you are not actually prevented from having a custom event and a custom attribute with the same name, if that helps. It carries an obvious risk of confusion for the user, but F.H. can cope with it OK.
You could run a query to find all the Individuals with the custom event in question, and use the Property Dialog to manually add an equivalent attribute for each one, before deleting the original custom event. As I'm sure you know, if you have a column that represents the record itself (e.g. an INDI column for Individual records) it will show the record icon in each cell of that column, and if you click on that cell, you can open the Property Dialog for that record and modify the record properties (or do whatever you like).
Simon
Jane
If you create a new custom event (imprisonment say), that event will appear in the list of events if and only if there is at least one Individual in the file (asssuming its an Individual custom event), who has an event of that type. If you delete all instances of the imprisonment event, the event itself is effectively deleted and will no longer appear in lists of events.
To delete all instances of a custom event such as imprisonment, simply create a query that returns that field for all individuals in the file. Then select each cell of the imprisonment column in the Results tab of the Query Window, and press the 'Delete' key. If some Individuals have multiple instances of the event, you can simply repeat this process until no more instances are found. See 'Delete Multiple Fields' in Chapter 11 of the User manual for more on this.
Incidentally its not especially recommended but you are not actually prevented from having a custom event and a custom attribute with the same name, if that helps. It carries an obvious risk of confusion for the user, but F.H. can cope with it OK.
You could run a query to find all the Individuals with the custom event in question, and use the Property Dialog to manually add an equivalent attribute for each one, before deleting the original custom event. As I'm sure you know, if you have a column that represents the record itself (e.g. an INDI column for Individual records) it will show the record icon in each cell of that column, and if you click on that cell, you can open the Property Dialog for that record and modify the record properties (or do whatever you like).
Simon
Deleting custom events/attributes
Thanks or the help! FH seems to be able to do almost anything you can ask of it![smile]