xataface and many-many-relationships (errors with "sele

Hi,
I gave xataface a try today. It works like a charm. I only have two issues...
I want to create a internal product-database and separated some options to make the database-structure itself easier and, of course, to avoid redundancies.
My Table-Layout:
artikel_details (main-table):
- artikel_id (PK, INT)
- ... various other columns
fk_medium (values stored):
- medium_id (PK,INT)
- name (VARCHAR)
fk_signale (values stored):
- signale_id (PK, INT)
Here come the relationship-tables:
matrix_signal:
- artikel_id (PK together with signale_id)
- signale_id
- anzahl
matrix_medium:
- artikel_id (PK together with medium_id)
- medium_id
content of tables/artikel_details/relationship.ini:
When I create a new entry in my main-table (artikel_details), I also want to add different relations to "medium" and "signal" as well. Therefore I set up a "select-widget".
Here tables/matrix_medium/fields.ini
where mediumliste is defined in tables/matrix_medium/valuelists.ini:
When I have the entry
in my relationship.ini everything will be fine, except my "select-widget".
When I remove this line of code, there will be a entry "Untitled matrix_medium Record" in my overview, but the "select-widget" will work.
Another special thing:
My table "matrix_signale" contains a column where additional data is to be stored: "anzahl". I think because of this there is always the "error" "Untitled matrix_medium Record". My "select-widget" is working fine.
Of course it would be very cool to the related values in the "detail-view" and to have working "dataset-overview (left-top-corner)".
What can we do? Xataface Version is from today, running on Debian Etch, MySQL. There are certain foreign key in the database to have the relationships also in the DB.
I just want (someone) to add a huge amount of data (by hand) and want to have it all clean and simple.
Best regards,
Paul
I gave xataface a try today. It works like a charm. I only have two issues...
I want to create a internal product-database and separated some options to make the database-structure itself easier and, of course, to avoid redundancies.
My Table-Layout:
artikel_details (main-table):
- artikel_id (PK, INT)
- ... various other columns
fk_medium (values stored):
- medium_id (PK,INT)
- name (VARCHAR)
fk_signale (values stored):
- signale_id (PK, INT)
Here come the relationship-tables:
matrix_signal:
- artikel_id (PK together with signale_id)
- signale_id
- anzahl
matrix_medium:
- artikel_id (PK together with medium_id)
- medium_id
content of tables/artikel_details/relationship.ini:
- Code: Select all
[matrix_signale_loop]
fk_signale.signale_id = matrix_signale.signale_id
matrix_signale.artikel_id = "$artikel_id"
[matrix_medium]
fk_medium.medium_id = matrix_medium.medium_id
matrix_medium.artikel_id = "$artikel_id"
When I create a new entry in my main-table (artikel_details), I also want to add different relations to "medium" and "signal" as well. Therefore I set up a "select-widget".
Here tables/matrix_medium/fields.ini
- Code: Select all
[medium_id]
widget:type = select
vocabulary = mediumliste
where mediumliste is defined in tables/matrix_medium/valuelists.ini:
- Code: Select all
[mediumliste]
__sql__ = "SELECT medium_id, name FROM fk_medium ORDER BY name;"
When I have the entry
- Code: Select all
fk_medium.medium_id = matrix_medium.medium_id
in my relationship.ini everything will be fine, except my "select-widget".
When I remove this line of code, there will be a entry "Untitled matrix_medium Record" in my overview, but the "select-widget" will work.
Another special thing:
My table "matrix_signale" contains a column where additional data is to be stored: "anzahl". I think because of this there is always the "error" "Untitled matrix_medium Record". My "select-widget" is working fine.
Of course it would be very cool to the related values in the "detail-view" and to have working "dataset-overview (left-top-corner)".
What can we do? Xataface Version is from today, running on Debian Etch, MySQL. There are certain foreign key in the database to have the relationships also in the DB.
I just want (someone) to add a huge amount of data (by hand) and want to have it all clean and simple.
Best regards,
Paul