bb84604 Posted January 28, 2008 Posted January 28, 2008 I have a Project layout/table with a Project Notes portal to add notes to the project. I am trying to make a button/script that will: 1. Create a new related Note record in the portal 2. Populate a couple of fields in that related record 3. Open a new window (a detail view of the Note record) 4. Commit the record in the original file (so when I start typing in the Detail window it doesn't say "this record is already being modified..."). I think I've figured out everything but committing the record. I think it is committing the record in the popup window, not the original one. I've attached a capture of my script if anyone can help. Thanks much,
comment Posted January 28, 2008 Posted January 28, 2008 Why don't you simply: 1. Commit the record; 2. Open a new window; 3. Go to a layout of Notes; 4. Create a new Note record; 5. Set the ProjectID field to the script parameter*; 6. Set more fields as required**. --- (*) Define the button to store the parent project ID in the script parameter. (**) Note that you can define a field to auto-enter the account name at creation.
bb84604 Posted January 28, 2008 Author Posted January 28, 2008 Thanks for the help. I knew there should be a simpler way. Can you explain #5 "Define the button to store the parent project ID in the script parameter" is that like "set variable"? Thanks again,
comment Posted January 28, 2008 Posted January 28, 2008 The script parameter is very much like a script variable, except it's defined outside the script itself - either in the button definition, or in a Perform Script[] step (when calling a sub-script). I did not suggest a variable, because you didn't state your version(!).
Recommended Posts
This topic is 6144 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