PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 07/09/2015 2:04 PM by  Vince
Scripting - Set field alignment on Lawson form
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
ShawnV
Private
Private
Advanced Member
(72 points)
Advanced Member
Posts:34


Send Message:

--
07/09/2015 1:50 PM

    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
    Senior Principal Software Engineer
    Infor
    Veteran Member
    (111 points)
    Veteran Member
    Posts:37


    Send Message:

    --
    07/09/2015 2:04 PM
    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.