GetNthRecordFiltered ( primary_fieldname ; controlvalue_fieldname, recordNumStart; recordNumEnd; filterValue )
Rate this function: Average rating: 3.1 (10 votes) Discuss this Custom Function
Kenneth Durrum, Released Solutions
http://www.releasedsolutions.net
This function enables you to select a set of related records of a single field based on a value of a second field that is filtered by a keyword.
Sample Input:
| GetNthRecordFiltered (locationName, FoodServed,1,100,"Pizza") |
|
Sample Output:
Pizza Hut
Johnny's Pizza
Pizza World
Sal's Pizza
Sabarro |
|
Description:
Use this function to obtain a list of values based from a field based on the filtering of another field. In the example listed in the sample input we have a field called locationName which holds a list of eatery locations. In the FoodServed field in the same table as the locationName field we have store the values of the food items served at the location.
The function loops through the return values of the related field and only returns the locationNames of the records that contain the filterValue in the FoodServed field.
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:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 2. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 3. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 4. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 5. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 6. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 7. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
| 8. |
CenterWindow in Window vert horiz (demension) |
| |
(Fri, Jan 06, 12:25pm) |
 |
|