NetWebBrowse - Multi-table views, Filters, and Locators.
One of the coolest features in NetWebBrowse is the sorts by columns and locators. Unfortunately there are issues with the locator that I wish to draw attention to for possible fixes. I have prepared an example program (attached) with a multi-table view with conditional filters and I have tested it with different “Locator Types.” Below are my issues with each type.
Position locator type
Does not work well in the example. I believe due to the conditional filter. After the locator value has been entered, the list will position the locator value. However pressing the Next button will reset to the beginning of the list again. This the problem with both string and numerical column sorts. The locator entry line is hidden when all the records can appear on the browse which makes sense for a Position locator type. However should the locator position value locate records towards the end of the list, then the locator entry line and navigation buttons disappear as if that was all the records in the list. The user will not know what to do or what he has done.
To show the problem, change the ViewBrowse procedure locator type to Position in the example application and compile. Start the example press the “Other Audits” button and enter “test05” in the locator field, press search button, then the press the “next” button to see the rest of the records positioned from “Test05”, but you will see that the list has jumped back to the start of the entire list.
To show the disappearing locator and navigation buttons, enter “TEST10” in to the position field.
Starts with, Contains and Search locator types.
These locator types work better than Position type for Columns containing strings. BTW is there any difference between “Contains” and “Search” types? When the sort is on string columns, these locator types will make a subset of records based on the search string. The Next button will page through the subset of the records fine. That being the case, why are the “Previous” and “First” buttons not disabled when the subset is first shown? The locator entry line is not hidden when all the records can appear on the browse which makes sense for these search locator types. When the sort is on columns with numbers, the locator acts the exact same way as the Position locator type, which is probably the best way for locating numbers or dates, however all the problems listed above for the Position locator still exist.
To show this problem, change the ViewBrowse procedure locator type to “Starts with” in the example application and compile. Start the example press the “Other Audits” button then the press “Project #” column header to set the sort order and enter “2000” in the locator field, press search button, then the next button to see the rest of the records with starting with “2000”, but you will see that the list has jumped back a number of records before “2000”.
To show the disappearing locator and navigation buttons, enter “2230” in to the position field.
I would like to see all the problems fixed, however the fixes that would work for me are the following for the “Starts with” locator type.
1. The locator entry text line is never hidden for this locator type.
2. The “Previous” and “First” buttons are disabled whenever there are no previous records.
3. When the sort is on columns with numbers, the filter for the locator value should remain after the initial search such that only records that exceed the locator value entered will be seen.
Thanks
Robert Kolanko
[attachment deleted by admin]