Use more than one table in a table/record item

More
7 years 11 months ago #13827 by julian.wallasch
Hi,

I created a table/record item, where users should be able to edit data. The data is from different tables. I can't use an SQL Join, because then the data can't be edited.
Is there an object, which can show data from a different table than the one in the SQL statement?

Best Regards

Julian

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #13828 by Peter.Jonson
There is is no such object.
If you use OleDB as connection type in some situations it might work,
but mist of the time it is like lottery one day it works another it does not

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #13829 by julian.wallasch
Thank you for your quick response.
Is it possible, that you implement such object or extend existing objects?

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #13859 by julian.wallasch
Hi,

Just want to ask again, because you didn't answer:
Is there a chance that you implement an object that can show data from a different table or that you extend an existing object?

Best Regards

Julian

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #13860 by Peter.Jonson
Let think how it can be done in practice

1) You can always place lookup on the record form

2) editing "select * from multiple tables" will not work,
not because we do not want to help you,
but because only OleDB connections sort of work (and fail everyday)
and the rest MySQL, Oracle, ETC does not support it

3 ) Adding lookup to the grid.
For example we have City_ID field in the table customer and we would like to show City_Name instead
We did try to implement it in the past
Very slow, next to useless.
Problems with filtering data and sorting and result users constantly complaining
We would need to create an editor for grid which will allow the user to add edit fields and define lookups

4) Since it is not possible to edit the data directly, we can try to generate sql on the fly.
Eg for every action create sql for delete insert and update and execute it
since it has to work with every database we support, we would need to support every possible datatype as well
We would need to create an editor for it as well
after every action we would need refresh the data

5) if you work with oracle you can use instead of triggers

The conclusion due to the complexity of the task at the moment we are not planning to implement it

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #13861 by julian.wallasch
Thank you for your detailed explanation.
You are right. It is to complex now.
I'll try to find a workaround for my purpose.

Best Regards

Julian

Please Log in or Create an account to join the conversation.