Some popups throughout the site have a checkbox for 'Don't show me this again'. When this is checked, the contact should be flagged so that the UI knows in the future not to show this popup when this contact is logged in.
New System Table (SYSTBL):
Create a new SYSTBL "SUPPMSG.LAD" that will hold the web messages that can be surpressed. This will be used as reference only so that we know which message numbers are which. We have identified two places at this time, but more will most likely be added in the future.
- Code 1: Desc=Auto Save Carts
- Code 2: Desc=Master User Notification
New Contact Field:
- Create a new field in SLSCONTACT.USR (and sys3002): SUPP.WEB.POPUP
- Define it as a multi-valued 3 A/N character field
Modify CONTACT.READ INCLUDE:
- Add a new return field in DATAFIELDS, returning all suppress popup codes in a colon-delimited format
New LDLIB RPC$CONTACT_SUPPRESSMSG:
- Create new LDLIB RPC$CONTACT_SUPPRESSMSG that the UI will call directly when the user has checked a suppression box on the site
- UI will send the message# in named param FLAG
- If the message# isn't already in the contact record in the new field, add it at end of multi-value string.
- Don't worry about record locking for SLSCONTACT.USR. We are about to write a global locking routine that will be called by all of the programs that require locking (including this one)