chadski021 Posted August 26, 2013 Posted August 26, 2013 is there a way this can be done using a script what i want is new record request and go to layout function but using only 1 button
eos Posted August 26, 2013 Posted August 26, 2013 Maybe Get ( ActiveModifierKeys ) can help you there.
Lee Smith Posted August 26, 2013 Posted August 26, 2013 (edited) I'm not sure that we have the picture of what you are trying to accomplish, but it sounds like you are wanting to have a button on the current layout that will take you to a different layout then you are on, and then open a new record for entry? If so, try this in your script: Go to Layout by name New Record Request ps If the layout is a different table, then you will need a relationship. Edited August 26, 2013 by Lee Smith ps
chadski021 Posted August 26, 2013 Author Posted August 26, 2013 Hello Lee Smith what i mean is in my current layout i can create a new record and a function that can go to another layout for example if i click this button i have this option create record or go to another layout
Rick Whitelaw Posted August 26, 2013 Posted August 26, 2013 Are the layouts based on different tables? Same table? Do you mean to create a new record in the table on which the first layout is based and then go to another layout? If so, why? If you create a new record and immediately go to another layout, especially if the second layout is based on a different table, then your new record will contain no data. More information is needed.
Fitch Posted August 26, 2013 Posted August 26, 2013 When you say, "i have this option create record or go to another layout," what determines whether it does one or the other? Do you want to show the user a dialog box or what? If not a dialog, how does the user know what's going to happen? What would the label/text on the button say? This sounds like something really simple, it's just not clear exactly what you're trying to do. Maybe you're looking at the commands list in the button setup and wondering how you can do multiple commands. That's where you'd use the "Perform Script" command for the button, and the multiple steps would be in that script.
jbante Posted August 27, 2013 Posted August 27, 2013 If you're saying that you want one button that creates a new record and then goes to another layout (or vice versa), you just put those steps in a script and configure the button to call that script. If you're saying that you want one button to give the user the option to do two completely different things: please don't. That's bad interface design; what would you even label the button to tell the user what it does? Make two buttons, one for each behavior. If that doesn't fit in the current visual design of your layout, modify the design of your layout to accommodate two buttons. If you really want users to be able to trigger two (or more) different behaviors by clicking on the same piece of layout, don't use a button. Create a pop-up menu on a global field, attach an OnObjectModify trigger to that field, and have the triggered script check what value the user selected to decide what action to perform.
Recommended Posts
This topic is 4163 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