Page 1 of 1
Buttons
Posted:
Sun Sep 05, 2010 12:52 am
by brentjohn
I want to change the current button’s (ex: Calendar – “Dayâ€
Posted:
Sun Sep 05, 2010 6:48 am
by John Sindelar
Hey there,
You need to send a script parameter when your button calls that script: send something like "calendar week" to see how it works. You can see which parameters are being used by examining the exiting buttons in layout mode.
Hope that helps,
John
Posted:
Sun Sep 05, 2010 10:46 am
by brentjohn
John,
I have examined the existing buttons and was using the same script “Go to Calendar Tab (Tab Name)â€
Posted:
Sun Sep 05, 2010 1:29 pm
by brentjohn
John,
I have tried several times to create a new button, use the same script as the other Calendar buttons (Day, Week, Month, Year, Schedule, Grid, and Gantt), but nothing happens. Am I missing something?
Posted:
Sun Sep 05, 2010 3:04 pm
by John Sindelar
Hey Brent,
That script (Go to Calendar Tab (Tab Name)) requires a script parameter be sent to it. If you haven't used those before, look that up in FileMaker's built in help. The grab that whole Day, Week, etc button bar (copy it) and paste it on a new layout: begin ungrouping it until you're warned about the buttons and stop. Now double click on the Day or Week button: you'll see that in addition to specifying a script, the button sends a script parameter along with it. I think that is what's missing in your new buttons: you're not specifying a script parameter.
Hope that helps,
John
Posted:
Sun Sep 05, 2010 3:46 pm
by brentjohn
John,
Success!!!
Thank you for your assistance… I’m sure there will be more of these “Duh…â€
Posted:
Sun Sep 05, 2010 4:02 pm
by John Sindelar
Congrats Brent! Just backup your file frequently so you aren't afraid to make mistakes.