Quantcast
Channel: Kris Halsrud – Customer FX
Viewing all articles
Browse latest Browse all 185

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

$
0
0

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;");

Viewing all articles
Browse latest Browse all 185

Trending Articles