Jump to content

Record count on portal


Dan-A

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

Recommended Posts

Hi All,

I'm going blind....I thought there was a function that gives the number of

lines in a portal?? Not the current portal row.

I am trying to stop a user from adding more then x-number of lines in a portal.

If you have any suggestions...go for it, i'm all ears!!

--Dan

Link to comment
Share on other sites

A portal is a representation of your related table which could be quite longer than 'lines in the portal.' You need Count(PortaldRelationship::KeyID).

So you want to stop Users from adding more than X number of records to the related table? At all? Or only through this portal? Do you allow new records to be created in the portal (with Allow Creation on)?

Link to comment
Share on other sites

the portal represents a printed form that only has space for 15 line items.

So far what i have done is remove the sroll bar on the portal so that the user

is not tempted to keep adding lines beyond the 15 max.(per record)

I also have the count function you describe with an info line that says

"Line x of 15 MAX" the it goes to red when the user is at line 14 & 15.

What i guess i could do is after 15 lines switch the user the an identical

layout but this time with a portal that does not allow for the

creation of records.

I was just wondering if there was a better way.

Dan

Link to comment
Share on other sites

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