Opened 16 years ago

Closed 16 years ago

#1067 closed defect (fixed)

Can't display spot-data columns that are based on formulas returning string values

Reported by: Nicklas Nordborg Owned by: everyone
Priority: critical Milestone: BASE 2.7.2
Component: web Version:
Keywords: Cc:

Description

This is the same problem as in ticket #1065. I have been investigating this a bit more and think that we should try to fix this problem temporarily in 2.7.2. This should be possible by wrapping the NumberFormatter used by all formula columns with a MultiFormatter. The MultiFormatter uses the class of each value to find a formatter that it can use. This may have some impact on performance, since a parent formatter has to be found for each value that is going to be displayed. If possible, we can try to create a variant of the MultiFormatter that looks up the correct formatter the first time only, and then uses the same on all subsequent invokations, which should be safe since all values in a single column are of the same type.

Hmmm... Thinking of the problems described in #1065, it may turn out that this is the better fix...

In any case, I think we only have to change the DynamicUtil.addFormulaColumns() method.

Change History (1)

comment:1 by Nicklas Nordborg, 16 years ago

Resolution: fixed
Status: newclosed

(In [4351]) Fixes #1067: Can't display spot-data columns that are based on formulas returning string values

Note: See TracTickets for help on using tickets.