Hi everyone,
I’ve got an interesting issue here: I like to use a form with a database view as datasource.
The view is created by this sql:
SELECT c.contact_id, c.first_name || ' ' || c.last_name As Name, 1 AS contact_chk FROM contacts c
UNION
SELECT p.company_id, p.name, 0 AS contact_chk FROM companies p
Servoy 5.1.2 shows the view correctly as a table and I can select the view as datasource for the form, but this error occurs when showing the form:
Form 'addrbk_addressbook_view_tbl' is based on table 'addressbook_view' which doesn't have a primary key.
How to make this work since the view data is retrieved from multiple tables?
Servoy 5.1.2
MacOS X 10.6.3