SyntaxColoring.RelationshipGraphSearchBox.SetEnabled
----------------------------------------------------

Enables or disables relation graph search box.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [5.4](newinversion54.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.RelationshipGraphSearchBox.SetEnabled"; Value ) 

**MBS**( **"SyntaxColoring.RelationshipGraphSearchBox.SetEnabled";** /\* Enables or disables relation graph search box. \*/  
**$Value**) /\* The new setting. Pass 1 to show button or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting. Pass 1 to show button or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Enables or disables relation graph search box.  
MBS Plugin offers to add a search box on macOS to the relation graph and this function sets the preferences on whether it's added or not.  
This setting can be set via the preferences dialog, too.  
  
The search box is hidden, if the initial gathering of table names via SQL fails, e.g. due to a permission error.  
### Examples

Disables search box:

 MBS ("SyntaxColoring.RelationshipGraphSearchBox.SetEnabled"; 0)  
Enables search box:

 MBS ("SyntaxColoring.RelationshipGraphSearchBox.SetEnabled"; 1)  
### See also

- [SyntaxColoring.CheckVariableDeclaration.Enabled](SyntaxColoringCheckVariableDeclarationEnabled.md)
- [SyntaxColoring.CopyButton.SetEnabled](SyntaxColoringCopyButtonSetEnabled.md)
- [SyntaxColoring.LineNumbers.Enable](SyntaxColoringLineNumbersEnable.md)
- [SyntaxColoring.RelationshipGraphSearchBox.GetEnabled](SyntaxColoringRelationshipGraphSearchBoxGetEnabled.md)
- [SyntaxColoring.ScriptGoToBox.SetEnabled](SyntaxColoringScriptGoToBoxSetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)
- [SyntaxColoring.SetScriptHighlightColor](SyntaxColoringSetScriptHighlightColor.md)

### Blog Entries

- [Goodies 36: Shortcuts for align in relationship graph](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/36-Shortcutsforaligninrelationshipgraph.shtml)
- [Goodies 7: Search field for relationship graph](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/07-Searchfieldforrelationshipgraph.shtml)

This function is free to use.

Created 10th October 2015 , last changed 7th October 2020

  
[SyntaxColoring.RelationshipGraphSearchBox.GetEnabled](SyntaxColoringRelationshipGraphSearchBoxGetEnabled.md) - [SyntaxColoring.RemoveContextMenuCommand](SyntaxColoringRemoveContextMenuCommand.md)

[HTML Version](SyntaxColoringRelationshipGraphSearchBoxSetEnabled.shtml)