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

Format decimal

Hi,

I have a rfc-function returning a date as a decimal from SAP CRM which I don't want to rewrite.

All I want to do is display it in a table, but with a sensible formatting, right now it, obviously, shows as 20 050 111 instead of 2005 01 11.

I have tried making a simple type "MyDecimal" with the builtin type decimal and a format string according to DecimalFormatter and then changed the simple type of the correspondning attribute in rfc-funktions structure.

What happens is that the table column looses its header text, which I figure means it's picking up my new simple type, but it still formats the decimal after my browsers locale. Is there a way i can make it use the format from MyDecimal?

I have tried looking at problem-with-time-input-field even though it's not the same scenario.

Kind Regards

Mattias

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 11:38 AM

    Hi,

    1. Create read-only (if you only displaying it) calculated attribute with your customized simple type "MyDecimal"

    2. In generated getter function return original value

    3. Bind your table column editor to this attribute

    Also could you post format string here? Probably it contains errors.

    VS

    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.