Brian Dunning's FileMaker Custom Functions

GetRowsXML ( fieldList ; startRow ; endrow ; type ; encodeFlag )

Returns data in XML format for multiple fields and multiple records

  Average rating: 4.5 (33 votes) Log in to vote

Bruce Robertson   Bruce Robertson - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
GetRowsXML( fieldNames( get(fileName); "Audit"); 1; 3; "auditRecord"; 1)
  Sample output:
<auditRecord>
<RecordID>R3</RecordID>
<TheDate>9/1/2006</TheDate>
<TheNumber>3</TheNumber>
<TheText>Marginalx</TheText>
<TheTime>4:20 AM</TheTime>
</auditRecord>
<auditRecord>
<RecordID>R4</RecordID>
<TheDate>1/1/2007</TheDate>
<TheNumber>87</TheNumber>
<TheText>Whatever</TheText>
<TheTime>2:00:00</TheTime>
</auditRecord>
<auditRecord>
<RecordID>R14</RecordID>
<TheDate>4/3/2007</TheDate>
<TheNumber>12</TheNumber>
<TheText>Elfish</TheText>
<TheTime>12:00:00</TheTime>
</auditRecord>

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

Returns data in XML format for multiple records starting at startRow ending at Endrow. You may specify TYPE which will add a start and end tag for each record, see example.

MODIFIED 4/14/07

Added encodeflag required by new version of GetNthRecordXML. If encodedflag is set to 1 characters like ">" are encoded as "&gt;" otherwise field data is returned unchanged.

 

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: