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

UI: Format text in EditText Field

Hi all,

Is there a way to format the text in an EditText field easily? I am creating a field to hold an amount of money, so the field should support the format 123,45 EUR etc.

It should not allow entering values that can not be converted to an amount of money.

I am wondering if I can do this using the TextStyle property of the EditText object, but I've not been able to find any documentation on how to use it.

Best regards

Jesper Carstensen

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2004 at 11:32 AM

    If you create a user data source and set it's data type to PRICE (SAPbouiCOM.BoDataType.dt_PRICE), then assign the user data source to the edittext object, SBO will handle the validation and formating for you.

    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.