November 25, 200421 yr I am using a portal for data entry, and would like to limit the number of records created through the portal. Is there a way to do this? [email protected]
November 25, 200421 yr Make the portal without "Allow creation...." and script it like this: If [ Count ( Itemlines::BelongsTo ) < 5 ] Go to Layout [ "Itemlines" (Itemlines) ] New Record/Request Set Field [ Itemlines::BelongsTo; Get ( ScriptParameter ) ] Go to Layout [ "Invoicing" (Invoicing) ] Go to Portal Row [ Last ] Go to Field [ Itemlines::ItemName ] Else Show Custom Dialog [ Title: "Ooops"; Message: "This invoicing system allows only 5 lines in each invoice!!!"; Buttons: "OK" ] End If Where the button that makes you produce a new portal line gets the parameter InvoiceID.... --sd
Create an account or sign in to comment