[TYPO3-german] extbase - filterung von datensätzen
InforMedic
informedic at web.de
Sat May 18 22:06:15 CEST 2013
Hallo Hans-Peter,
das sollte doch einfach in dem Controller passieren wo du das options
array erzeugst und an die view übergibst.
$this->view->assign(
$options = array(
0 => 'bitte Auswählen',
$mainOptions,
),
);
oder so ähnlich...
gruß
Am 18.05.2013 20:45, schrieb Hans-Peter M.:
> Hallo,
>
> ich bin auf ein kleines Problem gestoßen. Ich möchte eine Select-Box
> zur Filterung anbieten. Und zwar soll bei Auswahl des Datensatzes das
> Formular gleich abgeschickt werden. Ich versuch das per "onChange".
> Problem ist immer der erste Datensatz. Der kann niemals ausgewählt
> werden. Ich hätte als erste Option nun ein "Bitte Auswählen" und
> anschließend die Objekte aus meinem Controller.
>
> So sieht mein aktuelles Form aus:
>
> <f:form action="filter" name="demo">
> <f:form.select property="categories" options="{options}"
> optionValueField="uid" optionLabelField="name"
> additionalAttributes="{onChange : 'document.demo.submit();'}" />
> </f:form>
>
> Hat jemand einen Lösungsansatz wie ich manuell ein Auswahloption am
> Anfang einfügen kann?
>
> Viele Grüße
> Hans-Peter
>
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
--
--------------------------
InforMedic Web Development
Guido Palacios
Bahnhofstr. 9
71034 Böblingen
Tel:07031-7854723
Fax:07031-7854725
Mobil:0163-7344482
Mail:guido.palacios at web.de
--------------------------
More information about the TYPO3-german
mailing list