Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DialogModifications.Install

Installs feature which can rename dialog elements in FileMaker.

Component Version macOS Windows Linux Server iOS SDK
DialogModifications 4.3 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "DialogModifications.Install" )

Parameters

none

Result

Returns OK or error.

Description

Installs feature which can rename dialog elements in FileMaker.
Those functions are to rename text in a FileMaker dialogs. So before you run an operation which shows one of the built in dialogs, you can install, clear and set the items to replace. After the dialog finished you should call DialogModifications.Clear function. This makes sure you don't replace text when you don't expect this.
See also DialogModifications.Uninstall.

Added iOS support for MBS Plugin in version 12.2.

Examples

Install with setup:

MBS( "DialogModifications.Install" )
MBS( "DialogModifications.Clear" )
MBS( "DialogModifications.Set"; "Import", "Import of Contacts" )

Change stop script dialog on iOS:

# Install it
Set Variable [ $r ; Value: MBS( "DialogModifications.Install" ) ]

# Reset all replacements
Set Variable [ $r ; Value: MBS( "DialogModifications.Clear" ) ]

# Set our replacements
Set Variable [ $r ; Value: MBS( "DialogModifications.Set"; "Yes"; "Continue" ) ]
Set Variable [ $r ; Value: MBS( "DialogModifications.Set"; "No"; "Stop" ) ]
Set Variable [ $r ; Value: MBS( "DialogModifications.Set"; "Stop execution of the current script?"; "Do you like to stop the export?" ) ]

# do some important work
Set Variable [ $endTime ; Value: Get(CurrentTimestamp)+10 ]
Loop
    Set Field [ Sharing::counter ; $index ]
   
    # next
    Exit Loop If [ Get(CurrentTimestamp)> $endTime ]
End Loop

# stop for next script
Set Variable [ $r ; Value: MBS( "DialogModifications.Clear" ) ]

See also

This function checks for a license.

Created 18th August 2014, last changed 20th April 2022


DialogModifications.Clear - DialogModifications.List