 |
|
 |
|
Next: A different definition of MINUS, Part 2
|
| Author |
Message |
External

Since: Oct 24, 2008 Posts: 10
|
(Msg. 1) Posted: Tue Dec 16, 2008 11:15 am
Post subject: Calculating Based on Value List (Again) Archived from groups: comp>databases>filemaker (more info?)
|
|
|
All,
I hope that sending a new post on a old subject is not considered a
faux pas, if so please let me know how to go about amending my older
post.
Hans, Harry,
Thank you for your help, but the Pattern Count is not working
properly.
As you are aware, in my database, in the "Admissions" section,
potential clients are asked a series of questions including "Do You
Have Suicide Thoughts", and "Have You Ever Attempted Suicide".
In order to reduce redundancy between departments, I try to use as
much existing data as possible so as a client moves from department to
department within our facility, the same questions do not have to be
asked again.
In this case when the client reaches the Medical Department, they need
to know if the client is suicidal or has attempted suicide. Seeing
that the Admissions Staff has already asked this question, I wanted to
pre-populate this answer on the Medical side.
I used the PatternCount function as such:
PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
Attempts" )
and formatting the field's number to "Format as Boolean" Show Non
Zeros as "Yes", Show Zeros as "No"
The problem is that they all show up as "No".
The easy thing to do would be to copy the check box field over to the
medical side, but medical does not need all 17 questions listed in
this particular field.
What am I missing? >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Oct 24, 2008 Posts: 10
|
(Msg. 2) Posted: Tue Dec 16, 2008 1:18 pm
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Dec 16, 2:44 pm, Hans Besjes wrote:
> Hi Eric,
>
> On 12/16/2008 20:15:26 Eric wrote:
>
> > All,
> > I hope that sending a new post on a old subject is not considered a faux
> > pas, if so please let me know how to go about amending my older post.
>
> It don't see why
>
> It would however be easier to continue the existing thread. That makes it easier to find the previous post(s) on the subject and then you won't have to explain everything again...
>
>
>
> > Hans, Harry,
> > Thank you for your help, but the Pattern Count is not working properly.
> > As you are aware, in my database, in the "Admissions" section, potential
> > clients are asked a series of questions including "Do You Have Suicide
> > Thoughts", and "Have You Ever Attempted Suicide".
> > In order to reduce redundancy between departments, I try to use as much
> > existing data as possible so as a client moves from department to
> > department within our facility, the same questions do not have to be asked
> > again.
> > In this case when the client reaches the Medical Department, they need to
> > know if the client is suicidal or has attempted suicide. Seeing that the
> > Admissions Staff has already asked this question, I wanted to pre-populate
> > this answer on the Medical side.
> > I used the PatternCount function as such:
> > PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
> > Attempts" )
> > and formatting the field's number to "Format as Boolean" Show Non Zeros as
> > "Yes", Show Zeros as "No"
> > The problem is that they all show up as "No".
> > The easy thing to do would be to copy the check box field over to the
> > medical side, but medical does not need all 17 questions listed in this
> > particular field.
> > What am I missing?
>
> That is the 64.000 dollar question
>
> And the answer is not that obvious ;(
>
> You may want to check the type of the calculation field and resulting content of it.
>
> You can do this by putting a duplicate field on your layout formatted as Edit Box. If the PatternCount function does not evaluate properly, it may be that the result is an EMPTY field, which also will be shown as "No".
>
> Is the spelling of "Suicide Attempts" EXACTLY the same in the value list and in the field definition? No double spaces, non-breaking spaces, ...??
> Easiest way to check/correct this is to copy the text from your value list and past it into the calculation.
>
> I can't think of anything else...
>
> Hans Besjes
Hans,
I copied and pasted the field twice, once as the formatted checkbox
field, and once as an edit field. On records that show "Suicide
Attempts" as checked, it also appears in the edit box as "Suicide
Attempts". So I copied and pasted the text "Suicide Attempts" into
the calculation just to make sure it was spelled correctly. My
calculation still say "no".
It has got to be me. Is there a different way to get my field to
display whether or not "Suicide Attempts" has been checked? >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Nov 28, 2008 Posts: 33
|
(Msg. 3) Posted: Tue Dec 16, 2008 3:33 pm
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Eric,
On 12/16/2008 20:15:26 Eric wrote:
> All,
> I hope that sending a new post on a old subject is not considered a faux
> pas, if so please let me know how to go about amending my older post.
It don't see why
It would however be easier to continue the existing thread. That makes it easier to find the previous post(s) on the subject and then you won't have to explain everything again...
> Hans, Harry,
> Thank you for your help, but the Pattern Count is not working properly.
> As you are aware, in my database, in the "Admissions" section, potential
> clients are asked a series of questions including "Do You Have Suicide
> Thoughts", and "Have You Ever Attempted Suicide".
> In order to reduce redundancy between departments, I try to use as much
> existing data as possible so as a client moves from department to
> department within our facility, the same questions do not have to be asked
> again.
> In this case when the client reaches the Medical Department, they need to
> know if the client is suicidal or has attempted suicide. Seeing that the
> Admissions Staff has already asked this question, I wanted to pre-populate
> this answer on the Medical side.
> I used the PatternCount function as such:
> PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
> Attempts" )
> and formatting the field's number to "Format as Boolean" Show Non Zeros as
> "Yes", Show Zeros as "No"
> The problem is that they all show up as "No".
> The easy thing to do would be to copy the check box field over to the
> medical side, but medical does not need all 17 questions listed in this
> particular field.
> What am I missing?
That is the 64.000 dollar question
And the answer is not that obvious ;(
You may want to check the type of the calculation field and resulting content of it.
You can do this by putting a duplicate field on your layout formatted as Edit Box. If the PatternCount function does not evaluate properly, it may be that the result is an EMPTY field, which also will be shown as "No".
Is the spelling of "Suicide Attempts" EXACTLY the same in the value list and in the field definition? No double spaces, non-breaking spaces, ...??
Easiest way to check/correct this is to copy the text from your value list and past it into the calculation.
I can't think of anything else...
Hans Besjes >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Apr 16, 2008 Posts: 93
|
(Msg. 4) Posted: Tue Dec 16, 2008 6:25 pm
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Formatting the field contents does NOT change the contents. It merely
formats it to a more readable state. To see what is going on I would place
an unformatted version of the field on your lay-out. Make it quite big. The
go into browse, and high-light the contents of the field. That way all tabs,
space etc, will show up.
Do the same with the Client Records::Presenting Problem Checklist field. See
that both fields contain the data you expect.My guess is that the latter
field contains more data then expected, thus always producing a NO.
Further I wouldn't use formatting but a calculated field that would deliver
the words you want.
Calculated field, result reurned as text.
IF ( PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
Attempts" ) = 0 ; "NO" ; "YES" )
Keep well, Ursus
"Eric" schreef in bericht
On Dec 16, 2:44 pm, Hans Besjes wrote:
> Hi Eric,
>
> On 12/16/2008 20:15:26 Eric wrote:
>
> > All,
> > I hope that sending a new post on a old subject is not considered a faux
> > pas, if so please let me know how to go about amending my older post.
>
> It don't see why
>
> It would however be easier to continue the existing thread. That makes it
> easier to find the previous post(s) on the subject and then you won't have
> to explain everything again...
>
>
>
> > Hans, Harry,
> > Thank you for your help, but the Pattern Count is not working properly.
> > As you are aware, in my database, in the "Admissions" section, potential
> > clients are asked a series of questions including "Do You Have Suicide
> > Thoughts", and "Have You Ever Attempted Suicide".
> > In order to reduce redundancy between departments, I try to use as much
> > existing data as possible so as a client moves from department to
> > department within our facility, the same questions do not have to be
> > asked
> > again.
> > In this case when the client reaches the Medical Department, they need
> > to
> > know if the client is suicidal or has attempted suicide. Seeing that the
> > Admissions Staff has already asked this question, I wanted to
> > pre-populate
> > this answer on the Medical side.
> > I used the PatternCount function as such:
> > PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
> > Attempts" )
> > and formatting the field's number to "Format as Boolean" Show Non Zeros
> > as
> > "Yes", Show Zeros as "No"
> > The problem is that they all show up as "No".
> > The easy thing to do would be to copy the check box field over to the
> > medical side, but medical does not need all 17 questions listed in this
> > particular field.
> > What am I missing?
>
> That is the 64.000 dollar question
>
> And the answer is not that obvious ;(
>
> You may want to check the type of the calculation field and resulting
> content of it.
>
> You can do this by putting a duplicate field on your layout formatted as
> Edit Box. If the PatternCount function does not evaluate properly, it may
> be that the result is an EMPTY field, which also will be shown as "No".
>
> Is the spelling of "Suicide Attempts" EXACTLY the same in the value list
> and in the field definition? No double spaces, non-breaking spaces, ...??
> Easiest way to check/correct this is to copy the text from your value list
> and past it into the calculation.
>
> I can't think of anything else...
>
> Hans Besjes
Hans,
I copied and pasted the field twice, once as the formatted checkbox
field, and once as an edit field. On records that show "Suicide
Attempts" as checked, it also appears in the edit box as "Suicide
Attempts". So I copied and pasted the text "Suicide Attempts" into
the calculation just to make sure it was spelled correctly. My
calculation still say "no".
It has got to be me. Is there a different way to get my field to
display whether or not "Suicide Attempts" has been checked? >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Oct 24, 2008 Posts: 10
|
(Msg. 5) Posted: Wed Dec 17, 2008 7:07 pm
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Dec 17, 12:00 am, Hans Besjes wrote:
> On 12/16/2008 22:18:12 Eric wrote:
>
> > On Dec 16, 2:44 pm, Hans Besjes wrote:
> >> Hi Eric,
> >> On 12/16/2008 20:15:26 Eric wrote:
>
> .
> .
> .
>
> > Hans,
> > I copied and pasted the field twice, once as the formatted checkbox field,
> > and once as an edit field. On records that show "Suicide Attempts" as
> > checked, it also appears in the edit box as "Suicide Attempts". So I
> > copied and pasted the text "Suicide Attempts" into the calculation just to
> > make sure it was spelled correctly. My calculation still say "no".
> > It has got to be me. Is there a different way to get my field to display
> > whether or not "Suicide Attempts" has been checked?
>
> Eric,
>
> Beats me what is going on here...
>
> What machine are you working on and what version of FileMaker Proare you using?
>
> I have once had a calculation fail because a certain function in FileMaker Pro 6 would evaluate incorrectly on an Intel MacBook, on my own PowerPC PowerBook the calculation worked as it should...
>
> Hans Besjes
Hans, I'm using FileMaker Pro 9.0 Server Edition on a Windows Platform. >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Nov 28, 2008 Posts: 33
|
(Msg. 6) Posted: Thu Dec 18, 2008 4:25 am
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Eric,
On 12/18/2008 04:07:29 Eric wrote:
>> What machine are you working on and what version of FileMaker Proare you
>> using?
..
..
> Hans, I'm using FileMaker Pro 9.0 Server Edition on a Windows Platform.
And what client are you using with that?
Hans Besjes >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Dec 20, 2008 Posts: 2
|
(Msg. 7) Posted: Sat Dec 20, 2008 9:58 am
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2008-12-16 11:44:38 -0800, Hans Besjes said:
> Hi Eric,
>
> On 12/16/2008 20:15:26 Eric wrote:
>
>> All,
>
>> I hope that sending a new post on a old subject is not considered a faux
>> pas, if so please let me know how to go about amending my older post.
>
> It don't see why
>
> It would however be easier to continue the existing thread. That makes
> it easier to find the previous post(s) on the subject and then you
> won't have to explain everything again...
>
>> Hans, Harry,
>
>> Thank you for your help, but the Pattern Count is not working properly.
>
>> As you are aware, in my database, in the "Admissions" section, potential
>> clients are asked a series of questions including "Do You Have Suicide
>> Thoughts", and "Have You Ever Attempted Suicide".
>
>> In order to reduce redundancy between departments, I try to use as much
>> existing data as possible so as a client moves from department to
>> department within our facility, the same questions do not have to be asked
>> again.
>
>> In this case when the client reaches the Medical Department, they need to
>> know if the client is suicidal or has attempted suicide. Seeing that the
>> Admissions Staff has already asked this question, I wanted to pre-populate
>> this answer on the Medical side.
>
>> I used the PatternCount function as such:
>
>> PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
>> Attempts"
Hi there,
When you do you a pattern count are you loking for pattern in a field
that contains check boxes? Also is your search on field in a
relarionship and is returning a value greater than 1?
I like Ursus' suggesttion of programming the yes and no. I've never
used the boolean feature.
best
Lou >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
External

Since: Nov 28, 2008 Posts: 33
|
(Msg. 8) Posted: Sat Dec 20, 2008 9:25 pm
Post subject: Re: Calculating Based on Value List (Again) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi,
On 12/20/2008 18:58:32 Lou Lesko wrote:
> Subject: Re: Calculating Based on Value List (Again)
> Date: 12/20/2008 18:58:32
> From: Lou Lesko
> Newsgroups: comp.databases.filemaker
> On 2008-12-16 11:44:38 -0800, Hans Besjes said:
>> Hi Eric,
>> On 12/16/2008 20:15:26 Eric wrote:
>>> All,
>>> I hope that sending a new post on a old subject is not considered a faux
>>> pas, if so please let me know how to go about amending my older post.
>> It don't see why
>> It would however be easier to continue the existing thread. That makes
>> it easier to find the previous post(s) on the subject and then you won't
>> have to explain everything again...
>>> Hans, Harry,
>>> Thank you for your help, but the Pattern Count is not working properly.
>>> As you are aware, in my database, in the "Admissions" section, potential
>>> clients are asked a series of questions including "Do You Have Suicide
>>> Thoughts", and "Have You Ever Attempted Suicide".
>>> In order to reduce redundancy between departments, I try to use as much
>>> existing data as possible so as a client moves from department to
>>> department within our facility, the same questions do not have to be
>>> asked again.
>>> In this case when the client reaches the Medical Department, they need
>>> to know if the client is suicidal or has attempted suicide. Seeing that
>>> the Admissions Staff has already asked this question, I wanted to
>>> pre-populate this answer on the Medical side.
>>> I used the PatternCount function as such:
>>> PatternCount ( Client Records::Presenting Problem Checklist ; "Suicide
>>> Attempts"
> Hi there,
> When you do you a pattern count are you loking for pattern in a field that
> contains check boxes? Also is your search on field in a relarionship and
> is returning a value greater than 1?
> I like Ursus' suggesttion of programming the yes and no. I've never used
> the boolean feature.
> best Lou
With the boolean "feature" you only evaluate to either a 1 (one) or a 0 (zero). Anything further is just adding "translations" to the results...
Usually if you use this calculated field to further base decisions on ("controlling" the script), having a 0/1 value is mostly easier to work with (no if/then yes/no statements). And furthermore a 0/1 value is language independent...
Showing a 0/1 value on a layout can easily be "hidden" by the use of checkboxes (empty or 1 result), or radio buttons (0/1)...
The 0/1 are hidden from view, and an appropriate text is put on the layout next to the radio buttons. The radio buttons for 0 and 1 respectivily can easily be made different colours to accentuate the result.
Try experimenting with that, you can make life a whole lot easier for your users by using this to your advantage.
Hans Besjes >> Stay informed about: Calculating Based on Value List (Again) |
|
| Back to top |
|
 |  |
| Related Topics: | Calculating fields - Hi, I,ve created a very simple solution using FM 8 on windows. It contains 1 table and a few fields. One of them is a date field and another a number field. The 3 field should be a total of all value's entered on all records in the number field, of the....
Resources for FMP Scripting/Calculating? - Hi --- I'm wondering whether there are good texts or web resources or even seminars offered out there that focus particularly on how to write scripts and calculations in FMP. I'm thinking mostly about learning how to write solutions for ..
Find based on a date field in FM 6 - I am trying to write a find script that finds records that have a date field in between two given dates. i.e: I have a file with a date field named DATE and two other global date fields named FROM_DATE and TO_DATE. I want a script that finds all record...
Can't set, goto, or point to a field based on a variable or - Hello, I would like to think that I am at least an intermediate Filemaker user... I've run into one problem at the result of solving another. I realize FM Pro 8 is by no means a product life cycle management tool, but so far what I have designed is..
Change all grouped field colors based on one groups value. - Here's what I have, In a purchase order database I created, when the order is placed, the order is set to a Value List STATUS field of "Pending". Now when the order gets updated I change the Value List field STATUS to "Shipped". I th... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|