You're right. The order of the tags in the .htm file defines the order of
the events.  So, the stColor events (stColor_onBeforeDisplayEvent and
stColor_OnBeforeHtmlOutputEvent) would execute before any of the actualField
events (actualField_onBeforeDisplayEvent and
actualField_onBeforeHtmlOutputEvent).

If you wanted to use the stColor events to do the processing, you could use
the data field used to populate actualField in the logic for setting the
value of stColor.  (Basically, one of the work-arounds that you suggested
would work.  For some reason, I didn't read those in the earlier post.
Sorry!)

-- Grace






----- Original Message -----
From: Mathew, Aby <[EMAIL PROTECTED]>
To: 'Grace Frederick' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 07, 1999 1:37 PM
Subject: RE: [ND] Setting Background Color of Column


> Grace,
>
> Please correct me if I am wrong.
>
> The ND Page generation is Driven by the .htm
>
> If the .htm has
>  <td bgcolor="**stColor**"> **actualField** </td>, then the sequence of
> events will be:
>
> ==========================================
> Repeated_onBeforeRowDisplayEvent() {
> // It is too early to try to get the Current value of actualField
> // Here ..
> }
>
> stColor_onBeforeDisplayEvent() {
> // Or here ..
> }
>
> stColor_onBeforeHtmlOutput() {
> // Or even here.
> }
>
> // And now it is too late to change the value of stColor
>
> actualField_onBeforeDisplayEvent();
>
> actualField_onBeforeHtmlOutput();
> ==========================================
>
>
> Thanks.
>
>
> Aby
>
> > -----Original Message-----
> > From: Grace Frederick [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 06, 1999 3:37 PM
> > To: Mathew, Aby; Robert Pittman
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [ND] Setting Background Color of Column
> >
> > > Some subtle complications here:
> > >
> > > onBeforeRowDisplayEvent may be too early to do something about this,
> > even
> > > onBeforeDisplayEvent, since the value you see at this point will be
from
> > the
> > > previous row, not the current.
> >
> > Not necessarily.  It depends on what you're looking at for the value in
> > the
> > business logic.  It also depends on whether the value that you're
checking
> > has been "displayed" or not.
> >
> >
> > > onBeforeHtmlOutput would be a safer bet.
> > >
> > > Since **stColor** is before the **actualField** in the .htm,
**stColor**
> > > will be processed first. So even on onBeforeHtmlOutput of **stColor**
ND
> > > won't be able to tell you the value of **actualFiled**.
> > >
> > > Work arounds : 1. Bind **stColor** to the same field in the dataObject
> > as
> > > **actualField**.
> > > 2. Get the value that would go to **actualField** directly
> > > from the DataObject using rowIndex.
> > >
> > >
> > > Aby
> > >
> > > > -----Original Message-----
> > > > From: Grace Frederick [SMTP:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, July 06, 1999 1:44 PM
> > > > To: Robert Pittman
> > > > Cc: [EMAIL PROTECTED]
> > > > Subject: Re: [ND] Setting Background Color of Column
> > > >
> > > > Create a static text field for the column color and move the tag so
> > that
> > > > it
> > > > looks something like:
> > > >
> > > > <TD BGCOLOR="**stColor**">
> > > >
> > > > Customize stColor_onBeforeDisplayEvent or the
onBeforeRowDisplayEvent
> > of
> > > > the
> > > > appropriate data driven visual to set the value of stColor to the
> > > > appropriate value based on the value of some other field.
> > > >
> > > > -- Grace
> > > >
> > > > ----- Original Message -----
> > > > From: Robert Pittman <[EMAIL PROTECTED]>
> > > > Newsgroups: netdynamics.public.support.nd4.talk
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, July 06, 1999 1:25 PM
> > > > Subject: [ND] Setting Background Color of Column
> > > >
> > > >
> > > > >
> > > > > We need to dynamically control the background color of individual
> > table
> > > > cells based on
> > > > > the values assigned to the cells, while maintaining a consistent
> > color
> > > > in
> > > > the remainder
> > > > > of the columns in the repeated group.  Has anyone found a way to
do
> > > > this?
> > > > >
> > > > > Thanks in advance for your help.
> > > > >
> > > >
> >
>


_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to