Re: Showing once on a founditems
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15578
interpreted = N
texte = In the relational database world, we talk about parent and childdatatables. You need to decide the organization of your tables andwhich are the parent table and the child tables. Typically, there's oneparent and several child tables (there can be grandparents, aunts,uncles, etc. -- just as confusing as real life ;) ).From what you are describing, I'd make the category a field in the phototable photofilename categories uniquekey Any categories that call this photo are entered with spaces separatingthem in the category field (or space, etc., depending on names ofcategories).Then the inventory items are a child of the photo.dbSKU categories photokeyYou'd search the photofile for a category match, then do a sub-searchfor each photo of SKU's with photo.db's uniquekey in the photokey field.At other times, you might want to make inventory.db the parent and photothe child, etc. But planning ahead does allow dealing with all theserelationships :) Good luck!SandyRay Hatch wrote:> > At 02:17 PM 12/10/97 -1000, you wrote:> >>In doing a search for a specific category, I need to accomplish two things,> >>I need to show the category once (which I could use the [searchTitle]> >>outside of my founditems to do this) and then show the different [Titles]> >>associated with this category, Now..some of my titles share a single photo,> >>so I need to group those with that photo.> >>> >>Example: I have 3 Different Jackets, all of same category yet with> >>different names[titles], but all three are depicted on one photo.> >>> >>So.. If I have 6 different items under category Jackets, 3 of which share> >>the same photo, 2 share another photo, & one has it's own. Can I Show the> >>[Category] Jackets, one time at top of page. Then group each found item> >>with it's photo.> >>> >>Like:> >>> >>JACKETS> >>> >>jacket one> >>jacket two photo off to side> >>jacket three> >>> >>
> >>
> >>> >>jacket four> >>jacket five photo> >>> >>
> >>
> >>> >>jacket six photo> >>> >>
> >>> >>Any suggestions?> >> >> >Wow, you sure like to make things difficult for WebCat, don't you? :)> >> >Ray, I'm sure WebCatalog can do this, but you will probably have to> >re-think the way you have decided how to assign which photos to which> >products, and exactly what procedures WebCat will need to go thru in> >order to decide which scenario it has to deal with in each different> >situation.> >> >WebCat has the flexibility, but programming that flexibility is going> >to take a lot of intense thinking and pre-planning on your part ... :)> > Yeah, I have this nack of jumping to the end of the learning curve instead> of starting at the beginning, I have total confidence that WebCat can> handle these requests, I'm not too sure if I can. But I think the joy of> this software is making it work as hard for you as it can, thus making> everything else so much easier.> > If anyone has done anything like what I'm attempting to figure out, I would> love to see and hear about it.> > Ray
Associated Messages, from the most recent to the oldest:
In the relational database world, we talk about parent and childdatatables. You need to decide the organization of your tables andwhich are the parent table and the child tables. Typically, there's oneparent and several child tables (there can be grandparents, aunts,uncles, etc. -- just as confusing as real life ;) ).From what you are describing, I'd make the category a field in the phototable photofilename categories uniquekey Any categories that call this photo are entered with spaces separatingthem in the category field (or space, etc., depending on names ofcategories).Then the inventory items are a child of the photo.dbSKU categories photokeyYou'd search the photofile for a category match, then do a sub-searchfor each photo of SKU's with photo.db's uniquekey in the photokey field.At other times, you might want to make inventory.db the parent and photothe child, etc. But planning ahead does allow dealing with all theserelationships :) Good luck!SandyRay Hatch wrote:> > At 02:17 PM 12/10/97 -1000, you wrote:> >>In doing a search for a specific category, I need to accomplish two things,> >>I need to show the category once (which I could use the [searchTitle]> >>outside of my founditems to do this) and then show the different [Titles]> >>associated with this category, Now..some of my titles share a single photo,> >>so I need to group those with that photo.> >>> >>Example: I have 3 Different Jackets, all of same category yet with> >>different names[titles], but all three are depicted on one photo.> >>> >>So.. If I have 6 different items under category Jackets, 3 of which share> >>the same photo, 2 share another photo, & one has it's own. Can I Show the> >>[Category] Jackets, one time at top of page. Then group each found item> >>with it's photo.> >>> >>Like:> >>> >>JACKETS> >>> >>jacket one> >>jacket two photo off to side> >>jacket three> >>> >>
> >>
> >>> >>jacket four> >>jacket five photo> >>> >>
> >>
> >>> >>jacket six photo> >>> >>> >>> >>Any suggestions?> >> >> >Wow, you sure like to make things difficult for WebCat, don't you? :)> >> >Ray, I'm sure WebCatalog can do this, but you will probably have to> >re-think the way you have decided how to assign which photos to which> >products, and exactly what procedures WebCat will need to go thru in> >order to decide which scenario it has to deal with in each different> >situation.> >> >WebCat has the flexibility, but programming that flexibility is going> >to take a lot of intense thinking and pre-planning on your part ... :)> > Yeah, I have this nack of jumping to the end of the learning curve instead> of starting at the beginning, I have total confidence that WebCat can> handle these requests, I'm not too sure if I can. But I think the joy of> this software is making it work as hard for you as it can, thus making> everything else so much easier.> > If anyone has done anything like what I'm attempting to figure out, I would> love to see and hear about it.> > Ray
Sandra L. Pitner
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:
Help!!!! Purchases not going through! FIXED! (1997)
PIXO (1997)
Clean Code: Rules for inserting keyboard returns? (1997)
Stinkin' [Referrer] (1998)
Am I being really stupid? (2003)
[GROUPS] followup (1997)
WC2b15 File Corruption (1997)
Search in 2 or more catalogs (1997)
Hosts (2000)
Parameter Problem (1998)
Problems with [Applescript] (1997)
Multi-Row Tables from a search. (1997)
[WebDNA] Rewrite url before redirect (2012)
[WebDNA] [BULK] which of these tags exist in 7.0 (2011)
problems with 2 tags shakur (1997)
version 2 for NT (1997)
WCS Newbie question (1997)
Generating Options for a Form. (1997)
Follow-Up to: Removing [showif] makes a big difference in speed (1997)
Accented chars and emailer (1998)