[TYPO3-formidable] searchform and lister doesnt work with several searchform childs

Domi Garms djgarms at gmail.com
Wed Aug 11 03:52:52 CEST 2010


Good morning,

still my searchform doesnt work anymore after I filter a result, which
ends up with NULL. Nothing can be change, also F5 or cache empty or
any other things doesnt work, Im not sure if i miss a important thing.
Added
  $cache = 0;
  $this->pi_USER_INT_obj = 1;
in my class but with no change. Maybe someone sees a mistake in my code?

This is my debug output, the only Handler which is not empty
#5 - oDataHandler->__aFormData initialized with these values
(Total exec. time: 0.038 sec)
Toggle details
search_for_aupair	STRING(0)
aupair_list	STRING(0)





<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<formidable version="2.0.475"
	xmlns:datahandler="http://www.ameos.com/formidable/2.0.475/datahandler"
	xmlns:datasource="http://www.ameos.com/formidable/2.0.475/datasource"
	xmlns:renderer="http://www.ameos.com/formidable/2.0.475/renderer"
	xmlns:renderlet="http://www.ameos.com/formidable/2.0.475/renderlet"
	xmlns:validator="http://www.ameos.com/formidable/2.0.475/validator"
	xmlns:actionlet="http://www.ameos.com/formidable/2.0.475/actionlet">
		
	<meta>
		<name>Searchform for an Au pair</name>
		<form formid="search_form_aupair" >
			<custom>method="POST"</custom>
		</form>	
		<displaylabels>true</displaylabels>
		<debug>true</debug>
	</meta>
	
	<control>
		<datahandler:VOID />
		<renderer:STANDARD />
		
		<datasource:DB name="aupair_users">
			<sql><![CDATA[
				SELECT
					fe_users.uid							AS uid,
					fe_users.first_name						AS firstname,
					static_countries.cn_official_name_en 	AS country,
					fe_users.crdate							AS crdate
					
				FROM
					fe_users,
					fe_groups,
					static_countries,
					tx_dmfaupairs_admin
				WHERE
					tx_dmfaupairs_admin.feuser = fe_users.uid AND
					fe_users.country = static_countries.uid
					
				GROUP BY fe_users.uid
			]]></sql>
		</datasource:DB>
		
	</control>
	

	<elements>
		<renderlet:SEARCHFORM name="search_for_aupair">
			<datasource use="aupair_users" />
			<childs>	

				<renderlet:LISTBOX name="searchfromwhere" label="We search an Au
pair from:">
					<search onfields="fe_users.country" />
					<data>
						<defaultvalue first="true" />
						<items>
							<item caption="All" value="" />
						</items>
						<userobj>
							<php><![CDATA[	
								return $GLOBALS["TYPO3_DB"]->exec_SELECTgetRows(
									"static_countries.uid as value,
static_countries.cn_official_name_en as caption",
									"static_countries,fe_users,tx_dmfaupairs_admin",
									"static_countries.uid = fe_users.country AND
tx_dmfaupairs_admin.feuser=fe_users.uid",
									"static_countries.uid",
									"caption ASC"
								);
							]]></php>
							
						</userobj>
					</data>
					
					<custom>size="5"</custom>
					<multiple>true</multiple>
				</renderlet:LISTBOX>
				
			
				
				<renderlet:LISTBOX name="searchgender" label="We search for:">
					<search onfields="fe_users.gender" />
					<data>
						<defaultvalue first="true" />
						<items>
							<item caption="ALL" value="" />
							<item caption="male" value="0" />
							<item caption="female" value="1" />
						</items>
					</data>
				</renderlet:LISTBOX>	
				
				<renderlet:SUBMIT name="submit" label="Search" mode="search" />			
			</childs>
		</renderlet:SEARCHFORM>
		
		
		<renderlet:LISTER name="aupair_list">
			<searchform use="search_for_aupair" />
			<columns>
				<column name="firstname" type="renderlet:TEXT" listHeader="User name" />
				<column name="crdate" type="renderlet:DATE" listHeader="User CR date">
					<data>
						<datetime format="%d %B %Y" locale="en_EN" />
					</data>
				</column>
				<column name="country" type="renderlet:TEXT" listHeader="Country" />			
			</columns>
		</renderlet:LISTER>
	</elements>
</formidable>


Thanks for helping

Regards
Domi















2010/8/10 Domi Garms <djgarms at gmail.com>:
> Hello List
>
> Im struggling again, this time with a search-formular with a
> searchform and a lister. Everythings works till the point, that I
> choose a filter-combination which result is NULL. After this nothing
> is working anymore, also not when I try to restart the page, still the
> last entries are shown in the searchform and I cannot change anything,
> the filter-elements still change back to the last entries.
>
>
> this is how the url looks like:
>
> http://www.testseite.de/database-neu.html?search_form_aupair[search_for_aupair][anonymous_a76fdda8b8]=&postflag[search_form_aupair.search_for_aupair.anonymous_a76fdda8b8]=1&search_form_aupair[search_for_aupair][anonymous_414a321d38][]=&postflag[search_form_aupair.search_for_aupair.anonymous_414a321d38]=1&search_form_aupair[search_for_aupair][anonymous_8415507ac9]=1&postflag[search_form_aupair.search_for_aupair.anonymous_8415507ac9]=1&search_form_aupair[search_for_aupair][anonymous_4c724dc5fc]=Search&search_form_aupair[AMEOSFORMIDABLE_SERVEREVENT]=&search_form_aupair[AMEOSFORMIDABLE_SERVEREVENT_PARAMS]=&search_form_aupair[AMEOSFORMIDABLE_SERVEREVENT_HASH]=&search_form_aupair[AMEOSFORMIDABLE_ADDPOSTVARS]=&search_form_aupair[AMEOSFORMIDABLE_VIEWSTATE]=&search_form_aupair[AMEOSFORMIDABLE_SUBMITTED]=AMEOSFORMIDABLE_EVENT_SUBMIT_FULL&search_form_aupair[AMEOSFORMIDABLE_SUBMITTER]=
>
> My extension is USER_INT, hope someone can help me out
>
> Regards,
>
> Domi
> _______________________________________________
> 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