2 Replies Latest reply on Mar 9, 2010 2:16 PM by Sunny1

    Script writing help



      Script writing help


      I am trying to write a script that can pull up the current record when you double click on a field in a portal.  Example:  I lhave a list of schools, I double click on the school I want that is listed in a portal and it would bring up the entry/edit form with that schools information on it.  I can get the script to open up the form but I don't know how to write it to get the particular school I am clicking on to come up.  I know it has something to so with GetFieldContents and Focus but I don't know how to write it.


      Please help.

        • 1. Re: Script writing help

          Howdy Sunny1,

          Welcome to the forum.


          Try having your button (which is entirely within the portal row) run "Go To Related Record" instead.  This command lets you choose the layout you wish to use...choose your School editing layout.


          Note: you can make the school name field itself (or every field in the portal row for that matter) a button instead of adding a separate button.  Click on anything in that line and it will go to the related record.

          • 2. Re: Script writing help

            I started out with the school name as the button with Get Related Records but it was not working.  I did finally get a separate button to work by copying one from a template database.   One other thing though, when I use this button to go to the new layout of the detail for this school, I wanted to have a checkbox that if you click it yes, it takes you to a new form/layout to enter additonal information.  I get the checkbox to work but again, I cannot get it to open the affiliated form for this school or if no info is available, I would like it to open new record.  Any suggestions?