September 11, 200421 yr Hello all, I am trying to create a button that goes to a specific layout on a related record. Can anyone help with the script (detailed....) Thank you
September 11, 200421 yr Put your button in the first portal row where the fields are, and use the Script Step Go To Related Record (GTRR). You can find that step either in the Button Format window, or in the Script Steps in ScriptMaker. HTH Lee
September 13, 200421 yr Author Thanks Lee, but I might be doing something very wrong...I did the thing you told me to, but still takes me to the wrong layout . My goal: Is to make the button go to a specific record/ layout I have a record which I called it portal- it contains all the buttons that go to the specific records. In addition I have a record with different layouts where some information is confidential to others. So the purpose of the button, is to send the user to the specific layout. I might of done this in a complicated way. Any other ideas of doing it, would be greatly appreciated . Thanks.
September 14, 200421 yr Well, then just add another script step to specify the appropriate layout for the selected record.
September 14, 200421 yr Author By doing what you have told me Lee, it just send me to the actual record. How about the specific layout? .
September 14, 200421 yr Because you need two steps here, you will need to write a script. Go into the Scripts menu and choose scriptmaker. Create a new script. You need to add two commands. Go To Related Record [ychoose the portal relationship from the options] Go To Layout [choose the correct layout from the options] Now, come out of scriptmaker and in Layout mode, double click on your button in the portal. Choose the Perform Script step and then in the options choose the correct script. This should now go to that record AND change layout for you. HTH
September 15, 200421 yr Author Hello Andy, I did what you told me to. But on "Go To Layout [choose the correct layout from the options] " it doesn't let me specify the specific layout(I mean it doesn't show the layout i want it to go to).
September 15, 200421 yr I bet the problem is that he needs to go to a specific layout in the RELATED file. Ronnie, you will need to create a 2nd script in the related file that has a "goto layout" step. Then in your first script, call your new script in the related file.
September 15, 200421 yr Author hello Ted, Could you give a little more details, cause i might be doing something wrong. Because from what I understood of what to do, the related file doesn't even open . Thank you
September 15, 200421 yr The main script: Go to Related Record [show only related, "Style Costing"] Perform Script [External, related file, "Go to Layout"] The external "Go to Layout" script: Go to Layout [style Costing] Toggle Window [Maximize]
September 15, 200421 yr Author Ok, I did that but on the external- because on the goto layout command, I can't specify "Go to Layout[style Costing] on the specify option, it just give me 5 options: 1-layout 1 2-layout 2 3-layout 3 ---------- layout # from field original layout It doesn't give me the option for "style costing" sorry, for the struggle
September 15, 200421 yr I just used Style Costing as an example. You will use whichever name is appropriate for the layout you want to display.
September 16, 200421 yr Author I understand that you used style costing for example; and that is where i wish i was at (have style costing: layout #5,or 4 or 3 in my specified option) but I don't have that option: any ways here are the file: Please take a look...
September 16, 200421 yr That doesn't appear to be a valid zip file. Edit your message and try attaching it again.
September 16, 200421 yr Author here are the file 2 files: total of 1.2mb/ pw: <leave it blank> StyleCosting.zip
September 16, 200421 yr Author 2nd file: i am trying to link sales: to style costing last layout from main gate to style costing If you see these two files: I am trying to click on the <price button> which takes me to <related-record(style costing)/layout $ales> on the script (1-main gate) I input as described on past posts:goto layout and subscript is: goto sales please ignore the other parts.... database is not fully complete, I gotta figure somethings out before i procceed
September 16, 200421 yr Your TOLAYOUT1 script already has it. Just call that script in your other file, after the Go to Related Record step, using Perform Script, select External, navigate to the file, select it, then select its TOLAYOUT1 script.
September 16, 200421 yr Author thanks a lot ... it works.... I finally got it.... Thanks to everyone also ....
Create an account or sign in to comment