Brian Dunning's FileMaker Custom Functions

GroupRelationInfo ( FileTarget ; TableTarget ; Result )

To retrieve a list of occurrences or fields only for a group of links.

  Average rating: 4.6 (38 votes) Log in to vote

Agnes Barouh   Agnes Barouh - Show more from this author
Tic Tac
http://www.tictac.fr/CoinFileMaker/Page.html

Share on Facebook Share on Twitter

  Sample input:
GroupRelationInfo ( Get ( FileName ) ; Get ( LayoutTableName ) ; 0 )



--------------------------
GroupRelationInfo ( Get ( FileName ) ; "cre_CRE_Table" ; 1 )
  Sample output:
cre_CRE_Table
cre_TAF_TableAndField
cre_CRE_CustomReport
cre_FTA_FileTarget

--------------------------
cre_CRE_Table::zkv_TargetFile
cre_CRE_Table::zkp_IDCustomExport
cre_CRE_Table::ResultatExport
cre_CRE_Table::zkv_TargetTable
cre_CRE_Table::zc_FileTargetTable
cre_TAF_TableAndField::zkp_IDTableAndField
cre_TAF_TableAndField::zkv_ClefMagique
cre_TAF_TableAndField::ColSpan
cre_TAF_TableAndField::RowSpan
cre_TAF_TableAndField::VerticalAlign
cre_TAF_TableAndField::TextAlign
cre_TAF_TableAndField::zks_IDCustomExport
cre_CRE_CustomReport::zkv_TargetFile
cre_CRE_CustomReport::zkp_IDCustomExport
cre_CRE_CustomReport::ResultatExport
cre_CRE_CustomReport::zkv_TargetTable
cre_CRE_CustomReport::zc_FileTargetTable
cre_FTA_FileTarget::zkp_IDTableAndField
cre_FTA_FileTarget::zkv_ClefMagique
cre_FTA_FileTarget::zks_IDCustomExport
cre_FTA_FileTarget::TableField

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

-----------------------------------------
it is not a recursive function
Requires CustomList ( start ; End ; Function )
-----------------------------------------

To retrieve a list of occurrences or fields only for a group of links.
3 parameters, the filename and the target occurrence and the desired result

//----------- 3 parameters
FileTarget : Get ( FileName ) or name of a file open or related file

TableTarget : name of the target occurrence, between quotes or Get ( LayoutTableName )

Result : Field or F or 1 or Table or T or 0 ( default : Table )
> If Result = Table or T or 0, returns a list of all occurrences of tables related to "TableTarget".
> If Result = Field ou F ou 1, returns a list of all fields of occurrences of tables related to "TableTarget" as Table::Field
( returns the list of fields contained in a layout if the occurrence in the same name as a layout )


Carreful :
On the code, you have 25 :
(...)
Trigger = CustomList ( 1 ; 25 ; (...)

> Is the RelationInfo_Max : 10 or 200 or n Occurrences related of max 25 Occurrences related in line :
Occurrence1 <-> Occurrence2 <-> [...] <-> Occurrence25

------------
- You can filter the list with FilterList()
http://www.briandunning.com/cf/771
- And you can suggest fields to a user to export only data from an related group.

 

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: