Jump to content
Sign in to follow this  
manatee

How to count related fields

Recommended Posts

I am having trouble figuring out how to count records in a portal that have a "checked" box.

I have a check box field called "reserve" in a related table record shown in a portal. I need to be able to count how many of the records in the portal (related table) are checked and show that total in the main record. I have come up short so far. Thank you for any ideas.

Share this post


Link to post
Share on other sites

Instead of using a value list with the string "reserved", you can just have a value list with a value of 1. Then use this for your checkbox.

There a numerous reasons why I prefer this boolean method instead of the standard checkbox, but obviously your issue is one of them.

A simple summary field will total the checkboxes.

Share this post


Link to post
Share on other sites

Thank you for the prompt reply. I currently have the value list as a "1" and agree with your suggestion for this. I guess where I am stumped is how to create a summary field for a count in another table. Essentially I need to count how many "1's" were check in another table. Hope I am making sense.

Share this post


Link to post
Share on other sites

Create a new field with a type of summary ( types such as number, text, calculation, etc ) in the child table.

Then you can put that summary field next to the portal on the parent layout.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.