mhudd Posted February 11, 2002 Posted February 11, 2002 I have a portal set up and a buttom on each line of the protal that is scripted to delete the row. The window that is displayed when the delete script is run is titled FileMaker Pro and indicates "Permanently delete this one related record?" How do I gain control over the contents of this window so that I can title it and use my own description?
Fitch Posted February 11, 2002 Posted February 11, 2002 Macs don't see window titles on alert messages, but as for the contents: make a script using the Show Message command. You'll also want to use the Status(CurrentMessageChoice) function, the online help has the details.
Vaughan Posted February 11, 2002 Posted February 11, 2002 Beep Show Message [ "Delete this portal row?", Cancel, OK ] If [ Status (CurrentMessageChoice) = 2 ] Delete Portal Row [ no dialog ] End If The Show Message step has two buttons: first is Cancel, second is OK (or Delete if you prefer). Button 1 is always default, and it's customary on interface design not to make the default button perform an action that does damage that cannot be reversed -- like delete a record.
mhudd Posted February 11, 2002 Author Posted February 11, 2002 Vaughn Your script worked great! One point... when I select OK another window now pops up that asks "Permanently delete this one related record?" Can I eliminate this window?
mhudd Posted February 11, 2002 Author Posted February 11, 2002 Vaughn I figured out how to kill the second window... Is it possible to gain control over the title of the "Message" window. I would like the name of my DB to be the title instead of "Message." Thanks!
Vaughan Posted February 11, 2002 Posted February 11, 2002 The second alert (they are called "alerts" or "dialogs" not "windows") is suppressed by the "no dialog" option in the "Delete Portal Row [ no dialog ]" script step. No, the title of the "Show Message" alerts cannot be named.
mhudd Posted February 11, 2002 Author Posted February 11, 2002 I saw a contacts db today that was developed by Lupien consulting in New York and the "Show Message" windows in the program have been renamed...
simon1663 Posted February 11, 2002 Posted February 11, 2002 There are hundreds of plugins available I suppose which will generate a InputBox (VIsual basic) or prompt(Java script) - in order for you enter a input and then use it. Messagebox or alert is not a problem at all. So, for custom controlled message box look into filemaker website's plugin section. There are lot of free plugin's available as well. If you don't like plugins - another way is to have a separate layout where you show the message with buttons like Yes/No, OK/Cancel etc . Regards, simon1663 [ February 10, 2002, 10:23 PM: Message edited by: simon1663 ]
Recommended Posts
This topic is 8321 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now