I searched the forum for an answer but didn't find one.
I'm trying to create a form using the form wizard.
I'm receiving the following error "Form wizard can't detect primary key on selected table".
My first question is, does nubuilderpro v3 work with MySQL Views or just tables?
If it does work with views what am I doing wrong?
The underlying Table my View is based on has a PK on the ID field.
My View is here:-
Code: Select all
SELECT table.ID, Category_Code,
SUM(CASE WHEN `PL_Status` LIKE 'Open' THEN 1 ELSE 0 END) AS 'PL Open',
SUM(CASE WHEN `PL_Status` LIKE 'Closed' THEN 1 ELSE 0 END) AS 'PL Closed',
SUM(CASE WHEN `PL_Number` LIKE '%' THEN 1 ELSE 0 END) AS 'Total of PL',
ROUND(SUM(CASE WHEN `PL_Status` Like 'Closed' Then 1 ELSE 0 END) / COUNT(CASE WHEN `PL_Number` Like '%' Then 1 ELSE 0 END) * 100, 2) AS '% Closed'
FROM `table`
Group By table.Category_Code
I