How can i add a custom select?
Hi everyone, I'm currently trying to modify an order entry system made in PHPMaker, the problem is that I don't have the .pem files for the project so I'm trying to add an input directly in the code to take the value and save it in the database but it doesn't work for me.
I tried this:
function LoadFormValues()
{
// Load from form
global $objForm;
$this->GetUploadFiles(); // Get upload files
if (!$this->idempresa->FldIsDetailKey) {
$this->idempresa->setFormValue($objForm->GetValue("x_idempresa"));
}
if (!$this->idestablecimiento->FldIsDetailKey) {
$this->idestablecimiento->setFormValue($objForm->GetValue("x_idestablecimiento"));
}
// The rest of the fields that pkpmaker generates.................
if (!$this->idcategoria_orden->FldIsDetailKey) {
$this->idcategoria_orden->setFormValue($objForm->GetValue("x_idcategoria_orden"));
}
}
function AddRow($rsold = NULL)
{
global $Language, $Security;
$conn = &$this->Connection();
// Begin transaction
if ($this->getCurrentDetailTable() <> "")
$conn->BeginTrans();
// Load db values from rsold
if ($rsold) {
$this->LoadDbValues($rsold);
}
$rsnew = array();
// idempresa
$this->idempresa->SetDbValueDef($rsnew, $this->idempresa->CurrentValue, 0, strval($this->idempresa->CurrentValue) == "");
// The rest of the fields that pkpmaker generates.................
// Add idcategoria_orden
//$this->idcategoria_orden->SetDbValueDef($rsnew, $this->idcategoria_orden->CurrentValue, NULL, FALSE);
}
This is my HTML Input
<input type="text" name="x_idcategoria_orden" id="x_idcategoria_orden" value="<?php echo $orden_tra->idcategoria_orden->EditValue; ?>">
But but does not save