Brian Dunning's FileMaker Custom Functions

GlobalList ( KeepTable ; ExcludeTable ; KeepGlobal ; ExcludeGlobal ; Attribute ; Option ; View )

Have a list or content of globalFields for the whole or part of a file.

  Average rating: 4.2 (53 votes) Log in to vote

Agnes Barouh   Agnes Barouh
Tic Tac
http://www.tictac.fr/CoinFileMaker/Page.html

Share on Facebook Share on Twitter

  Sample input:
GlobalList( "z_"; “_ctc_¶z_s” ; "zkv_¶zki_"; "zkv_g"; “Source” ; “1” ; “List” )
-----------------
GlobalList( "z_"; “_ctc_¶z_s” ; "zkv_¶zki_"; ""; “Content” ; “0” ; “Web” )
  Sample output:
List of globalFields
name & type & comment
-----------------
List of globalFields
name & type & comment & content. table
[saw file example please]

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

File Example here :
http://www.tictac.fr/CoinFileMaker/PageGlobalList.html


GlobalList ( KeepTable ; ExcludeTable ; KeepGlobal ; ExcludeGlobal ; Attribute ; Option ; View )v3.1
requires CustomList( start; End; Function )
Not Recursive
------------------------------------

Have a list or content of globalFields for the whole or part of a file.
Keeps global, simple, calculated or not, repeating field or not.

• returns the list of global used: occurrence, types, comments, names and content, for all occurrences selected.
• as filters and options selected results. 3 different formats list.

• If your selected occurrences have the same name as your layout, you only get the overall list are placed on your layout.
• Depending on the size of the file, the calculation may take a long time, it is important of filtering tables and field to maintain and exclude.

1/ Filter parameters of Table Occurrences, KeepTable & ExcludeTable,. Not case sensitive, Empty, one or more as a list..

> KeepTable : Empty or value(s) • Empty : the global list for all occurrences of your file.
• Not Empty : the global list for all occurrences whose name contains one of the values.

> ExcludeTable : Empty or value(s) • Empty : the global list for all occurrences of your file. selected with KeepTable
• Not Empty : excluded from the list overall global for occurrences whose name contains one of the values.

Example : GlobalList( "z_"; “_ctc_¶z_s” ; ... :
Returns a list of all global for occurrences containing "z_" in their name, but not containing "_ctc_" or "z_s"

2/ Filter parameters of globals , KeepGlobal & ExcludeGlobal. Not case sensitive, Empty, one or more as a list..

> KeepTable : Empty or value(s) • Empty : the global list for all occurrences previously selected.
• Not Empty : List only the global whose name contains one of the values for occurrences previously selected.

> ExcludeTable : Empty or value(s) • Empty : the global list selected with KeepGlobal
• Not Empty : excluded from the list overall global whose name contains one of the values for occurrences previously selected.

Example : GlobalList( "z_"; “_ctc_¶z_s” ; "zkv_¶zki_"; "zkv_g"; ... :
Returns a list of all global whose name contains "zkv_" or "zki_" but not containing "zkv_g" for occurrences previously selected.

3/Parameters result, Attribute, Option & View :

> Attribute : Source or Content (or S or C ). Empty, no résult.
• Source : list of occurrences selected with global field name selected :
NameTable1¶NameTable1::GlobalName1¶NameTable1::GlobalName2, if not global, returns "-NoGlobalFound-"
• Content : Add in the list the content for each global selected, if the content is empty, returns "-Empty-"

> Option : 1 or Empty
• “1” : add in the list , type and field comments for each global selected.

> View : “List” or “Web” or Empty
• Empty : List without “mise en page” (with • and ——)
• “List” : List with "mise en page".
• “Web” : List in table format, readable in a Web Viewer or exported, including HTML

Example :
GlobalList( "z_"; “_ctc_¶z_s” ; "zkv_¶zki_"; "zkv_g"; “Source” ; “1” ; “List” )
GlobalList( "z_"; “_ctc_¶z_s” ; "zkv_¶zki_"; ""; “Content” ; “1” ; “Web” )

 

Comments

Log in to post comments.

 

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

Under construction. Email me your wish list for improvements.