ExampleForm::btnNew_Click PHP Method

btnNew_Click() protected method

contents of the Firstname and LastName textboxes.
protected btnNew_Click ( $strFormId, $strControlId, $strParameter )
    protected function btnNew_Click($strFormId, $strControlId, $strParameter)
    {
        $this->intEditPersonId = -1;
        $this->txtFirstName->Text = '';
        $this->txtLastName->Text = '';
        // Let's put the focus on the FirstName Textbox
        QApplication::ExecuteJavaScript(sprintf('qcodo.getControl("%s").focus()', $this->txtFirstName->ControlId));
    }