[TYPO3-project-formidable] save State for rdt:SEARCHFORM

JéŽrô™me Schneider j.schneider at ameos.com
Mon Nov 23 10:10:14 CET 2009


Hi Christian !

I tried this in a remote-sender, and it worked for me:

<renderlet:BUTTON name="btnclear" label="clear">
	<onclick runat="server" when="before-render">
		<userobj>
			<php><![CDATA[
	$oRdt = $this->rdt("my-search-sender");
	$oRdt->clearFilters();
			]]></php>
		</userobj>
	</onclick>
</renderlet:BUTTON>

I also tried to move this into the remore-receiver, and it worked also 
(of course, changing before "my-search-sender" in "my-search-receiver").


I don't understand the second problem, could you explain it ?


Regards,
Jerome Schneider



Christian Kartnig a écrit :
> Hello!
> 
> I finally got it working with a Remote Searchform. I still got two 
> problems with this:
> 
> I can't clear the searchform values with 
> $this->aORenderlets["my-search"]->clearFilters(); anymore.
> The form data is saved in the session in the array of the sender 
> searchform ("my-search sender"). Trying 
> $this->aORenderlets["my-search-sender"]->clearFilters(); from within 
> "my-search-sender" gets me a "Call to a member function clearFilters() 
> on a non-object" error.
> 
> Second problem: The pager value of course gets lost. Does somebody have 
> any ideas here?
> 
> thanks for your help,
> Christian
> 
> 
> Christian Kartnig schrieb:
>> Hello!
>>
>> I have an rdt:SEARCHFORM in connection with an rdt:LISTER (and a 
>> pager). The Lister has Details-Links to another page. I want to store 
>> the searchform values, so that I can go back to the exact state of the 
>> Lister/Searchform when returning from a details-page.
>>
>> In this list I found a description for how to do this using a 
>> datahandler:lister. There is a function called: 
>> tx_dhlister::_getLinkToPersistedSearchParams("my_search_form_id_as_declared_in_xmlmeta"); 
>>
>>
>> Is there a function like this for the rdt:LISTER? And how do I get the 
>> criteria into the Session data?
>>
>> Or should I use a remote-Searchform?
>>
>> Thanks a lot,
>> Christian


More information about the TYPO3-project-formidable mailing list