June 28, 200718 yr Hello I would like to create a button and script that will create new records within a portal. However, I do not want the script to actually go to the portal table's layout to create the record, then go back to the initial layout. Is there any way to create the new record in the portal and stay on the same layout? PS: I tried 'go to portal record' , then 'insert record'. This just adds the record to the overall layout's table, not the portal.
June 28, 200718 yr I typically do this with a script and script parameters. Create a "developer layout" (usually notated with "z_layoutName"). When the user clicks a button, the script freezes the window, goes to the developer layout, creates a new record, sets any key values (like which parent record the new record is a child of) using the parameters passed into the script, then finally returns to the original layout.
June 28, 200718 yr Author Roy But you still have to go to another layout to add the record. I would like to stay on the original layout itself. The problem with going to another layout to add the record is that upon return the scroll bar is not set to where it was prior to leaving. So the user has to scroll back down to where they were. This is not good. Also, Freeze Windows and Scroll Window do not help this.
June 28, 200718 yr It is possible to create a new child record through a relationship - but the truth is the setup required is simply not worth the trouble. To solve your problem, open a new window, go to to the child layout, etc. then close the window.
June 28, 200718 yr Author Comment: I thought of that, but similar to what you said, it is too processing to just add one record.
June 28, 200718 yr It requires adding a couple of script steps. Much better than the other method which requires adding a relationship, another field, AND a script to use them.
Create an account or sign in to comment