Just before the view prints out the screen.
This is a good time to adjust the variables or screen fields before printing.
(Called from the view in the printScreen method).
512396
public void prePrintReport()
    {
        // First step - Get the source and analysis files.
        Record recBasis = this.getBasisRecord();        // Record to analyze
        Record recSummary = this.getSummaryRecord();    // Record to summarize the data into
        if (recSummary == null)
            recSummary = this.makeDefaultAnalysisRecord(recBasis);

        if (recSummary.getCounterField() == recSummary.getKeyArea().getField(0))
            if (recSummary.getKeyAreaCount() > 1)
                recSummary.setKeyArea(DBConstants.MAIN_KEY_FIELD + 1);
        // Step 2 - Get the field mappings (keys and summary fields).
        BaseField[][] mxKeyFields = this.getKeyMap(recSummary, recBasis);
        BaseField[][] mxDataFields = this.getDataMap(recSummary, recBasis);
        // Step 3 - Read through the source file and update the summary file.
        try{
            while (recBasis.hasNext())
            {
                recBasis.next();
                this.addSummary(recSummary, mxKeyFields, mxDataFields);
            }
        } catch (DBException ex)    {
            ex.printStackTrace();
        }
    }
104601
public void printHtmlStartForm(PrintWriter out)
        throws DBException
    {
        String strAction = "post";

        BasePanel modelScreen = (BaseScreen)this.getScreenField();
        int iNumCols = modelScreen.getSFieldCount();
        int iInputCount = 0;
        for (int i = 0; i < iNumCols; i++)
        {
            ScreenField sField = modelScreen.getSField(i);
            if (!sField.isToolbar())
                if (sField.getConverter() != null)
                    if (sField.getConverter().getField() != null)
                    {
                        if (DBParams.PASSWORD.equalsIgnoreCase(sField.getConverter().getField().getFieldName()))
                            iInputCount = 5;    // Always post if password is in the URL
                        iInputCount++;
                    }
        }
        if (iInputCount < 5)
            strAction = "get";
        if (modelScreen instanceof GridScreen)
            if (modelScreen.getEditing() == true)
                strAction = "post";
        out.println("<form action=\"" + modelScreen.getServletPath(null) + "\" method=\"" + strAction + "\">");
        this.addHiddenParams(out, this.getHiddenParams());
    }
265172
public void printDisplayControl(PrintWriter out)
    {
        Convert converter = this.getScreenField().getConverter();
        if (m_vDisplays == null)
        {
            String strField = null;
            if (converter != null) if (converter.getField() != null)
                strField = converter.getField().getString();
            this.scanTableItems();
            if (converter != null) if (converter.getField() != null)
                converter.getField().setString(strField);
        }
        String string = DBConstants.BLANK;
        int iIndex = 0;
        if (converter != null)
        {   // This is required for the display or popup fields because displayField() is never called to get the value.
            iIndex = converter.convertFieldToIndex();
            if (iIndex == -1)
            {
                super.printDisplayControl(out);
                return;
            }
            try {
                string = (String)m_vDisplays.get(iIndex);
            } catch (ArrayIndexOutOfBoundsException ex) {
                string = "&nbsp;";
            }
        }
        out.println("<td>" + string + "</td>");
    }
1298565
public function on_before_render()
    {
        $pageTitle = $this->get('pageTitle');
        if (!$pageTitle) {
            $this->set('pageTitle', t($this->c->getCollectionName()));
        }
        $dbConfig = $this->app->make('config/database');
        $this->set('showPrivacyPolicyNotice', !$dbConfig->get('app.privacy_policy_accepted'));
        $this->set('token', $this->token);
        $this->set('error', $this->error);
    }
771143
def print_variables(self):
        
        print_out = partial(self.print_out, format_options='green')

        print_out('===== variables =====')

        for var, hint in self.vars.get_descriptions().items():
            print_out('    %' + var + ' = ' + var + ' = ' + hint.replace('%', '%%'))

        print_out('=====================')

        return self
1205320
private boolean prescreen(Method method) {
        BitSet bytecodeSet = getClassContext().getBytecodeSet(method);
        return (bytecodeSet != null) && (bytecodeSet.get(Const.CHECKCAST));
    }
199428
public void displayField()                  // init this field override for other value
    {
        if (m_vScreenField == null)
            return;
        for (Enumeration<Object> e = m_vScreenField.elements() ; e.hasMoreElements() ;) { 
            ScreenComponent sField = (ScreenComponent)e.nextElement();
            sField.fieldToControl();    // Display using the new value(s)
        }
    }
816760
public void printWarning() {
    System.out.print("Warning: ");
    System.out.print(description);
    if (value != null)
      System.out.print(" (" + value + ")");
    System.out.println();
  }
309032
public void printHtmlHeading(PrintWriter out)
    {
        if (this.getScreenField().getConverter() == null)
            return;
        String strField = this.getScreenField().getConverter().getFieldDesc();
        if ((strField == null) || (strField.length() == 0))
            strField = "&nbsp;";    //?"<br>";
        out.println("<th>" + strField + "</th>");
    }
245302
final protected function beforeRenderView()
    {
        $this->initView();
        
        $view = $this->getView();
        
        $client = $this->clientType ? : static::input('clienttype');
        if ($client) {
            $configs = Config::get('views', $this->getModule()->getName(), true);
            if (isset($configs[$client]['theme'])) {
                $view->setTheme($configs[$client]['theme']);
            }
        }
        
        if (!$view->getBeginContent()) {
            $beginContent  = "<?php use Wslim\Ioc; ?>" . PHP_EOL;
            $view->setBeginContent($beginContent);
        }
        
        // ioc
        Ioc::$htmlHelper || Ioc::$htmlHelper = new HtmlHelper();
        Ioc::$formHelper || Ioc::$formHelper = new FormHelper();
        
        // view data
        $viewData = $view->getData();
        $viewData['rootUrl']  = Config::getRootUrl();
        $viewData['baseUrl']  = $this->getModule()->getBaseUrl(true);
        $viewData['lang']     = Ioc::language()->getData();
        $viewData['requestParams'] = $this->input();
        $viewData['page']     = $this->inputInt('page');
        
        return $this;
    }
675140
public void printControlEndForm(PrintWriter out, int iPrintOptions)
    {
        if (((iPrintOptions & HtmlConstants.HEADING_SCREEN) == HtmlConstants.HEADING_SCREEN)
                || ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) == HtmlConstants.FOOTING_SCREEN)
                || ((iPrintOptions & HtmlConstants.DETAIL_SCREEN) == HtmlConstants.DETAIL_SCREEN))
            return; // Don't need on nested forms
//?     out.println("  </instance>");
        out.println("</xform>");
//?     if (bFieldsFound)
        if (!this.getScreenField().isToolbar())
            this.printZmlToolbarControls(out, iPrintOptions | HtmlConstants.DETAIL_SCREEN); // Print this screen's toolbars
        else
            this.printToolbarControl(true, out, iPrintOptions);     // Print this toolbar's controls
        super.printControlEndForm(out, iPrintOptions);
    }
383101
public void printDataEndField(PrintWriter out, int iPrintOptions)
    {
        if ((iPrintOptions & HtmlConstants.MAIN_SCREEN) == HtmlConstants.MAIN_SCREEN)
        {
        }
        else 
            out.println("</tr>");
    }
407596
public void printControlEndForm(PrintWriter out, int iPrintOptions)
    {
        out.println(Utility.endTag(XMLTags.CONTROLS));
        if ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) == HtmlConstants.FOOTING_SCREEN)
            out.println(Utility.endTag(XMLTags.FOOTING));
        else
            out.println(Utility.endTag(XMLTags.HEADING));
    }
169632
public void printScreen(PrintWriter out, ResourceBundle reg)
        throws DBException
    {
        this.getScreenFieldView().printScreen(out, reg);    
    }
4448
public void setPrintReport(boolean bPrintReport)
    {
        if (bPrintReport)
            if (this.getScreenRecord() != null)   // This tells the RecordHtmlScreen to display the data
                this.getScreenRecord().getField(Constants.MAIN_FIELD).setModified(true);  // Flag screen record, so toolbar knows
    }
911013
public boolean prescreen(Method method) {
        if (Values.STATIC_INITIALIZER.equals(method.getName())) {
            return false;
        }

        BitSet bytecodeSet = getClassContext().getBytecodeSet(method);
        return (bytecodeSet != null) && (bytecodeSet.get(Const.ATHROW));
    }
1349132
public void printDataStartForm(PrintWriter out, int iPrintOptions)
    {
        String strRecordName = "norecord";
        Record record = this.getMainRecord();
        if (record != null)
            strRecordName = record.getTableNames(false);
        if ((iPrintOptions & HtmlConstants.MAIN_HEADING_SCREEN) == HtmlConstants.MAIN_HEADING_SCREEN)
        {
            out.println(Utility.startTag(XMLTags.HEADING));
            out.println(Utility.startTag(XMLTags.FILE));
            out.println(Utility.startTag(strRecordName));
        }
        if ((iPrintOptions & HtmlConstants.MAIN_FOOTING_SCREEN) == HtmlConstants.MAIN_FOOTING_SCREEN)
        {
            out.println(Utility.startTag(XMLTags.FOOTING));
            out.println(Utility.startTag(XMLTags.FILE));
            out.println(Utility.startTag(strRecordName));
        }
        if ((iPrintOptions & HtmlConstants.REPORT_SCREEN) != HtmlConstants.REPORT_SCREEN)
            out.println(Utility.startTag(XMLTags.DATA));    // If not a report
    }