Crud->expaner->form->submit not working fine

67 views
Skip to first unread message

Gowrav

unread,
May 21, 2012, 3:38:05 PM5/21/12
to agile-too...@googlegroups.com

Hi there,
this is a simple test page not working as it should be ...


class page_test extends Page{
    function init(){
        parent::init();
       
        $m=$this->add('Model_Fee');
        $c=$this->add('CRUD');
        $c->setModel($m);
        if($c->grid){
            $c->grid->addColumn('expander','pg2');
        }
       
    }
   
    function page_pg2() {
        parent::init();
        $f=$this->add('Form');
        $f->addField('line','name');
        $f->addSubmit();
        if($f->isSubmitted()){
            $f->js()->univ()->successMessage('sdfsdfs');
        }
    }
}


After clicking on pg2... and click on form submit.. getting this error ... in firebug console


Form sample_project_test_pg2_form submission is not handled. See: http://agiletoolkit.org/doc/form/submit

if(console.error)console.error(arg1);




Gowrav

unread,
May 21, 2012, 3:49:56 PM5/21/12
to agile-too...@googlegroups.com
Also tryed function initMainPage to avoid re render of full page on pg2 click ...

Janis

unread,
May 21, 2012, 4:41:58 PM5/21/12
to agile-too...@googlegroups.com
If you have subpages, don't use init but rather initMainPage()
--
FYI: If amount of emails you receive from this group is too much - switch to "Digest" mode. You'll receive no more than 1 email per day.
 
To post to this group, send email to
agile-too...@googlegroups.com
 
To unsubscribe and view archive:
http://groups.google.com/group/agile-toolkit-devel?hl=en
 
To download Agile Toolkit, visit:
http://agiletoolkit.org/

Janis

unread,
May 21, 2012, 4:42:50 PM5/21/12
to agile-too...@googlegroups.com
Also, after successMessage() you must add ->execute();


On 2012. gada 21. maijs, at 22:38, Gowrav <gowravvi...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages