dbTalk Databases Forums  

Layout by calculation??

comp.databases.filemaker comp.databases.filemaker


Discuss Layout by calculation?? in the comp.databases.filemaker forum.



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

Default Layout by calculation?? - 10-11-2005 , 10:57 AM






I have a db with many layouts and would like to be able to go to a specific
layout based on the text that is entered in a field. I don't understand
what to calculate to get the 'Layout Name by calculation' or Layout Number
by calculation' to work. The text in the field that will be queried will
either be 'portrait' or 'school'. Any help will be appreciated.

Kenny



Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Layout by calculation?? - 10-11-2005 , 11:11 AM






Then your calculation would be either "Portrait" or "School". Or if
there is a field that holds the desired layout name, you can use just
that field's name as your calculation. Or for only two layouts, you
could just use an If/Else statement in your script to go to the desired
layout.

KennyS wrote:
Quote:
I have a db with many layouts and would like to be able to go to a specific
layout based on the text that is entered in a field. I don't understand
what to calculate to get the 'Layout Name by calculation' or Layout Number
by calculation' to work. The text in the field that will be queried will
either be 'portrait' or 'school'. Any help will be appreciated.

Kenny


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


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

Default Re: Layout by calculation?? - 10-11-2005 , 12:12 PM



That's the part I don't understand.... WHAT AM I CALCULATING? I tried (If
jobtype="portrait", portraitlayout, schoollayout) but I got 'table not
found' error for 'portrait' Can you give me an example of a calculation
that I can try?

Thanks for your reply.
KS


"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> wrote

Quote:
Then your calculation would be either "Portrait" or "School". Or if there
is a field that holds the desired layout name, you can use just that
field's name as your calculation. Or for only two layouts, you could just
use an If/Else statement in your script to go to the desired layout.

KennyS wrote:
I have a db with many layouts and would like to be able to go to a
specific layout based on the text that is entered in a field. I don't
understand what to calculate to get the 'Layout Name by calculation' or
Layout Number by calculation' to work. The text in the field that will
be queried will either be 'portrait' or 'school'. Any help will be
appreciated.

Kenny

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance



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

Default Re: Layout by calculation?? - 10-11-2005 , 01:17 PM



If you have a layout named 'portrait', and a layout named 'school', and
a field called 'jobtype' which equals 'portrait' or 'school'... then you
"calculation" is JUST:

jobtype

(which evaluates to either 'portrait' or 'school')

if the layouts are named 'por' and 'sch' and jobtype is defined as above
then the calc might be:

left(jobtype,3)

if the layouts are inexplicably named 'hobo' and 'lunchmeat' then the
calc might be:

if(jobtype="portrait","hobo","lunchmeat")


hth

-regards,
Dave

In article <RIOdndMmNaocbNbeRVn-tA (AT) adelphia (DOT) com>, ks4078 (AT) hotmail (DOT) com
says...
Quote:
That's the part I don't understand.... WHAT AM I CALCULATING? I tried (If
jobtype="portrait", portraitlayout, schoollayout) but I got 'table not
found' error for 'portrait' Can you give me an example of a calculation
that I can try?

Thanks for your reply.
KS


"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> wrote in message
news:11knp1ufdlcmb0e (AT) corp (DOT) supernews.com...
Then your calculation would be either "Portrait" or "School". Or if there
is a field that holds the desired layout name, you can use just that
field's name as your calculation. Or for only two layouts, you could just
use an If/Else statement in your script to go to the desired layout.

KennyS wrote:
I have a db with many layouts and would like to be able to go to a
specific layout based on the text that is entered in a field. I don't
understand what to calculate to get the 'Layout Name by calculation' or
Layout Number by calculation' to work. The text in the field that will
be queried will either be 'portrait' or 'school'. Any help will be
appreciated.

Kenny

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance




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

Default Re: Layout by calculation?? - 10-11-2005 , 02:03 PM



Thanks! I got it. I think I left out the second & third set of quotes in
my calc before.
KS
"42" <nospam (AT) nospam (DOT) com> wrote

Quote:
If you have a layout named 'portrait', and a layout named 'school', and
a field called 'jobtype' which equals 'portrait' or 'school'... then you
"calculation" is JUST:

jobtype

(which evaluates to either 'portrait' or 'school')

if the layouts are named 'por' and 'sch' and jobtype is defined as above
then the calc might be:

left(jobtype,3)

if the layouts are inexplicably named 'hobo' and 'lunchmeat' then the
calc might be:

if(jobtype="portrait","hobo","lunchmeat")


hth

-regards,
Dave

In article <RIOdndMmNaocbNbeRVn-tA (AT) adelphia (DOT) com>, ks4078 (AT) hotmail (DOT) com
says...
That's the part I don't understand.... WHAT AM I CALCULATING? I tried
(If
jobtype="portrait", portraitlayout, schoollayout) but I got 'table not
found' error for 'portrait' Can you give me an example of a calculation
that I can try?

Thanks for your reply.
KS


"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> wrote in
message
news:11knp1ufdlcmb0e (AT) corp (DOT) supernews.com...
Then your calculation would be either "Portrait" or "School". Or if
there
is a field that holds the desired layout name, you can use just that
field's name as your calculation. Or for only two layouts, you could
just
use an If/Else statement in your script to go to the desired layout.

KennyS wrote:
I have a db with many layouts and would like to be able to go to a
specific layout based on the text that is entered in a field. I don't
understand what to calculate to get the 'Layout Name by calculation'
or
Layout Number by calculation' to work. The text in the field that
will
be queried will either be 'portrait' or 'school'. Any help will be
appreciated.

Kenny

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance






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.