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

Dmitri Pisarev dimaip at gmail.com
Thu Mar 11 08:51:47 CET 2010


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