omijan Posted April 29, 2005 Share Posted April 29, 2005 Hi, How do I duplicate a record which has a portal? When I duplicate such a record the portal comes out blank! Thanks Link to comment Share on other sites More sharing options...
aaa Posted April 29, 2005 Share Posted April 29, 2005 You must to duplicate portal records too with corresponding values of related fields. Link to comment Share on other sites More sharing options...
omijan Posted April 29, 2005 Author Share Posted April 29, 2005 Sorry but how do I do that? Let us say I have an invoice. Another customer comes and buys the same items. How do I duplicate the record including the portal contents? Before using portals I was using repeating fields ... it was so easy to duplicate the whole record and just change the few things that needed changing. Link to comment Share on other sites More sharing options...
aaa Posted May 2, 2005 Share Posted May 2, 2005 Let your relation field to items is Invoice_Id. In Invoice create one global field, let it be Glob_Inv_Id. In this field you must get Invoice_Id of next Invoice which will be duplicate of previous. You mus in dulicating script first duplicate portal records then set invoice_id Glob_Inv_Id then then duplicate Invoice with setting Invoice_Id Glob_Inv_Id. I did it in my Invoices. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.