Jump to content

How to Number Rows in a Portal?


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

Recommended Posts

It wouldn't be too hard with a script. You could use something like this:

Set Field [ gPortal_Number, 1 ]

Go to Portal Row [ First ]

Loop

Set Field [ Portal_Number, gPortal_Number ]

Set Field [ gPortal_Number, gPortal_Number + 1 ]

Go to Portal Row [ Next Exit After Last ]

End Loop

If you have your portal allow the creation of related records by typing in a blank portal, you will probably want to add a line to the script just before the End Loop:

Exit Loop If [ IsEmpty( File::Record_ID ) ]

Where Record_ID is a field in the related file that would definately have an entry if there is a record for that portal row. Otherwise, you'll end up creating related records into infinity.

Chuck

Link to comment
Share on other sites

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