Skip to Content
author's profile photo Former Member
Former Member

UEdit box Text Justification

I have created an edit box on the quotations form for "Expected value".

It is pulling from a user defined field (U_EXPVAL) setup as datatype PRICE hence auto populates with 0.00 but on the left.

1. Is it possible to justify the text to the right to match the other cost/price fields?

2.How do you prefix the price with GBP like the other fields, I though this would be done for me in the UDF, or is this another SAP/SDK limitation?

'Add "Expected Value" EditBox

oYPlaneItem = oForm.Items.Item("29")

oItem = oForm.Items.Add("oEdit3", SAPbouiCOM.BoFormItemTypes.it_EDIT)

With oItem

.Left = oYPlaneItem.Left

.Height = oYPlaneItem.Height

.Top = oYPlaneItem.Height + oYPlaneItem.Top + 17 'unique adjusment

.Width = oYPlaneItem.Width

End With

oEdit = oItem.Specific

oEdit.DataBind.SetBound(True, "OQUT", "U_ExpVal")

'Add "Expected Value" Caption

oYPlaneItem = oForm.Items.Item("30")

oItem = oForm.Items.Add("oLbl5", SAPbouiCOM.BoFormItemTypes.it_STATIC)

With oItem

.Left = oYPlaneItem.Left

.Height = oYPlaneItem.Height

.Top = oYPlaneItem.Height + oYPlaneItem.Top + 17 'unique adjusment

.Width = oYPlaneItem.Width

.LinkTo = "oEdit3"

End With

oLabel = oItem.Specific

oLabel.Caption = "Expected Value"

Thanks,

Dave.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 10:33 AM

    David,

    1) you do have the property : oitem.RightJustified = True

    2) for prefix, you have to actually code.

    regards,

    Binita

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 11:25 AM

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.