8/17/2025 3:27:36 AM
|
|
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!
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.
|
|
|
|
change text color of datetime object
Posted: 19 Dec 08 11:17 AM
|
Hi could someone share their knowledge on how to change the text colour of a datetime object. sorry new to coding c# and didn't cover classes and coding that isn't codeless on the sage course!
i presume you should do on change event - action item or is it a business rule? but what class is the property in...does this make sense?.. what i need is- if date is less than today show it as red text else show it as black text
but how to put it in snippet?
Thanks guys/gals
ps noticed certain thread replies refer to OOTB what does this stand for?
|
|
|
|
Re: change text color of datetime object
Posted: 12 Jan 09 6:26 AM
|
Hi Chez
Bit new to coding C# and SalesLogix myself, but I think I can help you out a little... I hope!
When you say you want to change the text colour of a datetime object, are you referring to a control on a form? If so, then (if I understand it correctly) you might be able to do this as a Style Scheme. Unfortunately I don't know a lot about those, so you'll need to do some further investigation.
The Application Architect help says: "StyleScheme Description: Allows you to make dynamic visual changes to style elements of all visual controls (for example, font color, background color, and so forth). To use this property: Select a value from the drop-down list. This property can be set at design time from a predefined list that can be modified in the configuration located at: Configuration\Global\StyleSchemeTypes.xml. This property can also be set at run time using expression binding logic. For example, the expression mapped to the StyleScheme property will set the property to 'NegativeNumber' if the Account.Type is 'customer'. The StyleScheme names defined in the configuration file are mapped to the CSS class names in the Web deployment."
OOTB means Out Of The Box (or at least that's how I've interpreted it...)
Hope this is of some help!
David |
|
|
|
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!
|
|
|
|
|
|
|
|