Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

GetFieldList ( fieldName ; recordNumStart ; recordNumEnd )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.3  (34 votes)
  Discuss this Custom Function

Don Wieland, DW Data Concepts
http://www.dwdataconcepts.com

Gets a Range of field values for local or related field

Sample Input:
GetFieldList (Color , 1, 3)

when a field called color has these values:

Record 1 = Blue

Record 2 = Yellow

Record 3 = Blue

Record 4 = Red
Sample Output:
Blue
Yellow
Blue


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

Gets a Range of field values for local or related field. Returns a hard return delineated list.

Duplicates will NOT be omited. The equililent to a TextSum that some FMP plug-ins offer.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

Don,
This function does not seem to behave as expected if the last field in the found set is null.

For example, in a found set of 10 records, the "Nothing" field is all Null values. I would expect to have this

Valuecount(getfieldlist(Table::Nothing, 1, get(foundcount)))

to return "10" (for the the ten null values).

Instead this returns 9.

In fact, I've had some issues with this if ONLY the last field is Null.

Any ideas?

- Christian

Christian, Minneapolis
February 17, 2011 7:07pm

Didn't want to create new function entry, as this is basically the same. I use this all the time, but I only ever use it to obtain complete lists of all field values (including blank) for foundset. It will be a value list of the exact length of the foundset (carriage returns within values will have been escaped). And I use it for really large foundsets. So I switched it to tailend recursion to enable up to 50k, and created a handler function:

GetFieldList ( fieldName )
=======
// Usage: GetFieldList ( Table::FieldName ) or GetFieldList ( GetField("Table::FieldName" ) )

GetFieldList_part ( fieldName ; 1 ; Get ( FoundCount ) ; "" )
=======


The sub-function:

GetFieldList_part ( _fieldName ; _start ; _end ; _valueList )
=======
// Switched to tail end, 2012, Thomas Seidler - to allow 50k

Let (
_thisVal = Substitute( GetNthRecord ( _fieldName ; _start ) ; "¶"; "\¶" ) ;

If (
_start < _end ;
GetFieldList_part ( _fieldName ; _start + 1 ; _end ; _valueList & _thisVal & "¶" ) ;
_valueList & _thisVal & If(IsEmpty(_thisVal);"¶")
)

)

Thomas Seidler, London
July 04, 2013 6:25am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 2 + 9 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions