Newbies jeffro Posted March 6, 2013 Newbies Posted March 6, 2013 Inventory Database with fields : INVENTORY IMAGE, LOCATION and STATUS. The STATUS field has three options : AVAILABLE, SOLD and ARCHIVE. It is important to be able to sort and view Inventory Records by LOCATION. My goal is to be able to Hide the Items marked ARCHIVE. Which can be done with a simple script "Perform Find & Omit Multiple records". My problem is that when ever Inventory is sorted or viewed by LOCATION, the OMITED records (marked "archive") reappear. Any suggestions ?
bcooney Posted March 6, 2013 Posted March 6, 2013 Consider moving "Archived" inventory items to another table. Sorting does not change the found set, so investigate what exactly is happening when you "view by Location". Sounds like there's another find happening that is not omitting status="Archived".
Newbies jeffro Posted March 6, 2013 Author Newbies Posted March 6, 2013 The "view by location" is a FIND based on the LOCATION which is what is bringing back the omitted records. Creating another table and exporting the "archived" items to it occurred to me but seemed overly complicated.
bcooney Posted March 6, 2013 Posted March 6, 2013 I don't really understand your question. Every find will need to include the omit of Archived inventory items. So, change "View by Location". Creating a sub-type/supertype table structure for archived inventory is more complicated, but addresses the need to list items that are not archived directly. Otherwise, you must control the finds. Perhaps a "Hide Archived" button on the list view that constrains the found set?
David Jondreau Posted March 9, 2013 Posted March 9, 2013 Barbara's right, a separate table is probably the best way to go. But for quick and dirty, try an onModeExit trigger that checks to see if it's leaving Find mode and if so, add a request omitting Archived records.
Recommended Posts
This topic is 4276 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now