5 Replies Latest reply on Oct 5, 2009 1:17 PM by philmodjunk

    button on a portal

    anode505

      Title

      button on a portal

      Post

      I have a button at the end of the ro of a portal.  Its job is to autofill in defualt values.

       

      prob is that it fills in the bottom row's values.

      is there a way for it to just work on the selected row? 

        • 1. Re: button on a portal
          philmodjunk
            

          We'd have to see the script your button performs. Generally, a button on a portal row will do exactly what you describe without trouble since clicking the button makes that row in the portal the current row. (You do see the button on every row of the portal don't you?)

           

          There are other ways to auto-fill in default values that do not require scripts. Why do you need a script for this?

          • 2. Re: button on a portal
            anode505
              

            Thanks Phil.

             

            The reason for autofill script is that its for an expense sheet.  Its just a convience thing, and not every one of the selected fields needs to be flled in for every day.

             

            But ya got me thinking.  Found my error.  Was jumping around layouts.  (had just solved the reason for the need to; setting variables) but hadn't pulled it from the script.

             

            Thanks! 

             

            (I wish there was a way to cut-n-paste scripts here.  is there?  I tried it with textedit, but nothing) 

            • 3. Re: button on a portal
              philmodjunk
                

              "I wish there was a way to cut-n-paste scripts here.  is there?"

               

              I know of two methods:

              1. Print the script to a PDF and copy and paste the text from the PDF.
              2. If you have FMP advanced, create a database design report and copy the script text from the design report.
              • 4. Re: button on a portal
                anode505
                  

                I've tried the PDF, but each command is a seperate page.

                 

                I do have advanced, will look into it. (the report should help a LOT with getting rid old scripts, I hope.  as well as other fun stuff)

                 

                Thanks again!

                • 5. Re: button on a portal
                  philmodjunk
                     The DDR has its flaws, but even so is extremely useful. The debugger also is well worth the extra $$.