Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

changing the color of columns in HTMLdw

2 posts in General Discussion (old) Last posting was on 2000-02-21 04:37:11.0Z
Adam Simmonds Posted on 2000-02-20 04:23:18.0Z
Newsgroups: sybase.public.easerver
Date: Sun, 20 Feb 2000 15:23:18 +1100
From: Adam Simmonds <asimmond@mail.usyd.edu.au>
Organization: University of Syndey
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: changing the color of columns in HTMLdw
Content-Type: multipart/mixed; boundary="------------334A93DEA6195A01B575CDA0"
Lines: 34
NNTP-Posting-Host: pc-70.sis.usyd.edu.au 129.78.248.198
Message-ID: <347_38AF6C36.E54E47E5@mail.usyd.edu.au>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28304
Article PK: 160339

Hi All
I was wondering if anyone has a way of changing the color of a columns
text on a row by row basis based on what values they choose.

I am trying to change the color of a drop down that has a YES and NO
choice, to red if the user chooses YES.

I set an expression on the dataobject but this will only work when the
htmldw is genereated again on the server. I then tried the itemchanged
event in javascript but the only way I could see it being done is via a
modify method on the htmldw but this will only change the color for the
whole dataset not the specific row that has just been changed.

Any ideas???

TIA
Adam


Download VCard asimmond.vcf


Larry Cermak[Team Sybase] Posted on 2000-02-21 04:37:11.0Z
Newsgroups: sybase.public.easerver
From: "Larry Cermak[Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: changing the color of columns in HTMLdw
Date: Sun, 20 Feb 2000 22:37:11 -0600
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: node49.dhcpchi.dslspeed.zyan.com 208.41.199.49
Message-ID: <347_Dlj1fZCf$GA.184@forums.sybase.com>
References: <347_38AF6C36.E54E47E5@mail.usyd.edu.au>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28298
Article PK: 160336

Unfortunately I believe that will require a round-trip to the server. Any
expression will be evaluated when the HTML is generated and will not change,
on screen, based on user action. That's not the way, AFAIK, that HTML
works.

--

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc.
www.ctpartners.com
Web DataWindow Articles
(http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)

"Adam Simmonds" <asimmond@mail.usyd.edu.au> wrote in message
news:38AF6C36.E54E47E5@mail.usyd.edu.au...
> Hi All
> I was wondering if anyone has a way of changing the color of a columns
> text on a row by row basis based on what values they choose.
>
> I am trying to change the color of a drop down that has a YES and NO
> choice, to red if the user chooses YES.
>
> I set an expression on the dataobject but this will only work when the
> htmldw is genereated again on the server. I then tried the itemchanged
> event in javascript but the only way I could see it being done is via a
> modify method on the htmldw but this will only change the color for the
> whole dataset not the specific row that has just been changed.
>
> Any ideas???
>
> TIA
> Adam
>