Ok, so I would like this panel bar to be built and use a data source but the problem is that I use 3 tables for the source.
I have
tblCategory
-cID Auto
-cName String
-cDescription String
-isDeleted Boolean
tblProducts
-pID Auto
-pNumber String
-pName String
-isDeleted Boolean
and because products can be listed under multiple categories I have an intermediate table called
tblInfo
-iID Integer
-cID Integer
-pID Integer
Now I have created a table adaptor I call Navigation which loads like ...
SELECT c.cID, c.cName, c.cDescription, p.pID, p.pNumber, p.pName
FROM ((tblCategories c INNER JOIN
tblInfo i ON c.cID = i.cID) INNER JOIN
tblProducts p ON i.pID = p.pID)
WHERE (c.isDeleted = False) AND (p.isDeleted = False)
ORDER BY c.cOrder, p.pName
so I have
-cID
-cName
-cDescriptino
-pID
-pNumber
-pName
and what I would like is for all the products to be listed under the categories. Below is a sampling output of the table.
But when I try to specify 2 as the parent and pID as the child it gives me errors..
I have
tblCategory
-cID Auto
-cName String
-cDescription String
-isDeleted Boolean
tblProducts
-pID Auto
-pNumber String
-pName String
-isDeleted Boolean
and because products can be listed under multiple categories I have an intermediate table called
tblInfo
-iID Integer
-cID Integer
-pID Integer
Now I have created a table adaptor I call Navigation which loads like ...
SELECT c.cID, c.cName, c.cDescription, p.pID, p.pNumber, p.pName
FROM ((tblCategories c INNER JOIN
tblInfo i ON c.cID = i.cID) INNER JOIN
tblProducts p ON i.pID = p.pID)
WHERE (c.isDeleted = False) AND (p.isDeleted = False)
ORDER BY c.cOrder, p.pName
so I have
-cID
-cName
-cDescriptino
-pID
-pNumber
-pName
and what I would like is for all the products to be listed under the categories. Below is a sampling output of the table.
2 | Skin Cleansers | d | 25 | 311 | C-Mollient Gel Cleanser |
2 | Skin Cleansers | d | 20 | 043 | LactiCleanse Creamy |
2 | Skin Cleansers | d | 21 | 243 | LactiCleanse Foamy |
2 | Skin Cleansers | d | 22 | 247 | Multi HA Cleanser |
2 | Skin Cleansers | d | 19 | 248 | NeutraCleanse |
2 | Skin Cleansers | d | 23 | 286 | RosaCleanse Creamy |
2 | Skin Cleansers | d | 24 | 287 | RosaCleanse Foamy |
3 | Anti-Photoaging | Anti Photo Aging | 8 | 270 | CEGA 30+FERULIC Cream |
3 | Anti-Photoaging | Anti Photo Aging | 3 | 269 | CEGA 30+FERULIC Serum |
3 | Anti-Photoaging | Anti Photo Aging | 4 | 205 | CEGA Eye Area |
3 | Anti-Photoaging | Anti Photo Aging | 32 | 206 | C-Mollient Serum |
3 | Anti-Photoaging | Anti Photo Aging | 27 | 212 | C-mollient |
But when I try to specify 2 as the parent and pID as the child it gives me errors..
[ArgumentException: These columns don't currently have unique values.]
any help would be greatly appreciated.