Scripting - Set field alignment on Lawson form

Sort:
You are not authorized to post a reply.
Author
Messages
ShawnV
Advanced Member
Posts: 37
Advanced Member

    Is there any way to change the text alignment (justification) on an existing Lawson form field?  On the PO20 screen our users would like the Vendor field to be left justified (don't ask me why!). 

    I added the following code but the text did not shift to the left.

    var fldVendor = form.GetElement("PCR-VENDOR");
    fldVendor.HorizontalContentAlignment = HorizontalAlignment.Left;

    Any help is appreciated.

    Thanks - Shawn Van Sluys

    Vince
    Veteran Member
    Posts: 37
    Veteran Member
      I'm not sure why since it pre-dates my 15 years at Lawson, but Vendor is one of those crazy fields defined as Alpha Right Justified. And even stranger to me is that fact that spaces are treated as significant.

      You could try the following, but there will be other places where you cannot change the alignment:
      fldVendor.TextAlignment = System.Windows.TextAlignment.Left;
      You are not authorized to post a reply.