Skip to Content

Quantity-Field with HTMLB

Hi,

if I have a quantity-field in a htmlb:tableView, the field will be displayed like "1,000" (with comma).

If I display the same field in htmlb:textView, the field will be displayed with a dot "1.000".

Is it a bug, a feature or do I have to change my customizing?

Ofcourse I can change the field in my programm, but I wish a more sophisticated solution.

I am using a WAS 6.20 Support Package 35.

Thank You very much for help.

Best Regards

Renald

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Aug 17, 2004 at 07:44 PM

    When you are rendering a table, the tableView gets a reference onto a table, that also contains additional DDIC information. Here the conversion exists are used to do an internal to external representation.

    When you use the textView, you would probably just do a <textView text="<%=myvar%>". And this in the end just generates code to do a "%_obj->text = myVar." Which is effectively a simple string assignment. No conversion to external representation is done here.

    Would say works as designed.

    ++bcm

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2004 at 06:11 PM

    How are you getting the quantity field into the textView? Have you tried using the page->to_string method to convert the quantity field to a string? If you use the page->to_string, it looks like this method will use a write and use your user settings for format output.

    If you look inside the rendering code of the tableView, it appears that it uses the page->to_string method for its output formatting.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Aug 17, 2004 at 03:59 PM

    Interesting problem/bug/feature we have something similar however I think our problem lies with the user settings. But when you have the same user view the same page with two formats perhaps your problem is something else.

    Please keep us posted if you find out anything, I'll definetly keep an eye on this forum to see what others have to say about it.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 18, 2004 at 08:45 AM

    I expected the same behavior in the htmlb-tags. I use the page->to_string method now. That works fine.

    Thank You very much for Your help.

    Best Regards

    Renald

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Please be sure to makr the message solved so people can find the solution quicker.

      I know I'll want to come back to this one in the future.