ronnie524 Posted September 11, 2004 Posted September 11, 2004 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
Lee Smith Posted September 11, 2004 Posted September 11, 2004 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
ronnie524 Posted September 13, 2004 Author Posted September 13, 2004 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.
transpower Posted September 14, 2004 Posted September 14, 2004 Well, then just add another script step to specify the appropriate layout for the selected record.
ronnie524 Posted September 14, 2004 Author Posted September 14, 2004 By doing what you have told me Lee, it just send me to the actual record. How about the specific layout? .
ronnie524 Posted September 14, 2004 Author Posted September 14, 2004 Can you specify, plz? I am a newbie after all . thanx
andygaunt Posted September 14, 2004 Posted September 14, 2004 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
ronnie524 Posted September 15, 2004 Author Posted September 15, 2004 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).
Ted S Posted September 15, 2004 Posted September 15, 2004 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.
ronnie524 Posted September 15, 2004 Author Posted September 15, 2004 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
-Queue- Posted September 15, 2004 Posted September 15, 2004 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]
ronnie524 Posted September 15, 2004 Author Posted September 15, 2004 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
-Queue- Posted September 15, 2004 Posted September 15, 2004 I just used Style Costing as an example. You will use whichever name is appropriate for the layout you want to display.
ronnie524 Posted September 16, 2004 Author Posted September 16, 2004 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...
-Queue- Posted September 16, 2004 Posted September 16, 2004 That doesn't appear to be a valid zip file. Edit your message and try attaching it again.
ronnie524 Posted September 16, 2004 Author Posted September 16, 2004 here are the file 2 files: total of 1.2mb/ pw: <leave it blank> StyleCosting.zip
ronnie524 Posted September 16, 2004 Author Posted September 16, 2004 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
-Queue- Posted September 16, 2004 Posted September 16, 2004 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.
ronnie524 Posted September 16, 2004 Author Posted September 16, 2004 thanks a lot ... it works.... I finally got it.... Thanks to everyone also ....
Recommended Posts
This topic is 7376 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