Re: No Wanna Duppys
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21015
interpreted = N
texte = This is what is not working... and I thought would....[HideIf [lookupdb=catalog.txt&value=[SKU]&lookinfield=SKU&returnfield=SKU]=[SKU]][Appenddb=catalog.txt][FormVariables][name]=[URL][value][/URL]&[/FormVariables][/Append][/HideIf][ShowIf [lookupdb=catalog.txt&value=[SKU]&lookinfield=SKU&returnfield=SKU]=[SKU]][SKU] already exists![/ShowIf]SInce I am on this train of thought.... what do you suppose would keep itfrom working?It adds regardless of dups there or not.MM>At 11:40 Uhr -0800 13.11.1998, The Mooseman wrote:>>>I want to add a snip that looks at the catalog.db and sees if there is>>a matching sku number before it writes a duplicate sku to the db.>>>>Am I correct that a [showif] should handle it on the called eg:results>>page?>>I can't recall how to search for it first... with a lookup or a search....>>no success with either!>>>Lookup is faster than search:>>[showif [lookup>db=catalog.db&value=[NewSku]&lookinfield=sku&returnfield=sku¬found=ok]=ok]>[m>ath show=f]v_add=1[/math]>[/showif]>>[showif [math]v_add[/math]=1]> (add the item...)>[/showif]>[hideif [math]v_add[/math]=1]> (this is a dup, don't add the item or use a different SKU...)>[/hideif]>>You can do a second lookup within a hideif-tag instead of setting a>variable, but doing just one lookup is supposed to be faster.>>>Peter>>++++++++++++++++++++++++++++++++++++++++++++++++>Peter Ostry - Vienna/Austria - www.ostry.com>Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21>++++++++++++++++++++++++++++++++++++++++++++++++
Associated Messages, from the most recent to the oldest:
This is what is not working... and I thought would....[HideIf [lookupdb=catalog.txt&value=[SKU]&lookinfield=SKU&returnfield=SKU]=[SKU]][Appenddb=catalog.txt]
[formvariables][name]=
[url][value][/URL]&[/FormVariables][/Append][/HideIf][ShowIf [lookupdb=catalog.txt&value=[SKU]&lookinfield=SKU&returnfield=SKU]=[SKU]][SKU] already exists![/ShowIf]SInce I am on this train of thought.... what do you suppose would keep itfrom working?It adds regardless of dups there or not.MM>At 11:40 Uhr -0800 13.11.1998, The Mooseman wrote:>>>I want to add a snip that looks at the catalog.db and sees if there is>>a matching sku number before it writes a duplicate sku to the db.>>>>Am I correct that a
[showif] should handle it on the called eg:results>>page?>>I can't recall how to search for it first... with a lookup or a search....>>no success with either!>>>Lookup is faster than search:>>[showif [lookup>db=catalog.db&value=[NewSku]&lookinfield=sku&returnfield=sku¬found=ok]=ok]>[m>ath show=f]v_add=1[/math]>[/showif]>>[showif
[math]v_add[/math]=1]> (add the item...)>[/showif]>[hideif
[math]v_add[/math]=1]> (this is a dup, don't add the item or use a different SKU...)>[/hideif]>>You can do a second lookup within a hideif-tag instead of setting a>variable, but doing just one lookup is supposed to be faster.>>>Peter>>++++++++++++++++++++++++++++++++++++++++++++++++>Peter Ostry - Vienna/Austria - www.ostry.com>Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21>++++++++++++++++++++++++++++++++++++++++++++++++
The Mooseman
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:
[WriteFile] problems (1997)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
[Listfiles] vs Netfinder (1997)
Carriage returns in [text] variables (1999)
Location of Browser Info.txt file (1997)
3rd party processor question (2003)
credit card question (simple) (2001)
form variables (2000)
WebCat and WebTV (1997)
Don't know if this is a sily question... (2003)
Occasional crashes with $remove (1997)
[OT] Javasript Help (2006)
Request Time Out (1997)
Initiating NewCart (1997)
no global [username] or [password] displayed ... (1997)
Hiding a subsection of text (2002)
[OT] Ratings comparison? (2003)
WebCatalog for guestbook ? (1997)
RE: 2nd WebCatalog2 Feature Request (1996)
WebCommerce: Folder organization ? (1997)