7 Replies Latest reply on Nov 14, 2008 11:13 AM by j_rameses

    How to create a button on one database to open another database and then go back to main database?

    j_rameses

      Title

      How to create a button on one database to open another database and then go back to main database?

      Post

      I created a main database called "Main Menu", this DB will have navigational buttons on it to go to different databases.  In turn, those databases will have a button to return to Main Menu.

      Here is the content I place in a different post in a different forum:

      this is the script i have, please advise what i did wrong:
      The first database is where the buttons will go.
      Name of database=Main Menu
      Layout name=Main Menu
      Scriptname=Go to Contacts
      Script is:
      Open File [Open Hidden;"Contacts DB"]
      Set Window Title[Current WIndow;New title:"Main Menu for Company Name"]
      Adjust Window[Resize to Fit]

      This is the database it is suppose to goto:
      Name of database=Contacts DB
      Layout name=Contact Personal Information
      Name of script=View Contact Information
      Script #1 is:
      Close Window[Name:"Main Menu for Company Name"]
      New Window[Name:"Contact Personal Information"]
      Goto Layout["Contact Personal Information"(ACCR Contact Table)]
      Adjust Window[Resize to fit]

      Name of script=Back to Main Menu
      Script is:
      Close Window[Current Window]
      Perform Script["Go to COntacts" from file:"Main Menu"]