Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:17:39+00:00 2026-06-07T13:17:39+00:00

I was wondering if someone could point me to the right direction in setting

  • 0

I was wondering if someone could point me to the right direction in setting up a flagging/notification system. I’d say very similar to a tagging system. If anyone knows of any tutorial or example setups, that would be great.

Purpose

Basically, the flags are to attach to data items including customers, properties, contractors, applications, etc with the role of notifying users of an important piece of info regarding that item. The flags should come from a predetermined list of items where users can add or remove.

Database

I was thinking about going with a 3 table setup.

  • flags table: the list of available flags, along with settings determining what those
    flags are applicable to (customers, properties, etc).
  • linking tables indicating a given item has a given flag attached.
  • the appropriate entities tables

User Interface

I would like some of the functionalities be similar to that of stack overflow’s such as the add and removing of tags. Maybe use jquery tag-it for this? Mainly, I would like the user to be able to select the flag from a drop down list and a flag icon display when one or more flags have been selected. Mousing over the flag should show a tooltip listing the flags attached to that item. Not sure if this setup of the one flag show all be good for querying purposes as opposed to displaying multiple flags.
Sample visual: http://i232.photobucket.com/albums/ee2/nismomatic97/flag.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:17:41+00:00Added an answer on June 7, 2026 at 1:17 pm

    Your main problem is that you have a flag record for any number of possible different entities, and not a single entity (like “customers.”).

    In the past, I have solved this problem by providing an additional Foreign Key field in each table (“FlagID”) that is unique across the entire database. A GUID is suitable. Then you can simply JOIN the table that applies to your particular context to the FlagID in your Flags table, and you will get only the flags that apply to that particular entity.

    For example, when you JOIN FlagID in the Flags table to the FlagID in your Customers table, you get only those flags that pertain to Customers.

    Note that Stack Overflow doesn’t have the “Multiple Entities” problem; all flags are cast to Posts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if someone could point me in the right direction of how to
I am wondering if someone could point me in the right direction. You know
I'm just wondering if someone could point me in the right direction here, I
I was wondering if someone could point me in the right direction with this
Wondering if someone could point me in right direction using bash shell scripting and
Wondering if someone could point me in the right direction, as I am unsure
I was wondering if someone could point me in the right direction to some
Hey everyone, I was wondering if someone could point me in the right direction
I'm wondering if someone could explain (or point me in the right direction) where
Just wondering if someone could help me with a very simple SQL query. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.