Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Unexpected results with null values in datawindow

$
0
0

I have a complex datawindow (> 1.7 MB exported source) with a lot of columns (> 900) and computed fields (> 600). Results of computed fields are used in other computed fields. So there are complex dependencies.

My problem ist, that powerbuilder doesn't calculate with null values as expected. The result may be null or not. It depends on the front-to-back-order of the computed columns (e.g. on the order of definition of the fields in exported source)

 

Here is an simple example (see screenshot an exported source):

X is a column with value NULL

X1 is a computed field with X + 1 that results in NULL as expected.

X2 ist a computed field with X1 + 1. It is NULL as expected, if X2 is in the front-to-back-order before X1. But is is 0 (zero), if it is in that order after X1.

screenshot.png

Results depending on X2 may get also wrong.

 

This is a big problem for me, because powerbuilder changes the front-to-back-order in the background (e.g. if you select more than one object and move it).

 

I need a good advice how to solve this.

(Because of complexity it is not useful to remove dependencies!)


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>