* Media image placement in Summary reports

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
servodX10
Silver
Posts: 5
Joined: 04 Apr 2019 07:01
Family Historian: V6.2

Media image placement in Summary reports

Post by servodX10 » 04 Apr 2019 07:28

An individual summary report runs fine.
When media was entered into Family Historian (6.2.7) it was as the media files were obtained, and since then years (1900- 2009) have been entered so that I have an ordered sort on early to current images. When I print however I can not get the same order, they print out as entered.
Now, I can alter "Pref" entries column, but with something like 150 entries to move around it is a bit of a battle.
Is there a way to select "Date" output instead of the default "Pref" :?: :idea:

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Media image placement in Summary reports

Post by Jane » 04 Apr 2019 08:36

I don't think there is an option for that, but you could write a plugin to sort the Individual media by date if that is the media you mean. I assume you are talking about media attached to the Individual on the media tab rather than attached to events or sources.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Media image placement in Summary reports

Post by Jane » 04 Apr 2019 09:48

I have put together a very quick plugin for this. Please test carefully on a COPY of your Project.

It will prompt for a single record, but once tested it would be easy to change to work on multiple records.
Sort Individual Media By Date.fh_lua
(2.35 KiB) Downloaded 144 times
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
servodX10
Silver
Posts: 5
Joined: 04 Apr 2019 07:01
Family Historian: V6.2

Re: Media image placement in Summary reports

Post by servodX10 » 04 Apr 2019 09:59

Jane,
Bless you, I was about to dust off my programming skills, haven't used them for 25 years.
This will be fun.
Regards,
Ronald.

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Media image placement in Summary reports

Post by Jane » 04 Apr 2019 12:33

You are welcome, 25 years ago was probably the last time I actually wrote a bubble sort from scratch. Not very efficient, but I think it does the job OK.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Media image placement in Summary reports

Post by tatewise » 04 Apr 2019 13:15

As an aside, why did you not convert each Date into some yyyymmdd format and use the table.sort(...) function?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Media image placement in Summary reports

Post by Jane » 04 Apr 2019 14:39

I would have still had to reorder the items so it made more sense to me to do it in-line.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

Post Reply