FillProperties ( PropertyList ; PropertyValues ; Separator ; Blanks )
Populates a full property list from a potentially incomplete list of values
Average rating: 4.4 (29 votes) Log in to vote
Peter Vinogradov - Show more from this author |
Business Manager: NONE LISTED
Secretary: Steve
(where LIST_AllJobs = "Director¶Business Manager¶Secretary" and
LIST_Employees = "Director=Bob¶Secretary=Steve")
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Presents a full list of properties (propertylist) with corresponding values taken from a separate list (propertyvalues) and displays them in the format:
PropertySEPARATORValue (or Blanks if no value)
Requires the TrimReturns function (Kieren MacMillan) and the getbetween function ( Koen Van Hulle)
These can be found at www.briandunning.com
UPDATED 7/4/06 - rewritten as a recursive formula for simplicity ( earlier version also stripped formatting of source parameters, which was undesirable)
From a solution where people are connected to institutions by specific job titles in a simple junction table. I needed a report that shows, for each institution, what person occupies each job, with blanks next to unoccupied jobs (or where data is incomplete). Rather than create a few dozen calculation or lookup fields to represent all the jobs, I use this formula to generate that section of the report. The lists that go into the formula can be dynamically generated from other data. The formula can be adapted to show something for missing values (see comments in formula)
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.