dbTalk Databases Forums  

FIND MODE: Search using keyfield

comp.databases.filemaker comp.databases.filemaker


Discuss FIND MODE: Search using keyfield in the comp.databases.filemaker forum.



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

Default FIND MODE: Search using keyfield - 10-14-2010 , 05:24 PM






Hello,

In find mode I've got a drop-down that allows users to input a group
key. The drop-down shows the list of group names, but when the user
makes her selection, it's the group key that displays in the field.
That's is what I want to be in the input field as I need to search on
the key.

Now when users input a key in browse mode I am able to overlay the
input field with the related group's name so that the user never gets
to see the key field. This approach does not work in find mode. How
can I have my cake and eat it? I want to have user input the key field
but display the correct group name instead.

Can you suggest a workaround?

Many thanks Kevin

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: FIND MODE: Search using keyfield - 10-14-2010 , 07:14 PM






In article
<347804a8-6e6d-4c55-847d-608d90f76df0 (AT) i5g2000yqe (DOT) googlegroups.com>,
KevinSmith <pleasedonotusethisaddress (AT) gmail (DOT) com> wrote:

Quote:
Hello,

In find mode I've got a drop-down that allows users to input a group
key. The drop-down shows the list of group names, but when the user
makes her selection, it's the group key that displays in the field.
That's is what I want to be in the input field as I need to search on
the key.

Now when users input a key in browse mode I am able to overlay the
input field with the related group's name so that the user never gets
to see the key field. This approach does not work in find mode. How
can I have my cake and eat it? I want to have user input the key field
but display the correct group name instead.

Can you suggest a workaround?

Many thanks Kevin

If there is already a "Group Name" Field (or you could add one), then you
can just use that to perform the FInd.

Another option is to Script the Find. Have the User enter the requested
"Group Name" data into a Global Field and then use a Script 'convert' that
into the "Group Key" data, put it into the appropriate Find Request Field
and then process the Find.

Either way, a separate Find Layout will be needed.

Helpful Harry )

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

Default Re: FIND MODE: Search using keyfield - 10-15-2010 , 07:35 AM



Thanks Harry for your quick reply. Here's my response to your
suggestions:

Quote:
If there is already a "Group Name" Field (or you could add one), then you
can just use that to perform the FInd.
Say the user searches for "Agency" then it will come up with both of
the following groups "Agency" and "Previous Agency". But now thinking
aloud, I think your suggestion of pre-processing the find layout
before allowing the find function to continue (see below) might work
well here. I can concatenate the prefix "==" onto the group field.
That will fix the problem of ambiguity.

Quote:
Another option is to Script the Find. Have the User enter the requested
"Group Name" data into a Global Field and then use a Script 'convert' that
into the "Group Key" data, put it into the appropriate Find Request Field
and then process the Find.

I've already got the scripting infrastructure in place for finds so
that's not a problem. My hunch is that I won't be able to do the
scripted lookup on the group name to find out the matching key while
in find mode. The relationships won't evaluate in find mode.

Does anyone else have any suggestions/comments?

Thanks very much
Kevin

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

Default Re: FIND MODE: Search using keyfield - 10-15-2010 , 09:40 AM



Kevin,
Instead of a drop down list, you can use a pop up menu. It sounds
like your value list is already configured correctly to pulls both
fields. A pop up will always display the Group Name while storing the
the key.

Relationships don't resolve in Find mode.

G

On Oct 14, 4:24*pm, KevinSmith <pleasedonotusethisaddr... (AT) gmail (DOT) com>
wrote:
Quote:
In find mode I've got a drop-down that allows users to input a group
key. The drop-down shows the list of group names, but when the user
makes her selection, it's the group key that displays in the field.
That's is what I want to be in the input field as I need to search on
the key.

Now when users input a key in browse mode I am able to overlay the
input field with the related group's name so that the user never gets
to see the key field. This approach does not work in find mode. How
can I have my cake and eat it? I want to have user input the key field
but display the correct group name instead.

Can you suggest a workaround?

Many thanks Kevin

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

Default Re: FIND MODE: Search using keyfield - 10-15-2010 , 11:30 AM



:-) I'm so happy. An elegant solution, thanks so much Grip. I've
implemented it and it does the job.

Regards Kevin

On Oct 15, 3:40*pm, Grip <gripdevelo... (AT) gmail (DOT) com> wrote:
Quote:
Kevin,
Instead of a drop down list, you can use a pop up menu. *I

Reply With Quote
  #6  
Old   
Your Name
 
Posts: n/a

Default Re: FIND MODE: Search using keyfield - 10-15-2010 , 03:41 PM



"KevinSmith" <pleasedonotusethisaddress (AT) gmail (DOT) com> wrote

Quote:
Thanks Harry for your quick reply. Here's my response to your
suggestions:

If there is already a "Group Name" Field (or you could add one), then
you
can just use that to perform the FInd.
Say the user searches for "Agency" then it will come up with both of
the following groups "Agency" and "Previous Agency". But now thinking
aloud, I think your suggestion of pre-processing the find layout
before allowing the find function to continue (see below) might work
well here. I can concatenate the prefix "==" onto the group field.
That will fix the problem of ambiguity.

Another option is to Script the Find. Have the User enter the requested
"Group Name" data into a Global Field and then use a Script 'convert'
that
into the "Group Key" data, put it into the appropriate Find Request
Field
and then process the Find.

I've already got the scripting infrastructure in place for finds so
that's not a problem. My hunch is that I won't be able to do the
scripted lookup on the group name to find out the matching key while
in find mode. The relationships won't evaluate in find mode.

Does anyone else have any suggestions/comments?
True, Relationship links do not work in Find mode, but using a Script means
you can obtain that data before going into Find mode.

Set-up a Global Field that the user enters their requested data into (in
Broswse mode) and have a new copy of the Relationship using this Global
Field as the parent side of the link. The Script can then copy the
approriate related data to a second Global Field (or Variable) which can be
transferred back to the normal Field once in Find mode (Global Fields retain
their data in Find mode).

Helpful Harry )

Reply With Quote
  #7  
Old   
KevinSmith
 
Posts: n/a

Default Re: FIND MODE: Search using keyfield - 10-17-2010 , 05:36 PM



Thanks Harry

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.