Proprius Posted June 6, 2008 Posted June 6, 2008 Hi everyone, I have a portal with around 2000 records in it, sorted alphabetically . What I'd like to do is put a search field above the portal where I can enter a few letters from the name of one of the records and have the portal only show records that start with those letters. Like if a record I wanted to find was called "Anderson", I would just enter "and" and the portal would only show records that started with that. This would let me narrow the portal down and quickly find the record I'm looking for. I saw another post that suggested using a global field as the search field and using that in a relationship to the name of the record. However, I think that would only work if the user entered the entire name of the record, which can be quite long. Any ideas would be greatly appreciated!
mr_vodka Posted June 6, 2008 Posted June 6, 2008 Here is a quick and dirty way to do it. It has some limitations but it should get you what you are looking for... Use a global field called gFilter for your user to enter in data. Create a calc such as the following (cFilter): Case ( IsEmpty ( gFilter ); "0¶zzzzz"; gFilter & ¶ & gFilter & "zzzzz" ) Then you can make your relationship keyed as such: cFilter ≥ Name cFilter ≤ Name This will allow you to do filter portal.
Recommended Posts
This topic is 6068 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