[TYPO3-formidable] majixRepaint problem with row deleting in lister

Domi Garms djgarms at gmail.com
Tue Aug 24 02:37:53 CEST 2010


Hello List,

still I couldnt solve my problem. Tried it with wrapping a
renderlet:BOX around, like in some old snippet it was shown. Not sure
what Im doing wrong, do I have to repaint the datasource?

Thanks for any hint

Domi



2010/8/23 Domi Garms <djgarms at gmail.com>:
> Hello Formidables,
>
> I try to delete a row in a lister with codebehind and an onclick ajax
> event. The row gets deleted in the DB-table, but majixRepaint is not
> working.
>
> My Lister:
> <renderlet:LISTER name="favoritlister">
>                        <datasource use="favorites" />
>
>                        <ifEmpty message="You dont have any favorites yet!" />
>                        <columns>
>                                <column name="uid" type="renderlet:TEXT" />
>                                <column name="tstamp" type="renderlet:DATE" >
>                                        <data>
>                                                <dateTime format="%d.%m.%Y" />
>                                        </data>
>
>                                </column>
>                                <column name="user" type="renderlet:TEXT" />
>                                <column name="last_name" type="renderlet:LINK" />
>                                <column name="first_name" type="renderlet:TEXT" />
>                                <column name="favorite" type="renderlet:TEXT" />
>                                <column type="renderlet:BUTTON" label="delete" name="btnDelete"
> sort="false">
>                                        <onclick
>                                                runat="ajax"
>                                                params="rowData::uid"
>                                                cache="false"
>                                                exec="coding.delete_favorit_click()"
>                                        />
>                                </column>
>                        </columns>
>                </renderlet:LISTER>
>
> And codebehind.php
> class codebehind {
>                function delete_favorit_click() {
>                        // requesting parameters from the event
>                        $aParams = $this->oForm->oMajixEvent->getParams();
>                        $where = 'uid='.$aParams["uid"];
>
>                        $GLOBALS["TYPO3_DB"]->exec_DELETEquery('tx_dmfaupairs_favorites',$where);
>
>                        return $this->oForm->aORenderlets["favoritlister"]->majixRepaint();
>
>                }
>        }
>
> Does somebody sees my errorcode? I did this on the snippet of
> http://formidable.typo3.ug/tutorials/editing-in-list-with-modalbox.html
>
> Thanks for any help
>
> Greetings Dominic
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
>


More information about the TYPO3-project-formidable mailing list