dbTalk Databases Forums  

Conditional Formatting and Repetion Fields

comp.databases.filemaker comp.databases.filemaker


Discuss Conditional Formatting and Repetion Fields in the comp.databases.filemaker forum.



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

Default Conditional Formatting and Repetion Fields - 03-19-2010 , 03:18 PM






FMP 10: Nurserey want's a plan showing what room gets cleaned when. I
have a list view with the rooms from top to bottom. The want the days of
the month from left to right.

Day1 Day2 Day3 Day4
Room1 Cleaning
Room2 Cleaning
Room3 Cleaning
Room4 Cleaning

I made a global date field for the start date and a calc feld with 31
repetitions to display the days of the month (and the first days of the
following month if the current month has less than 31 days).

Can I stay with that or do I have to create 31 fields, because:

Problem #1: I can't have Sundays painted in red with the repetition
field, can I? The dataviewer shows the weekday of the repetition I click
in, but it seems that's not good enough for conditional formatting.

Problem #2: In the resulting grid, the cleaning days need to get marked.
A room get's cleaned on day 2 if the room above (the previous record)
got cleaned on day 1. I have to put in a place to start somehow. To keep
matters simpler, I assume there won't be any iterruptions (they actually
do clean rooms on Sundays).
--
http://clk.ch

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: Conditional Formatting and Repetion Fields - 03-19-2010 , 04:19 PM






In article <1jfmg13.167s17h1dhfkwiN%clk (AT) tele2 (DOT) ch>, clk (AT) tele2 (DOT) ch (Christoph
Kaufmann) wrote:

Quote:
FMP 10: Nurserey want's a plan showing what room gets cleaned when. I
have a list view with the rooms from top to bottom. The want the days of
the month from left to right.

Day1 Day2 Day3 Day4
Room1 Cleaning
Room2 Cleaning
Room3 Cleaning
Room4 Cleaning

I made a global date field for the start date and a calc feld with 31
repetitions to display the days of the month (and the first days of the
following month if the current month has less than 31 days).

Can I stay with that or do I have to create 31 fields, because:
Having 31 fields or even better a new Table of Related records (one for
each day, where data is needed) would be the best approach to get around
all sorts of messy problems you'll discover when using Repeating Fields.


Helpful Harry )

Reply With Quote
  #3  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Conditional Formatting and Repetion Fields - 03-20-2010 , 01:06 AM



Your Name <your.name (AT) isp (DOT) com> wrote:

Quote:
Having 31 fields or even better a new Table of Related records (one for
each day, where data is needed) would be the best approach to get around
all sorts of messy problems you'll discover when using Repeating Fields.
Agreed. I wouldn't want to use repetition fields to store real data,
this is for show only.
--
http://clk.ch

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

Default Re: Conditional Formatting and Repetion Fields - 03-20-2010 , 10:52 AM



Christoph Kaufmann wrote:
Quote:
Problem #1: I can't have Sundays painted in red with the repetition
field, can I? The dataviewer shows the weekday of the repetition I click
in, but it seems that's not good enough for conditional formatting.
Sure you can. You need to first determine which repetition represents
Sunday and then you can use this in your conditional formatting formula,
for example assuming the 7th repetion is the one that we want to be red:
Get ( CalculationRepetitionNumber ) = 7

Reply With Quote
  #5  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Conditional Formatting and Repetion Fields - 03-20-2010 , 12:28 PM



Howard Schlossberg wrote:

[Conditional Formatting of a calc repetition field]
Quote:
Sure you can. You need to first determine which repetition represents
Sunday and then you can use this in your conditional formatting formula,
for example assuming the 7th repetion is the one that we want to be red:
Get ( CalculationRepetitionNumber ) = 7
Gee, it worked, and even gave me the opportunity to use the choose
function (to pick the days from the start date to the first Sunday).
--
http://clk.ch

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.