This topic is locked

Display a decimal value

8/18/2010 7:14:59 AM
PHPRunner General questions
W
webdino author

I have a textfield that contains a decimal value in German Format like 15,55

I change this value bevor add and edit with str_replace (",",".",$values['Preis'])
That is ok, in the List Page the german value was displayed correct like 15,55, but in the other pages after update the field always 15.55 was shown

a str_replce before display takes no effect in the page
where must I change this to display like german decimal format in each pages?

J
Jane 8/18/2010

Hi,
please make sure you've set up german regional settings on the Miscellaneous tab.

W
webdino author 8/18/2010

yes it is German/German Westeuropäisch Windows

W
webdino author 8/19/2010

how can I manually change the value before a new display in edit tab is loaded with his values

W
webdino author 8/20/2010

is there really no workaround with events or others to force PHPR to display the decimal value in my format?

A
ann 8/23/2010

Hi,
this behaviour is by design. Value on the add/edit page are shown from database as it is.

As workaround you can change entered value on the fly using Javascript onload event on the Events tab and JavaScript API:

http://xlinesoft.com/phprunner/docs/javascript_api.htm