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

Christian Kartnig office at hahnepeter.de
Fri Nov 27 11:26:04 CET 2009


Hello JéŽrô™me!

Thank you very much for answering.
Unfortunately, your code doesn't work for me. I get "Fatal error: Call 
to undefined method tx_ameosformidable::rdt()" I use Rev 367.

In the meantime, I came up with a quite ugly workaround:
	$GLOBALS['_SESSION']['ameos_formidable']['applicationdata']['rdt_lister']['tx_topstip_pi2']['my-search-sender']['criterias'] 
= array();
	
header('Location: index.php?id=' . $GLOBALS['TSFE']->id); //for page 
reload and clearing the get-value generated by the pager

My second problem is exactly this pager value. When I leave the page and 
come back later, the form parameters are preserved, but the value of the 
pager is lost, because it is passed as a get-parameter.

Do you have any idea to solve that problem?

best regards,
Christian






JéŽrô™me Schneider schrieb:
> 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