subform

Howto address specific element from subform and have it displayed correctly with []

霸气de小男生 提交于 2019-12-01 14:00:21
related to this question Zend_Form - Array based elements? $form = new Zend_Form(); $subForm = new Zend_Form_SubForm(); $subForm->addElement('Text', '1') ->addElement('Text', '2'); $form->addSubForm($subForm, 'element'); $var = '1'; $var2 = '2'; echo $form->getSubForm('element')->$var; echo $form->getSubForm('element')->$var2; If I use this way output will wrongly be (or at least not quite expected) <input type="text" value="" id="1" name="1"> If I use echo $form output will correctly be <input type="text" value="" id="element-1" name="element[1]"> but I loose flexibility then I am not saying

Howto address specific element from subform and have it displayed correctly with []

为君一笑 提交于 2019-12-01 12:08:49
问题 related to this question Zend_Form - Array based elements? $form = new Zend_Form(); $subForm = new Zend_Form_SubForm(); $subForm->addElement('Text', '1') ->addElement('Text', '2'); $form->addSubForm($subForm, 'element'); $var = '1'; $var2 = '2'; echo $form->getSubForm('element')->$var; echo $form->getSubForm('element')->$var2; If I use this way output will wrongly be (or at least not quite expected) <input type="text" value="" id="1" name="1"> If I use echo $form output will correctly be

SQL to include condition in Where if not null

隐身守侯 提交于 2019-11-29 13:11:27
In access I have been trying to set up user filters on what is displayed in a subform which is a list of inspection. Other methods Ive tried looking into have not been working but I have success with the below code, It will filter if a user fills any other the filter options. What I can figure out is how to have it accept multiple filters unless I spelt out every possible combination of boxes So is there anyway this is actually possible or do I need to look at other options? WHERE [STATUS] = "OPEN" AND (ANY FORM FILTERS is not Null [Filter by all those that are not null to its matching column]