dbTalk Databases Forums  

Associating a Find with a Layout

comp.databases.filemaker comp.databases.filemaker


Discuss Associating a Find with a Layout in the comp.databases.filemaker forum.



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

Default Associating a Find with a Layout - 09-15-2005 , 02:50 AM






There does not seem to be an easy way to associate a Find action with a
Layout. After using Open Access 4 database for 20 years (and Microsoft
Access for 10 years!) I assumed this would be built into Filemaker since
it is a fundamental requirement for most reports (ie I almost always
need to select the records to be printed).

It also seems very tedious to record a Find request within a script for
later use (eg to associate with a button that retrieves records and then
prints a report).

Have I missed something?

Michael Paine

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

Default Re: Associating a Find with a Layout - 09-15-2005 , 04:23 AM






Michael Paine wrote on (9/15/2005):

Quote:
There does not seem to be an easy way to associate a Find action with a
Layout. After using Open Access 4 database for 20 years (and Microsoft
Access for 10 years!) I assumed this would be built into Filemaker since
it is a fundamental requirement for most reports (ie I almost always need
to select the records to be printed).

It also seems very tedious to record a Find request within a script for
later use (eg to associate with a button that retrieves records and then
prints a report).

Have I missed something?

Michael Paine


Indeed you have.

While we have the capability to specify the entire find within the
scripting process, this is actually something new.

Go to your layout, enter Find Mode and create your find, using as many
requests as necessary. Execute the find.

Open ScriptMaker, create a new script, add a Perform Find script step.
Click Specify Find Requests, and in the resulting dialog you'll see that
the find you just performed is there in all its glory, exactly as you
defined it.

You can even go back to Find mode, create an entirely new find, return to
the script, add another Perform Find step, and this latest find is now
there as well. This maneuver is handy for refining the find (delete the
earlier step), but you can also tweak from within the Edit Find Request
dialog.

Inthe script, precede the Perform Find step with a Go To Layout step, and
you're done.

As long as the find properly expresses what you want, there should be no
need to select record manually.

Matt


Reply With Quote
  #3  
Old   
Michael Paine
 
Posts: n/a

Default Re: Associating a Find with a Layout - 09-23-2005 , 02:03 AM



Thank Matt. I have got the hang of it now. In my case it is also
important to sort the records to suit the groupings in the report. Below
is a sample of the script for future reference.
Michael Paine
-----------
Set Error Capture [ On ]
Enter Browse Mode
Go to Layout [ “PENDING_STATUS” (VEHICLE_MODEL) ]
Perform Find [ Specified Find Requests: Find Records; Criteria:
PUBLICATION_STATUS::SITUATION: “="A PLANNING"” ]
[ Restore ]
Sort Records [ Specified Sort Order: PUBLICATION_STATUS::SITUATION;
ascending
PUBLICATION_STATUS::PUBLICATION_STATUS; ascending
VEHICLE_MODEL::veh_name; ascending ]
[ Restore; No dialog ]
Enter Preview Mode
Exit Script [ ]



------------
Matt Wills wrote:

Quote:
Michael Paine wrote on (9/15/2005):

There does not seem to be an easy way to associate a Find action with
a Layout. After using Open Access 4 database for 20 years (and
Microsoft Access for 10 years!) I assumed this would be built into
Filemaker since it is a fundamental requirement for most reports (ie I
almost always need to select the records to be printed).

It also seems very tedious to record a Find request within a script
for later use (eg to associate with a button that retrieves records
and then prints a report).

Have I missed something?

Michael Paine




Indeed you have.

While we have the capability to specify the entire find within the
scripting process, this is actually something new.

Go to your layout, enter Find Mode and create your find, using as many
requests as necessary. Execute the find.

Open ScriptMaker, create a new script, add a Perform Find script step.
Click Specify Find Requests, and in the resulting dialog you'll see that
the find you just performed is there in all its glory, exactly as you
defined it.

You can even go back to Find mode, create an entirely new find, return
to the script, add another Perform Find step, and this latest find is
now there as well. This maneuver is handy for refining the find (delete
the earlier step), but you can also tweak from within the Edit Find
Request dialog.

Inthe script, precede the Perform Find step with a Go To Layout step,
and you're done.

As long as the find properly expresses what you want, there should be no
need to select record manually.

Matt

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.