Field Background Colouring

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Field Background Colouring

Postby Gordon » Thu Nov 03, 2011 6:48 pm

The web client appears to be showing a different rendering of fields with background colours. I want to show colour coded fields depending on the users selection. I have used a simple html string as follows:

case 'mon':day_mon = '<html><div bgcolor="#FF0008" align="center">&#10007;</div></html>';break;

This works perfectly in smart client, however when the app is migrated to the web client this breaks and you loose the background colouring.

Do any of you know why this is OR an alternative way to colour specific fields based on their content ?

Many thanks
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: Field Background Colouring

Postby lvostinar » Fri Nov 04, 2011 6:06 pm

Maybe on web the size of div is very small ? (or 0) Did you try putting a text in there ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1064
Joined: Tue Feb 19, 2008 10:53 am

Re: Field Background Colouring

Postby Gordon » Fri Nov 04, 2011 6:15 pm

Hi

I will try other options - it would be a lot easier if we could use the web client in this context.

The aim was a traffic light sort of process where there are 3 modes given the colour can change we can highlight which is which. The main criteria is it works as a list in table view otherwise I would be inclined to just change the element.

Thanks for the reply ..

Gordon
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: Field Background Colouring

Postby lvostinar » Fri Nov 04, 2011 6:20 pm

You could try to put an image.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1064
Joined: Tue Feb 19, 2008 10:53 am

Re: Field Background Colouring

Postby Gordon » Fri Nov 04, 2011 6:23 pm

Good point I will try that it will get round the font too

I think there was an example in the Servoy CRM example for changing button states on click - that should work

Thanks
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK


Return to Web Development

Who is online

Users browsing this forum: No registered users and 4 guests

cron