JSONforLayoutFields ( Layout )
Builds a JSON object for the non empty fields on the specified layout
Be the first to rate this function Log in to vote
Neil Manchester - Show more from this author
NDMW |
"FirstName": "Jeremy",
"LastName": "Brown",
"Address": "Somewhere in Orlando",
"ReasonMoved" : "Done with winters"
}
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This function uses a While loop to build a JSON object containing the field names and values on the specified layout.
Comments
Jesus Sanchez, dbFile Desarrollos May 4, 2020 |
||
Great function Neil, just a comment, as you have already evaluated _fieldEmpty , you can substitute this part: _json = If ( IsEmpty ( GetField ( GetValue ( _fieldNames ; _n ) ) ) with: _json = If ( _fieldEmpty; _json; JSONSetElement..... Thanks for function. |
||
Neil Manchester, NDMW May 4, 2020 |
||
Hi Jesus. Great spot! I've updated the CF. Many thanks | ||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.