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

Domi Garms djgarms at gmail.com
Mon Aug 23 08:16:43 CEST 2010


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


More information about the TYPO3-project-formidable mailing list