Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 27, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Changing text color from Date Time Picker
Marcos Zanella
Posts: 2
 
Changing text color from Date Time PickerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Oct 11 3:18 PM
fiogf49gjkf0d

Hi.


I´am trying change a text color from a Date Time Picker component at run time when a date time value is minor than actual date time value.


I wrote a C# code at On Change Event to do it like this:


dtpEstimatedClose.StyleScheme="RedText";


I was created a class like this:


.RedText


{


color: Red;



in a SlxBase.css file and update a StyleSchemeTypes.xml whith a new type.


The new style is showing at property Style Scheme for all controls, but it´s not working when its changed at design time or run time .


What´s wrong ?


Thanks.

[Reply][Quote]
Tim Zech
Posts: 40
 
Re: Changing text color from Date Time PickerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 12 9:46 AM
fiogf49gjkf0d

Hi, I had the same problem. You'll have to write that CSS-Code into the file:


\Model\Portal\SlxClient\SupportFiles\css\quickform.css

of your VFS or LFS. Just put it at the end. Then you'll have to open the SageStyles.jsb file with JSBuilder (it's freeware). Build the file (it's the rightmost button in the toolbar at the top) and build and deploy your portal via Application Architect. Doing this will make the class usable in your SLX environment. But I'm afraid that changing style scheme at run time won't work since it's a read only attribute.

One last thing: it seems to be important that you leave the space between the colon and the value, but you already did that (I didn't so it didn't work).


Edit:
I found one way how to change the CSS-Class of a control at runtime:


Style style = new Style();
style.CssClass = "<yourCssClass>";
<yourLabel>.ApplyStyle(style);

Maybe there's a shorter and easier way, but this definitely works.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/27/2025 5:17:15 PM