hey, does editor know to work with inheritance table?
hey, does editor know to work with inheritance table?

hey, does editor know to work with inheritance tables?
This question has accepted answers - jump to:
This discussion has been closed.
hey, does editor know to work with inheritance tables?
This question has accepted answers - jump to:
Answers
another question that connect to this subject.
i have service Table, in my service table i have identity int value and service-type value as primary Keys, know i have another 6 table that connected to this service table with foreign key to the (identity and service-type)!
now i want to add a new service but not from the parent table,but from 1 of the 6 other table, how can i achieve this with editor?
Do you mean something like this? If not, could you clarify what you are looking for please?
You'd need to have a second DataTable / Editor for the services. Currently Editor doesn't provide the ability to edit nested down tables in the UI. That is something we plan to introduce in future.
Allan
hey allan, i understand
i have a problem with the Mjoin, i have two tables , trip and day trip
they have many to many connection, form the trip table its ok it load all the data as expected, but from the dayTrip Table its show me an error
"DataTables warning: table id=example - Incorrect syntax near the keyword 'JOIN'."
why it happend, all i want to do, is to know if my dayTrip connected to trip so i will be enable/disable to remove the dayTrip row
If you add
->debug(true)
before the->process(...)
call on the server-side, the JSON returned from the server will show the SQL it is attempting to execute. Can you show me that JSON please?Allan
this the sql-->
This is what it looks like when formatted:
So yes, line 8 above shows an error since there is no matching condition. Next question is, why is that happening! Can you show me your code that is generating that SQL please?
Allan
here the code
I presume the error happens when the four Mjoin lines are commented back in? Can you show me your
Model.Trip
model please?Allan
yes, i just comment out this lines because it didn't worked.
this is my model
Ah! It's the naming that is tripping my code up. Specifically I have:
where
_table
is the joined table (Trip
) andpartner
is the link table name.Trip_DayTrip.
will matchTrip.
.Fix committed here. Thanks!
Allan
how i can add this fix to my project allan?
You can either grab the sources from the github repo I linked to above (its a VS project) and build the dlls, or we'll be releasing Editor 1.9.1 probably next week.
Allan
Thanks for your help Allan!!