cancel
Showing results for 
Search instead for 
Did you mean: 

Quantity-Field with HTMLB

RenaldWittwer
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member181879
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

RenaldWittwer
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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.

Former Member
0 Kudos

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.