Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Not what you were looking for? View more on this topic or Ask a question