2.0.1
QDialogBox Error in 2.0
I am having an issue dynamically loading QPanels in a QDialogBox in QCubed version 2.0.1. When I click a control that triggers the QDialogBox the first time it renders properly, however when I close the QDialog and click a control to open it again the Dynamically loaded panel does not appear. After closing the second attempt and then clicking another control that triggers the panel the dynamic panel now appears again. Here is the simplified code. It is basically the same logic as the form drafts, except the edit panel is loaded into a QDialogBox rather than a QPanel. This code works in QCubed Version 1.1.2.
DialogTest.php
<?php
require_once('qcubed.inc.php');
class DialogTest extends QForm {
protected $pnlTopLeft;
protected $pnlTopCenter;
protected $pnlDialog;
protected $pnlEdit;
protected function Form_Create() {
$this->pnlDialog = new QDialogBox($this);
$this->pnlDialog->AutoRenderChildren = true;
$this->pnlTopLeft = new QPanel($this, 'TopLeft');
$this->pnlTopLeft->AutoRenderChildren = true;
$this->pnlTopCenter = new QPanel($this, 'TopCenter');
$this->pnlTopCenter->AutoRenderChildren = true;
$this->pnlEdit = new QPanel($this->pnlDialog, 'pnlEdit');
$this->pnlEdit->Text = 'PnlEdit Rendered';
$this->pnlEdit->AutoRenderChildren = true;
$pnlCompliance = new UserListPanel($this->pnlTopCenter, 'SetEditPane', 'CloseEditPane');
$pnlCBC = new VendorListPanel($this->pnlTopLeft, 'SetEditPane', 'CloseEditPane');
}
public function CloseEditPane($blnUpdatesMade) {
// Close the Edit Pane
$this->pnlEdit->RemoveChildControls(true);
$this->pnlDialog->HideDialogBox();
}
public function SetEditPane(QPanel $objPanel = null) {
$this->pnlEdit->RemoveChildControls(true);
if ($objPanel) {
$objPanel->SetParentControl($this->pnlEdit);
$this->pnlDialog->ShowDialogBox();
} else {
$this->pnlDialog->HideDialogBox();
}
}
}
DialogTest::Run('DialogTest');
?>DialogTest.tpl.php
<?php
include('includes/configuration/header.inc.php');
$this->RenderBegin();
$this->pnlDialog->Render();
$this->pnlTopLeft->Render();
$this->pnlTopCenter->Render();
$this->RenderEnd();
include('includes/configuration/footer.inc.php');
?>Checking QDrupal's Pulse
Hello Fellow QCubed Bootstrappers ("QDrupal People"),
I'm working on a Drupal project and recently identified a need to leverage some better automation in the area of generating models of off external schemas. I initially started a search on ORM's, one of which was QCodo and took a liking to its powerful code generation. Shortly thereafter, I stumbled into QDrupal and QCubed and made a commitment to leverage them for my Drupal project. With an initial 80 hour journey into the QDrupal project and some installation battles, I came to the conclusion that this project deserves much more attention and has the potential for greater usage than what is currently captured at drupal.org (at the time of this writing, low to mid teens based on sites sending update statuses).
After reaching out to a few members of the core team, it was suggested that I post a new topic on this forum and find out if anyone would like to see QDrupal get a heart transplant? Who out there is currently using QDrupal and would like to see a new version based off of the latest QCubed release v2.0.1?
Respond back to this forum with your thoughts and any suggestions. How about a code name for this project? I'll risk mockery and make the first suggestion-
"Project QDOM" - QDrupal Operation Migration
- QDrupal being the subject
- Operation Migration because we're bootstrapping to the latest version of QCubed
- Perhaps, QDOM gives connotation to "QDrupal over QCubed's latest jQuery party"?? I told you I was going to risk mockery..
Thanks for reading,
sashman
