Re: [vcl4php-developers] edit hidden value stuff
Brought to you by:
ttm
|
From: Gary <z0...@40...> - 2009-05-15 16:18:04
|
Seems fine. The html output is fixed.
While diffing the stdctrls I also noticed one other helper function that I
had added to it
in class CustomListBox
/**
* Load from datasource
* Example to use in combobox before show event
* // $this->ComboBox1->Clear();
* $this->ComboBox1->AddItem('All');
*
$this->ComboBox1->load_from_ds($this->Datasource2->getDataSet(),'yourFieldName');
*/
function load_from_ds($ds,$df)
{
// $this->Clear();
// $ds=$this->_datasource->getDataSet();
$ds->first();
while (!$ds->EOF)
{
// $this->AddItem($ds->fieldget($this->_datafield));
$this->AddItem($ds->fieldget($df));
$ds->next();
}
}
I had tried it with using the combo's ds and df properties but it caused me
many problems after the form posted so I just did it this way.
|