[GROUPS] followup

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11535
interpreted = N
texte = To close out my earlier question and possibly help others along:We wanted to restrict catalog entry displays to only those who had group access which matched that of the item to be displayed. In other words, each item has a group associated with it and that group should be granted access. The easiest solution would have been if there were a [groups] tag like the global [UserName] tag to test against, but there isn't.Thanks to all the help and suggestions we got here we got the WebDNA figured out and it is relatively simple (in retrospect :-)All that's needed is [foundItems] [SHOWIF [lookup db=/webcatalog/users.db& value=[Uppercase][UserName][/Uppercase]& LookInField=user&returnfield=groups& notFound=TextNotFound]^[PW_GROUP]] ... [/SHOWIF] [/founditems]where [PW_GROUP] is the field of the found item which contains the group which should be granted access.I hope I copied all of that in correctly ... it's been a long but fruitful day ! -Sven_____________________________________________________________________ Sven U. Grenander BeeHive Technologies, Inc. http://www.bzzzzzz.com - with a WebCam in Pasadena, California _____________________________________________________________________ Associated Messages, from the most recent to the oldest:

    
  1. Re: [GROUPS] followup (Grant Hulbert 1997)
  2. [GROUPS] followup (Sven U. Grenander 1997)
To close out my earlier question and possibly help others along:We wanted to restrict catalog entry displays to only those who had group access which matched that of the item to be displayed. In other words, each item has a group associated with it and that group should be granted access. The easiest solution would have been if there were a [groups] tag like the global [username] tag to test against, but there isn't.Thanks to all the help and suggestions we got here we got the WebDNA figured out and it is relatively simple (in retrospect :-)All that's needed is [founditems] [SHOWIF [lookup db=/webcatalog/users.db& value=[uppercase][username][/Uppercase]& LookInField=user&returnfield=groups& notFound=TextNotFound]^[PW_GROUP]] ... [/SHOWIF] [/founditems]where [PW_GROUP] is the field of the found item which contains the group which should be granted access.I hope I copied all of that in correctly ... it's been a long but fruitful day ! -Sven_____________________________________________________________________ Sven U. Grenander BeeHive Technologies, Inc. http://www.bzzzzzz.com - with a WebCam in Pasadena, California _____________________________________________________________________ Sven U. Grenander

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

autosensing lanague selection (1997) [WebDNA] WebDNA on LiveCD ... (2008) international time (1997) Re[2]: Support suggestions - Response (2000) Accepting credit cards (1997) WC2.0 Memory Requirements (1997) Re:[ShowIf] and empty fields (1997) [cart] not being interpreted inside [founditems] (1997) How to delete all files in a folder? (2001) Register First (2000) FW: Shipping calculations (1997) Multi Actions (1999) Issue with plug-in Webcat, webstar 4.x, SSL and IE when using the backbuttom (2000) Calculating multiple shipping... (1997) [append] (1998) Insert textfields with variables (2000) Email Scavengers (2003) [WebDNA] WebDNA as cgi app (was WebSite Examples) (2008) NetForms for mail, sorry (1998) Major Security Hole IIS NT (1998)