[TYPO3-mvc] extjs itemselector and extbase: map a comma separated list of values to Tx_Extbase_Persistence_ObjectStorage

Jochen Rau jochen.rau at typoplanet.de
Thu Mar 11 09:14:59 CET 2010


Hi Dimitry,

have a look at the OfferController and the according templates of

http://forge.typo3.org/repositories/show/extension-sjr_offers

how multivalues can be handeled.

Regards
Jochen

On 11.03.10 08:51, Dmitri Pisarev wrote:
> As my first question gets no reply, I'll try to put it the other way
> around:
> May be it's best attach and remove subprojects to invoice one by one, as
> a separate ajax calls, when user clicks on add and remove buttons of
> itemSelector?
> Here's the link to the sample of itemselector:
> http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html
>
> Didn't anyone ever integrate multiselect with extbase?
>
> Cheers,
> Dmitri.
>
> On 09.03.2010 12:41, Dmitri Pisarev wrote:
>> Hey guys! I'm trying to screw in the Ext's ItemSelector to my extbase
>> plugin. It lets me select multiple items and then submits a
>> comma-separated list of uid's. In my model I have a foreign key type of
>> relationship between Invoice and Suproject, so I can add multiple
>> subprojects to one invoice, and one subproject can belong to only one
>> invoice.
>> If I submit subprojects list as
>> Tx_Alex_Domain_Model_Invoice_Subprojects, nothing happens, it just maps
>> it to an empty
>> Tx_Extbase_Persistence_ObjectStorage<Tx_Alex_Domain_Model_Subproject>.
>> I can get that subprojects list as a string to the controller, manually
>> explode it, then manually deal with it, but isn't it possible to do it
>> automatically?
>>
>> Thanks in advance,
>> Dmitri.
>



More information about the TYPO3-project-typo3v4mvc mailing list