print "      if(nuScreen.document.getElementById('____' + theName)){\n";
//--check if there is such a fieldname
print "      \tnuScreen.document.getElementById('____' + theName).value = '';\n";
//--set value to blank so that it gets updated
print "      }\n";
print "   }\n";
if (hasDeleteBox($object->sob_zzsys_form_id)) {
    print "   window.parent.frames[0].document.forms[0]['row{$prefix}'].checked = false;\n";
}
if ($o == 'id') {
    //--set focus to back to code fielde
    print "   window.parent.frames[0].document.forms[0][document.forms[0].elements[1].name].focus();\n";
}
print "   {$object->sob_lookup_javascript};\n";
print "}\n";
print setFormatArray();
print "/* ]]> */ \n";
print "</script>\n<!-- End Of Form Functions -->\n\n";
$old_sql_string = $form->sfo_sql;
$new_sql_string = replaceHashVariablesWithValues($arrayOfHashVariables, $old_sql_string);
$SQL = new sqlString($new_sql_string);
if ($SQL->where == '') {
    $SQL->setWhere("WHERE {$lookIn} = '{$newID}'");
} else {
    $SQL->setWhere("{$SQL->where} AND ({$lookIn} = '{$newID}')");
}
$SQL->removeAllFields();
$SQL->addField($object->sob_lookup_id_field);
$fieldNames[] = $prefix . $object->sob_all_name;
$SQL->addField($object->sob_lookup_code_field);
$fieldNames[] = 'code' . $prefix . $object->sob_all_name;
示例#2
0
 public function execute()
 {
     $this->appendshowTabfunction();
     $this->buildFormTabs();
     $this->appendJSfunction(setFormatArray());
     $this->displayHeader();
     $this->displayBody();
     $this->displayFooter();
 }
 public function execute()
 {
     $this->appendJSfunction(setFormatArray());
     $this->displayHeader();
     print $this->actionButtonsHTML;
     $this->displayTable();
     $this->displayFooter();
     nuRunQuery("DELETE FROM zzsys_small_form_value WHERE sfv_form_record = '{$this->formID}{$this->recordID}{$this->session}'");
 }