FruitFul Posted November 23, 2005 Posted November 23, 2005 Is there a way to 'count' the number of records within a portal? For example say you have a portal and next to it is a box with the total number of records (as you switch records, the 'Count Total' adjusts accordingly).
Ender Posted November 23, 2005 Posted November 23, 2005 Sure, define a calc field in the parent table that uses the Count() function to count some field in the related file that always has data, like the foreign key: Count Total (calculation, number result) = count(relationship::key)
FruitFul Posted November 24, 2005 Author Posted November 24, 2005 (edited) Thanks! Works great : Next Question... I was also hoping to also use this new count field in a Value List. Basically allowing the user to see the most popular items first. However! When I attempted to use it in a Value List, it said that it would not work as the field could not be Indexed.... Any way around this? Edited November 24, 2005 by Guest
Ender Posted November 24, 2005 Posted November 24, 2005 I think you'd need to script the update of the counts, setting a regular number field.
Recommended Posts
This topic is 7277 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 accountSign in
Already have an account? Sign in here.
Sign In Now