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

How to create a new portal row in a script?


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

Recommended Posts

Posted

Ok, I have a script that creates a new window and takes me to a layout with a portal on it. I want it to also create a new portal row. The portal is formatted to show 1 row at a time. When I go to this layout, how can I have the script create a new portal row so a new row is waiting for the user to enter in data? This seems like it should be simple but I can't find anything on it. Any help would be appreciated.

Thanks!

John

Posted

gotofield (in the portal)

gotoportal row [last]

Set fields with your info (just as you would create one manually

this all assumes that alow create related records is turned on.

Charles

Posted

Charles, I tried what you suggested, it just takes me to the last portal row that has information in it. It doesn't take me to a new record in the portal row. I did confirm that I set allow creation of related records to on. Any other ideas? I currently am only showing 1 portal row, do I need to have it set to a number higher to get to the new record in the portal?

Thanks!

John

Posted

Yes perhaps show more that one row, if thats is the problem and it workd but you can only show one row for your interface, then create an extra layout that is used to create the last row and then make the new row. Switch back when you are done.

Charles

Posted

Hi,

If only one row should show, then all you need is a related field with a relationship sorted so that the first related record would be the last.

So the script would just create a new record in the related Table.

This topic is 7374 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.