How can I change dynamically a navigation button bar based on privileges. I have 6 modules and I dont want a user to access one of them. How can I do that?
Use the Hide Object feature?
I would use the new button bar for FileMaker 14 and make individual segments visible or not depending on the privileges. You'd need to capture the privilege set and then use the Hide object when function to hide when the priv set doesn't match. Each segment that needs to hide/show conditionally will need some calculation on it.
Jeremy is right.
You may need to tweak the button bar a little bit and have dummy buttons to be visible when you show fewer buttons, to make the size of the remaining buttons the same as before.
The new button bar is a beauty for this purpose.
If you are going to use the same navigation on more than one layout you may want to have one original version that you change and copy from.
If you put other functionality within the button bar than navigation, and reuse it on other layouts, you may have to consider context ... which Table Occurrence and place in the Relational Diagram is it based on ... to make sure that is work as expected.
You can start reading here:
Overview of Button Bars in FileMaker Pro | FileMaker
But be aware that there is one error in the text:
This is not true. You are absolutely able to add conditional formatting to a button bar.
You can have a look at the simple example I have added here.
The document statement is actually correct, technically. You cannot apply Conditional Formatting to a button bar. You can, however, apply it to a button bar segment, which is what we're discussing.
I did of course read the entire text, and since the text does not mention that conditional formatting work on the individual segment, my conclusion is that the information is wrong. 100%
It is misleading. If you read this text and believe it, you will not try and thus not use conditional formatting on the buttons.
Therefore I found it relevant to inform about the problem when recommending the text.
here is a cool way to do this and more.
Portal Based Menu Systems
Retrieving data ...