Page 1 of 1

Rearrange Column Headings in Where Used Record Link plugin

Posted: 18 Apr 2018 06:29
by David2416
I would like to move the Where within Source column leftwards. I tried copying the Plugin and renaming before amending the code but when I tried to install the amended Plugin it got the message already installed.

How should I go about this please?

Re: Rearrange Column Headings in Where Used Record Link plugin

Posted: 18 Apr 2018 08:02
by tatewise
Hi David,
The technique is much the same as you might use to create a duplicate Word document with a similar name.

In Tools > Plugins select the current Where Used Record Links Plugin and click Edit in the pane on right.
In the Plugin edit window change the @Title: to the new name, e.g Where Used Record Links New.
Use File > Save As and give it that new Plugin title.

Now use Edit > Find and search for dicType.
A few lines further down at about line 200 you will find script such as:
doTypeDetails( "SOUR" , "Media" )
Move the line:
doTypeDetails( "SOUR" , "~.PAGE" , 180, "Where within Source" )
up to just below the line:
doTypeDetails( "SOUR" , "Media" )
You can reorganise the other lines to suit the column order you require.
The numerical parameters specify the column widths.

That script around line 200 customises the Result Set for each record type.
The common columns are handled near the end of the Plugin around line 440.
The fhOutputResultSetColumn(...) functions format each column.
You can rearrange those too if you wish.

When finished editing use File > Save then X Close the window and Run your new Plugin.

Re: Rearrange Column Headings in Where Used Record Link plugin

Posted: 18 Apr 2018 17:54
by David2416
Many thanks Mike, have managed to change column order to suit my need. Have been using this plugin while converting Method 2 census entries to Method 1. Making a few discoveries as I work through, especially with items I recorded many years ago.