dbTalk Databases Forums  

4th post still no help

comp.databases.filemaker comp.databases.filemaker


Discuss 4th post still no help in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
whizzkid
 
Posts: n/a

Default 4th post still no help - 07-12-2005 , 12:20 AM






I once used this cool trick I got from Filemaker advisor but I can't
remember it anymore.
What I want to do is sort my list of items by a "room" field (kitchen ,



bedroom, bathroom , etc). When the list diplays (in a portal) I don't
the items to all have the room name beside them, just the first one the



the following ones are blank .


example
Room item
Kitchen Mixer
Microwave
blender
Bedroom Clock radio
filing cabinet
Bathroom Razor


The trick involved lookups and some sort of self join so that only the
first occurance shows ......anyone know this one?


Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: 4th post still no help - 07-12-2005 , 05:20 AM







whizzkid wrote:

Quote:
I once used this cool trick I got from Filemaker advisor but I can't
remember it anymore.
What I want to do is sort my list of items by a "room" field (kitchen ,



bedroom, bathroom , etc). When the list diplays (in a portal) I don't
the items to all have the room name beside them, just the first one the



the following ones are blank .


example
Room item
Kitchen Mixer
Microwave
blender
Bedroom Clock radio
filing cabinet
Bathroom Razor


The trick involved lookups and some sort of self join so that only the
first occurance shows ......anyone know this one?
At this point, I would hazard a guess that nobody currently subscribed to
this group has the answer for you. The folks here are quite knowledgeable,
but that doesn't mean that they are aware of every trick ever devised. It
certainly isn't the only source of help.

I know, for instance, that you haven't tried the FMPExperts list at
http://www.ironclad.net.au/lists/FMPexperts/index.html. At least, I
haven't seen there any post similar to the four here.

There's a forum at http://www.clevelandconsulting.com/support/

and another at http://www.fmforums.com/

just to mention a few.

Matt


Reply With Quote
  #3  
Old   
whizzkid
 
Posts: n/a

Default Re: 4th post still no help - 07-12-2005 , 03:30 PM



Sorry guys I didn't mean to sound snippy there. I just wasn't sure if
this was a dumb question or a tough question.
Allow me to clarify:

Each item in the file has two fields "Room name" and "item name"
ie:
Kitchen Mixer
Kitchen Blender
Kitchen Oven
Bathroom Shaver
Bathroom Scale
Bedroom Dresser

What I want it to show in a portal in a different file is:

Kitchen Mixer
Blender
Oven
Bathroom Shaver
Scale
Bedroom Dresser

As i remember it doesn't have to be in a portal, it shows that way in
the main file itself. But I could be wrong.

There is a self join trick or a lookup trick that uses thefact that
only the first occurance shows when you do it a certain way but I can't
remember it. I can do it through complicated scripting but I was hoping
that someone else knew this trick as it is a nicer way of doing it.

Thanks


Matt Wills wrote:
Quote:
whizzkid wrote:

I once used this cool trick I got from Filemaker advisor but I can't
remember it anymore.
What I want to do is sort my list of items by a "room" field (kitchen ,



bedroom, bathroom , etc). When the list diplays (in a portal) I don't
the items to all have the room name beside them, just the first one the



the following ones are blank .


example
Room item
Kitchen Mixer
Microwave
blender
Bedroom Clock radio
filing cabinet
Bathroom Razor


The trick involved lookups and some sort of self join so that only the
first occurance shows ......anyone know this one?

At this point, I would hazard a guess that nobody currently subscribed to
this group has the answer for you. The folks here are quite knowledgeable,
but that doesn't mean that they are aware of every trick ever devised. It
certainly isn't the only source of help.

I know, for instance, that you haven't tried the FMPExperts list at
http://www.ironclad.net.au/lists/FMPexperts/index.html. At least, I
haven't seen there any post similar to the four here.

There's a forum at http://www.clevelandconsulting.com/support/

and another at http://www.fmforums.com/

just to mention a few.

Matt


Reply With Quote
  #4  
Old   
whizzkid
 
Posts: n/a

Default Re: 4th post still no help - 07-12-2005 , 06:59 PM



hey look at that...it works.....thank you very much
at first glance I still can't tell how it works though. I guess its cuz
in self joins it only puts the first occurance in the relationship

BUT....how do I handle updating it when records get deleted or added?
ie: if the item which is the first occurance of Kitchen gets deleted
how do I get the next in line to to "show" as kitchen?

Martin Trautmann wrote:
Quote:
On 11 Jul 2005 22:20:18 -0700, whizzkid wrote:
I once used this cool trick I got from Filemaker advisor but I can't
remember it anymore.
What I want to do is sort my list of items by a "room" field (kitchen ,

Maybe the question is too simple or just not appealing enough.
Maybe it's not clear enough whether you want to get a popup list or a
portal/

bedroom, bathroom , etc). When the list diplays (in a portal) I don't
the items to all have the room name beside them, just the first one the

The solution could be rather simple. However, your example neither shows
a reasonable sort order by Room, nor by item.

example
Room item
Kitchen Mixer
Microwave
blender
Bedroom Clock radio
filing cabinet
Bathroom Razor


The trick involved lookups and some sort of self join so that only the
first occurance shows ......anyone know this one?


* Take e.g. the relation "ROOM" from Room to Room.

* Use a field "SERIAL" for an auto enter serial number.

* Use a calculation field ROOM FIRST
if(SERIAL = ROOM::SERIAL, Room, "")

* use a manual sort order "ROOMS"
Kitchen
Bedroom
Bathromm
(or could this be the room name in reverse order?)

* use a portal which may display the records in
sort order ROOMS

* include the fields
[ROOM FIRST] [item]

does it work?
Martin


Reply With Quote
  #5  
Old   
42
 
Posts: n/a

Default Re: 4th post still no help - 07-12-2005 , 11:03 PM



In article <1121212744.798972.30970 (AT) g43g2000cwa (DOT) googlegroups.com>,
wccgrant (AT) mts (DOT) net says...
Quote:
hey look at that...it works.....thank you very much
at first glance I still can't tell how it works though. I guess its cuz
in self joins it only puts the first occurance in the relationship
When it self joins, all the occurences are in the relationship.. but the
first one is the only one that is ... first.

Quote:
BUT....how do I handle updating it when records get deleted or added?
ie: if the item which is the first occurance of Kitchen gets deleted
how do I get the next in line to to "show" as kitchen?
Whatever is first will be first, automatically


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.