Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Adding portal records button


This topic is 6144 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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,

Picture_1.png

Posted

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.

Posted

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,

Posted

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(!).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.