[TYPO3-irre] IRRE Problem with tree tables in combination: parent-child-subchild

Stefan Frömken firma at sfroemken.de
Mon May 19 11:31:14 CEST 2008


Hello newsgroup,

OK...let's try in english. Let me know if there is something not 
understandable.

We're a producer of high speed printers. Just look at the date of your 
water-bottle, or what ever and if the date is dotted...it could be our 
system.

But now back to the problem

I have a table with our printers (serialnumber, type, cutomer, ...).
Each printer have one or more printerheads (Table: printerhead: 
serialnumber, type, pressure, power).

Till now, there are no problems and with the help of property 
useCombination and a intermediate table I can edit the printer AND the 
printerhead at the same time or define a new printerhead.

But as you can see, there is a field "type" in the printerhead-table.
I have a third table called printerheadtype. I don't know how to add 
this table in this IRRE-system.

Just now I created a second intermediate table between printerhead and 
printerheadtype. OK...it works...but only when I edit a record in the 
child-table (printerhead).

When I create a new record in the parent table (printers) I can create 
one or more printerheads (field are red bordered). Now I want to create 
a new relation of one "type" to this printerhead, but after saving there 
stands "no title" and in my second intermediate table the headid was 
filled correctly but the typid was "0"?!?!

I can change the "0" to f.e. "4" on the database directly, then IRRE 
will show the relation correctly.

Here's the code for type in the printerhead-table:
"typ" => Array (		
"exclude" => 1,		
"label" => 
"LLL:EXT:sf_ebshaslo/locallang_db.xml:tx_sfebshaslo_printerhead.typ",		
"config" => Array (
"type" => "inline",
"foreign_table" => "tx_sfebshaslo_printerheadtyp_rel",
"foreign_field" => "headid",
"foreign_sortby" => "headsorting",
"foreign_selector" => "typid",
"foreign_label" => "typid",
"appearance" => Array (
"collapseAll" => 1,
"expandSingle" => 1,
"useCombination" => 1,
),
"maxitems" => 1,
)
),

As I say: Let me know, if here is something missing.

Thanks for your help and this very helpful IRRE-Feature.

Stefan


More information about the TYPO3-project-irre mailing list