Hello people,
So, I have try put QFileAsset into QDateRepeater, but some problems appear.
The question is when i upload file, happened a request server and when happened a request server my QDateRepeater refresh automatically, so all QFileAssets that into QDateRepeater is clean and build new QFileAssets, but when update my icon QFileAsset the code Javascript search a Old QFileAsset.
I tryed the fix Id in QFileAsset
$flaControl = new QFileAsset($_CONTROL, 'fla'.$_CONTROL->CurrentItemIndex);
but appear message erro that i dont't render two QControl with the same Id.
Please Help-me!!!
Form PHP
<?php
require '../includes/prepend.inc.php';
class TestForm extends QForm {
protected $dtrTest;
public function Form_Create() {
parent::Form_Create();
$this->dtrTest = new QDataRepeater($this);
$this->dtrTest->Template = __DOCROOT__.'/dtr_test.tpl.php';
$this->dtrTest->SetDataBinder('dtrTest_Bind');
}
protected function dtrTest_Bind(){
$this->dtrTest->DataSource = array(1,2,3,4,5,6,7,8);
}
}
TestForm::Run('TestForm');
?>
DTR TPL PHP
<?php
$flaControl = new QFileAsset($_CONTROL);
$flaControl->TemporaryUploadPath = __DOCROOT__;
echo $flaControl->Render(false);
?>
.bc