A format button for the data viewer

In MBS FileMaker Plugin 15.3 we have a Format button on macOS for the data viewer's detail view. If the data is XML or JSON, we can use the format and colorize functions: JSON.Format & JSON.Colorize, XML.Format & XML.Colorize.

Let's say you have some variables in the data viewer with XML or JSON content.

When you double click the text, you get a new window showing the detail. Here we find the Format button added by MBS Plugin. Press the button and it will format the content:

If we get a parse error or the content is not XML/JSON, we beep.

If you click OK, the formatted text is stored in the variable. If you press cancel, the unformatted text stays in the variable.

Please try the feature and let us know what you think. Available for macOS in MBS FileMaker Plugin 15.3.

10 Likes

This is great! Could you please add it to the Insert Text script step as well? Thank you