User Tools

Site Tools


setdynamiccontrolsattributes_set_report_s_static_controls_.htm
Navigation:  ABC Library Reference > ReportManager Class > ReportManager Methods >====== SetDynamicControlsAttributes (set report's static controls) ====== Previous pageReturn to chapter overviewNext page

SetDynamicControlsAttributes, VIRTUAL

blk2blue.jpg

The SetDynamicControlsAttributes method is a virtual method used to set any dynamic attribute property on a report's controls as each record is processed. The control must have the EXTEND attribute applied. This method is used to set attributes that will be recognized by the WMFParser to generate a particular output format.

Member of: ReportManager

Implementation:

The SetDynamicControlsAttributes method is a vrtual method called by the ReportManager's TakeRecord method.

Example:

ReportManager.TakeRecord PROCEDURE

I            LONG,AUTO

RVal         BYTE(Level:Benign)

 CODE

   IF ~SELF.BreakMan &= NULL THEN

       SELF.BreakMan.AskBreak()

   END

   IF SELF.Report{PROPPRINT:Extend}=1 THEN

      SELF.SetDynamicControlsAttributes()

   END

   RVal = SELF.Process.TakeRecord()

   DO CheckState

   LOOP I = 1 TO RECORDS(SELF.Processors)

     GET(SELF.Processors,I)

     RVal = SELF.Processors.P.TakeRecord()

     DO CheckState

   END

   IF SELF.Next() THEN

     TARGET{PROP:Timer} = 0

     RETURN Level:Notify

   END

   RETURN RVal

setdynamiccontrolsattributes_set_report_s_static_controls_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1