Progress.Data.BindingSource/Query - calculated fields? - Forum - OpenEdge Development - Progress Community

Progress.Data.BindingSource/Query - calculated fields?

 Forum

Progress.Data.BindingSource/Query - calculated fields?

This question is answered

I'm working with some old ADM1 code, migrating some browsers to Ultragrid.
At the moment I'm stuck with the problem that I'm not able to display calculated fields that are not in the table. Is it somehow possible to include calculated fields in either a Query or a Progress.Data.BindingSource?
Right now I'm using a temp table to achieve this and performance is unfortunately quite bad.
Populating the temp-table is not the issue - most of the time is spent looping through the tables.

DEFINE QUERY doesn't seem to allow calculated fields in the field list the same way DEFINE BROWSE does, or am I misunderstanding something?


Verified Answer
  • You should be able to add/insert unbound columns during initializelayout event and then populate the cell during initializerow event.

All Replies
  • You should be able to add/insert unbound columns during initializelayout event and then populate the cell during initializerow event.