Then probably you want
100 : ( entity.name = 'Grid' and object.statusColumnColor = 'Green' and propertyKey='itemStatus') => classForAttributeColumn = highlightGreen [com.webobjects.directtoweb.Assignment]
Ramsey
On Jan 5, 2012, at 12:45 PM, Theodore Petrosky wrote: every iteration of this:
100 : ( entity.name = 'Grid' and object.statusColumnColor = 'Green') => classForAttributeColumn = highlightGreen [com.webobjects.directtoweb.Assignment],
make the all of the columns turn green. I want to target the one column. in this case the column is called itemStatus.
Ted
--- On Thu, 1/5/12, Ramsey Gurley <email@hidden> wrote: From: Ramsey Gurley <email@hidden> Subject: Re: rules help To: "Theodore Petrosky" <email@hidden> Cc: "WebObjects Development" <email@hidden> Date:
Thursday, January 5, 2012, 10:33 AM
In this case you need to look in the component, not the java file.
AttColumnHeader : WOGenericContainer { elementName = "th"; class = d2wContext.classForAttributeColumn; }
AttColumnCell : WOGenericContainer { elementName = "td"; class = d2wContext.classForAttributeColumn; }
Ramsey
On Jan 5, 2012, at 5:15 AM, Theodore Petrosky wrote: I am trying to figure out now how to read the source to these D2W items. I see in the ERMDSimpleListPageRepetition.java the: * @d2wKey baseClassForObjectRow I see classForAttributeColumn but I am not able to target it? 100 : ( entity.name = 'Grid' and object.statusColumnColor = 'Green') => classForAttributeColumn = highlightGreen AttrColumn [com.webobjects.directtoweb.Assignment], What am I missing? I may learn this yet. Ted --- On Wed, 1/4/12, David LeBer < email@hidden> wrote: From: David
LeBer <email@hidden>
Subject: Re: rules help
To: "Theodore Petrosky" <email@hidden>
Cc: "Ramsey Gurley" <email@hidden>, "WebObjects Development" <email@hidden>
Date: Wednesday, January 4, 2012, 10:11
PM
Theodore,
ERModernLook has 2 list page repetitions.
ERMDSimpleListRepetitions is default. The other is strictly
for compatibility reasons and is not used unless you
explicitly enable it (I never do).
D
--
David LeBer
Codeferous Software
On 2012-01-04, at 10:02 PM, Theodore Petrosky wrote:
This
is beautiful and it is working WONDERfully.
However, I don't understand how we got here.
You were expecting a different ListRepetition. Does
this imply that I am not really using the Modern look and
when I 'fix' that at some point everything will break?
Would you be available to schedule an hour tutoring?
Of course we would work out an acceptable remuneration. We
could record it and put it online. Perhaps some other
person
struggling would find it useful.
Let me know what you think.
Ted
--- On Wed, 1/4/12, Ramsey Gurley <email@hidden>
wrote:
From: Ramsey Gurley <email@hidden>
Subject: Re: rules help
To: "Theodore Petrosky" <email@hidden>
Cc: "WebObjects Development" <email@hidden>
Date: Wednesday, January 4, 2012, 8:55 PM
That's a different list repetition
component than I was looking at. It looks
like you're
getting ERMDSimpleListRepetition. It seems all you
should
need
is
100: entity.name = 'MyEntity' and object.status =
'AE'
=> baseClassForObjectRow = "green ObjRow"
[Assignment]
Ramsey
On Jan 4, 2012, at 10:42 AM, Theodore Petrosky
wrote:
I attached a screen shot of the list page and
css is
turned on.
are these the classes you would expect if I
were using
ERModernLook? I am not having a good time with
this.
Ted
--- On Mon, 1/2/12, Ramsey Gurley <email@hidden>
wrote:
From: Ramsey Gurley <email@hidden>
Subject: Re: rules help
To: "Theodore Petrosky" <email@hidden>
Cc: email@hidden
Date: Monday, January 2, 2012, 3:19 PM
I assume you're using the ERModern look.
In the
list repetition I see:
ListTableRow: WOGenericContainer {
_unroll = true;
elementName = "tr";
class =
"ListRepetitionRow";
}
That could easily be
class = d2wContext.tableRowClass;
With a default rule like
10: *true* => tableRowClass =
"ListRepetitionRow"
[Assignment] //default rule
Then you could specify the row based on
object
attributes in rules like
100: entity.name = 'MyEntity' and
object.status = 'AE'
=> tableRowClass = "green ListRepetitionRow"
[Assignment]
//override
Ramsey
On Jan 2, 2012, at 10:11 AM, Theodore Petrosky
wrote:
I have an WO App that I am
experimenting
with. I
am trying to use it to learn D2W.
I have had to replace a shared excel
spread sheet
with my app and it is working quite well. From the
first
day
my users were impressed and happy to get off of
excel.
Of course I had to make it appear that
they were
viewing an excel spread sheet in a browser. and
they had
requirements. the main one being that rows are
colored to
indicate status. Green = AE needs to resolve
issues. Red =
Client must resolve text changes. and a few other
colors.
When the traffic person looks at the
app,
she sees
multiple colored rows and she knows what to do. Of
course
she could ask for only the Gold colored rows
(Objects that
she must complete today).
I am storing the status of each row and I
use the
CSS in my Wonder app to change the row colors
(individual
columns have colors also to indicate other
stuff).
How do I approach this in
D2W?
I can not argue that the design is either
good nor
bad. It is what it is. I had to match what was
there or they
would still be using the excel spread sheet. You
have
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|
|