Support Forum - Chek if filed is used in report

02/07/2010 03:15 Pavel Kovar wrote:

Hi all,
is it possible to check at a runtime if some field is used in a report?
Filed is always defined but I want to check if the field is physically placed in
the report.

Thank's for a solution

Pavel

02/08/2010 02:11 Oleg Fomin wrote:

Pavel,

Yea, of course, it is possible. Here you can find a forum thread with similar
subject.

http://www.fomintools.com/cgi-bin/forum.cgi/frb?thread=913

The idea is that you have to LOOP through SELF.Objects QUEUE after
PARENT.LoadReport call and to use
INSTRING('THE:FIELDNAME',UPPER(SELF.Objects.Object.Contents),1,1). For better
understanding you can find the source code of the LoadReport method using the
following link:

http://www.fomintools.com/cgi-bin/forum.cgi/frb?thread=414

HTH,
---
  Oleg Fomin <oleg@fomin.info>

Name:
E-Mail: (optional)
Subject:Chek if filed is used in report


Message body: