This is the first time I’m using Index Awareness. I’ve set up all my primary and foreign keys and I know they are working correctly. Unfortunately that’s part of the problem I’m having.
My user tried to display a list of values for an object in a table where there is no other lookup table. She wanted a distinct list of codes, but was getting every single row in the table. Definitely not distinct.
When I edited the LOV I checked the SQL that it was generating and the primary key (surrogate numeric column) was appearing as part of the select distinct statement. (That’s how I knew the index awareness was working!) Of course, based on the surrogate key, every row was returned. When I removed the primary and foreign keys I’d defined for the object, I was able to retrieve only the distinct values.
I’ve already set index awareness for all the objects in my universe. I would prefer not having to delete the keys, run the LOV query and reset the keys for every object. How can I keep index awareness set and still generate LOV’s that contain only distinct values?
Debbie Kelly (BOB member since 2002-08-15)