Have form with 2 selection boxes: CATEGORY (with primary Keyon ID(Int) and SUBCATEGORY (with the primary KEy on ID(Int). The second table also has CategoryID field.
The lin between the bables is maed through Category(ID) = Subcategory(CategoryID)
The first dropdown list works fine. I need the second dropdown list to show only records filtered by selection in a first dropdown box. Another words user selects category then subcategory.
AFAIK this is called dependable drop boxes (and it is common feature)
Unfortunately seems like lookup property does not allow to enter full SQL statements manually. SC also has no Field Events so there is no way to assign the Local Variable after the first selection is completed so the second one can be filtered based on first one. Id there any way to implement this ?
I tried to use in a second dropdown list SQL like:
SELECT ID, ProductCategoryId, SubcategoryName
FROM edb_nPRODUCTSUBCAT
WHERE
ProductCategoryId={Category.ID}
ORDER BY
SubcategoryName
but I get errors
Arthur