dbTalk Databases Forums  

A Script to goto a specific record using a unique field

comp.databases.filemaker comp.databases.filemaker


Discuss A Script to goto a specific record using a unique field in the comp.databases.filemaker forum.



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

Default A Script to goto a specific record using a unique field - 11-02-2006 , 06:27 AM






Hi All,

I've been googling this for a while, and still no luck in terms of what
i'm after.
I have a DB with each record identified by a unique ID called
JobNumber.

I am trying to create a script to ask the user to type a Job Number,
and on hitting OK, the user is taken to the specific job (and a
specific layout).
What I have done is create a global field: gDummyJobNumber, and I am
using this in the dialog box that shows up.
Using the goto record/request etc with the gDummyJobNumber as the field
is not working.

I have tried creating a self relationship with
gDummyJobNumber=JobNumber and then using the goto related record, still
no success.

Anyone has any ideas?
I'm using FMP7

Thanks.


Reply With Quote
  #2  
Old   
Paul Bruneau
 
Posts: n/a

Default Re: A Script to goto a specific record using a unique field - 11-02-2006 , 07:24 AM






You are definitely on the right track. Relate your global field to your
actual job number field, and be sure to use the "Go To Related Record"
script step, not the Go To Record/Request step.


Reply With Quote
  #3  
Old   
Helpful Harry
 
Posts: n/a

Default Re: A Script to goto a specific record using a unique field - 11-02-2006 , 02:11 PM



In article <1162473876.826641.83550 (AT) h54g2000cwb (DOT) googlegroups.com>,
"Paul Bruneau" <paul (AT) ethicalpaul (DOT) com> wrote:

Quote:
You are definitely on the right track. Relate your global field to your
actual job number field, and be sure to use the "Go To Related Record"
script step, not the Go To Record/Request step.
The other way is to not bother with a Relationship at all and just
script a Find.
eg.
Enter Find Mode []
Set Field [JobNumber, gDummyJobNumber]
Perform Find []
Go To Layout [whateverlayout]


Either way, you also need to include some error catching routines in
case the user enters a Job Number that doesn't have any records.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


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.