Using Style to Manipulate Control Locations in the Infor CRM Web Client

The quickforms in Infor CRM are rather limited in their layout options. Everything is rendered into table rows and cells and sometimes those layouts are not what is needed. You could always make a custom smart part and design away, but for a simple tweak to the placement of a control you can use server side code on a quickform page load to manipulate a control’s style. This can affect the appearance of controls nicely. Sometimes it takes a bit of playing with an d some styles may exist with base styles in the CSS files. You just need to try out these types of changes to see if they work.

To move a control on the screen to the left of where it normally is and down slightly:

Control.Attributes.Add("Style", "position:relative;left:-65%;top:9px;");
//or
Control.Style["position"] = "relative";
Control.Style["left"] = "-65%";
Control.Style["top"] = "9px";

To make a label stretch across the screen and set the background to red:

Control.Attributes.Add("Style", "background-color:red; position:absolute;left:0;right:0;");
ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!