dbTalk Databases Forums  

Marked Changes

comp.databases.filemaker comp.databases.filemaker


Discuss Marked Changes in the comp.databases.filemaker forum.



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

Default Marked Changes - 08-08-2005 , 09:58 PM






Using FM Pro 6.0 on WindowsXP

When the data in two fields (A and B) on the same record do not match I want
to display a border around the changed field (B).
Field B will be the field that is always changed. Field A will always be
for viewing only.

I am currently using a case statement in a calcuation field to detect when A
and B are the same.
0 = Same
1= Different

Any ideas on how to accomplish this?




Thanks
Bigfoot1956



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

Default Re: Marked Changes - 08-09-2005 , 01:27 AM






In article <KXUJe.947$Kp.191 (AT) bignews6 (DOT) bellsouth.net>, "bigfoot"
<REMOVEemailwwjCAPS (AT) bellsouth (DOT) netWORK> wrote:

Quote:
Using FM Pro 6.0 on WindowsXP

When the data in two fields (A and B) on the same record do not match I want
to display a border around the changed field (B).
Field B will be the field that is always changed. Field A will always be
for viewing only.

I am currently using a case statement in a calcuation field to detect when A
and B are the same.
0 = Same
1= Different

Any ideas on how to accomplish this?
Go to the layout and change to Layout Mode. Draw a rectangle around the
field using the normal Rectangle tool and change the line and fill
colours / styles to whatever you want. Then copy it.

Create a new Global field (g_FieldBorder) which is a Container. Put
this on the layout temporarily, then go into Browse Mode and paste in
the border graphic.

Create a new Calculation field:

FieldBorder Calculation, Container Result, Unstored
= If (FieldA = FieldB, "", g_FieldBorder)

This field will calculate as "" (empty) when the fields are the same,
but display the broder graphic when they're different.

Put this field on the layout and position it so that it is behind
FieldB and stretch it to an apropriate size. Also change the Grpahic
Format of the field to "Crop".

All done!

It might take a little playing to get it looking right. The easiest way
would be to change one of the fields so that they're different, then in
Layout Mode you can use the Show Sample Data and you'll be able to see
the grpahic as you stretch and position the field.




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


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

Default Re: Marked Changes - 08-09-2005 , 03:26 AM



In article <090820051827060778%helpful_harry (AT) nom (DOT) de.plume.com>,
helpful_harry (AT) nom (DOT) de.plume.com says...
Quote:
In article <KXUJe.947$Kp.191 (AT) bignews6 (DOT) bellsouth.net>, "bigfoot"
REMOVEemailwwjCAPS (AT) bellsouth (DOT) netWORK> wrote:

Using FM Pro 6.0 on WindowsXP

When the data in two fields (A and B) on the same record do not match I want
to display a border around the changed field (B).
Field B will be the field that is always changed. Field A will always be
for viewing only.

I am currently using a case statement in a calcuation field to detect when A
and B are the same.
0 = Same
1= Different

Any ideas on how to accomplish this?

Go to the layout and change to Layout Mode. Draw a rectangle around the
field using the normal Rectangle tool and change the line and fill
colours / styles to whatever you want. Then copy it.

Create a new Global field (g_FieldBorder) which is a Container. Put
this on the layout temporarily, then go into Browse Mode and paste in
the border graphic.

Create a new Calculation field:

FieldBorder Calculation, Container Result, Unstored
= If (FieldA = FieldB, "", g_FieldBorder)

This field will calculate as "" (empty) when the fields are the same,
but display the broder graphic when they're different.

Put this field on the layout and position it so that it is behind
FieldB and stretch it to an apropriate size. Also change the Grpahic
Format of the field to "Crop".

All done!

It might take a little playing to get it looking right. The easiest way
would be to change one of the fields so that they're different, then in
Layout Mode you can use the Show Sample Data and you'll be able to see
the grpahic as you stretch and position the field.
One note: there is often a "flicker" side effect to layering fields like
this, particularly noticable with graphics containers in client server
environments, when doing screen redraws (which occur when
advancing/retreating records and at many other times.) at least in my
experience.

Its not a big deal, but it can be distracting enough to be a problem
depending on the exact usage patterns of the layouts setup this way.



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

Default Re: Marked Changes - 08-09-2005 , 08:29 PM



Thanks

Works Great.

Just Like PGA Golf. These Guys (and Gals) are GOOD.




"42" <nospam (AT) nospam (DOT) com> wrote

Quote:
In article <090820051827060778%helpful_harry (AT) nom (DOT) de.plume.com>,
helpful_harry (AT) nom (DOT) de.plume.com says...
In article <KXUJe.947$Kp.191 (AT) bignews6 (DOT) bellsouth.net>, "bigfoot"
REMOVEemailwwjCAPS (AT) bellsouth (DOT) netWORK> wrote:

Using FM Pro 6.0 on WindowsXP

When the data in two fields (A and B) on the same record do not match I
want
to display a border around the changed field (B).
Field B will be the field that is always changed. Field A will always
be
for viewing only.

I am currently using a case statement in a calcuation field to detect
when A
and B are the same.
0 = Same
1= Different

Any ideas on how to accomplish this?

Go to the layout and change to Layout Mode. Draw a rectangle around the
field using the normal Rectangle tool and change the line and fill
colours / styles to whatever you want. Then copy it.

Create a new Global field (g_FieldBorder) which is a Container. Put
this on the layout temporarily, then go into Browse Mode and paste in
the border graphic.

Create a new Calculation field:

FieldBorder Calculation, Container Result, Unstored
= If (FieldA = FieldB, "", g_FieldBorder)

This field will calculate as "" (empty) when the fields are the same,
but display the broder graphic when they're different.

Put this field on the layout and position it so that it is behind
FieldB and stretch it to an apropriate size. Also change the Grpahic
Format of the field to "Crop".

All done!

It might take a little playing to get it looking right. The easiest way
would be to change one of the fields so that they're different, then in
Layout Mode you can use the Show Sample Data and you'll be able to see
the grpahic as you stretch and position the field.

One note: there is often a "flicker" side effect to layering fields like
this, particularly noticable with graphics containers in client server
environments, when doing screen redraws (which occur when
advancing/retreating records and at many other times.) at least in my
experience.

Its not a big deal, but it can be distracting enough to be a problem
depending on the exact usage patterns of the layouts setup this way.




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

Default Re: Marked Changes - 08-10-2005 , 01:20 AM




Quote:
One note: there is often a "flicker" side effect to layering fields like
this, particularly noticable with graphics containers in client server
environments, when doing screen redraws (which occur when
advancing/retreating records and at many other times.) at least in my
experience.

Its not a big deal, but it can be distracting enough to be a problem
depending on the exact usage patterns of the layouts setup this way.
True.

A workaround in this particular case could be to use four fields: one
each for the top border, bottom border, and each side border. That way
the fields don't overlap, but are just placed next to each other.



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.