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

Limiting records created through a portal


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

Recommended Posts

Posted

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

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