Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
ListDialog.SetOtherButtonEvaluate
Sets the other button evaluate.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ListDialog | 9.5 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "ListDialog.SetOtherButtonEvaluate"; Expression ) More
Parameters
Parameter | Description | Example |
---|---|---|
Expression | The expression to evaluate. |
Result
Returns OK or error.
Description
Sets the other button evaluate.If set, we run this expression instead of closing the dialog.
This can be useful to start action while dialog stays open. Please note you can't run a script while dialog is open.
Other button is only visible if the label is set.
Examples
Add a button and let it run showurl to open website:
Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonLabel"; "Help") ]
Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonEvaluate"; "MBS( \"ShowURL\"; \"https://mbsplugins.eu\" )") ]
Make an add button to add entries into a list without closing dialog:
Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonLabel"; "Add") ]
Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonEvaluate"; "Let([$$list = $$list & MBS(\"ListDialog.GetSelectedTitle\") & Char(13)];1)") ]
See also
- Dialog.SetOtherButton
- ListDialog.GetOtherButtonEvaluate
- ListDialog.GetOtherButtonLabel
- ListDialog.GetSelectedTitle
- ListDialog.SetOtherButtonLabel
Release notes
- Version 13.2
- Changed ListDialog.SetOtherButtonEvaluate to query selection, so you can query it using ListDialog.GetSelectedTag and ListDialog.GetSelectedTitle in your expression.
- Version 9.5
- Added other button for ListDialog with ListDialog.GetOtherButtonEvaluate, ListDialog.GetOtherButtonLabel, ListDialog.SetOtherButtonEvaluate and ListDialog.SetOtherButtonLabel functions.
Blog Entries
- MBS Plugin Advent calendar: 22 - ListDialog
- MBS FileMaker Plugin, version 13.2pr3
- New functions of the MBS Plugin Version 9.5
- MBS FileMaker Plugin, version 9.5pr3
This function is free to use.
Created 11st October 2019, last changed 19th April 2023