Jana Posted February 27, 2006 Posted February 27, 2006 Hello...I want to avoid my portal showing the line for the next record that has not yet been created. My search in the forum shows that not allowing creation of records via the portal relationship will do that but that I need to create the new portal records with a script. How do I do that? If I have my script go to the line items layout and create a new record, it won't be related to my Order record.
Lee Smith Posted February 27, 2006 Posted February 27, 2006 Go into define fields, select the relationship Tab. double click on the relationship, then deselect the checkbox that says allow creation of record in this Table using this relationship. Lee
comment Posted February 27, 2006 Posted February 27, 2006 Load your script parameter with the OrderID. Go to the line items layout, create a new record, and set the OrderID field to Get (ScriptParameter).
Reed Posted February 27, 2006 Posted February 27, 2006 You just have your script button defined with a script parameter equal to the invoice_id field. When your script goes to the line items table to create a new record, you do a set field on the forgeign key field using Get(ScriptParameter) as the result, and then it will be related to the invoice record where you pushed the button.
Jana Posted March 5, 2006 Author Posted March 5, 2006 Thanks. I've just gotten back to solving this today and am struggling with writing this script. Do you have any sample of the script steps/order? Any additonal direction would be a great help. thanks :)
Recommended Posts
This topic is 6857 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