IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#30401 - 09/29/09 03:54 PM database emulation
ada66 Offline
OL Newbie

Registered: 06/25/08
Posts: 16
Hello,

When I use database emulation, the Oracle fields that have a numeric data type (ex. Number (11,2)) are displayed by PlanetPress Design with 7 decimals.

For example:

Field VAL_TOT Number(11.2) in Oracle

becomes

_________________________
ccc

Top
#30402 - 09/30/09 10:59 AM Re: database emulation
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
ada66,

Sometimes, when PlanetPress converts a field value, it adds decimal values. What you can do is use a simple expression to display it in a custom data selection:

=curtostr(strtocur(field(VAL_TOT,1)))

The idea here is to first convert the field value to a currency, which only has two decimals, and then back to a string so that it can be displayed. This should get rid of the extra decimals.

As for BCD, I do not know what it is.

Regards,
Rapha

Top
#30403 - 10/01/09 04:14 PM Re: database emulation
ada66 Offline
OL Newbie

Registered: 06/25/08
Posts: 16
Thank you so much, that worked.
_________________________
ccc

Top