![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can anyone suggest a simple and elegant method for this? I need to do a Find, based on the user's selection of certain criteria. This can be any combination of 4 different years, i.e. 2005, 2004, 2003, 2002. I think I'm OK with actually scripting the Find (with extending the found set, etc.), but I'm struggling with actually collecting the criteria. I think I need a separate layout on which the user selects the years (but how?), and then a method of using these criteria in a find. Maybe I'm making this unnecessarily complex? Any help would be greatly appreciated! Carla Sloan |
#3
| |||
| |||
|
|
I don't think you are making it too complex. create a globalfield create a value list <YEARS ; 2005 ; 2006 ; 2007 Put the global field on a layout connect the field to the value list Make the field selection-boxes Make a button on the layout set to continue script Make a script goto search-layout goto find <halt script perform find goto layout you want so now the user start the search scirp (by a button) goes to the search-layout enters the year and click the continue button the search is performed. Be aware that these are just barebones. No error trapping etc build-in, but it should get you on the right path Ursus "Carla" <carla_sloan (AT) yahoo (DOT) co.uk> schreef in bericht news:1132314187.644293.3320 (AT) f14g2000cwb (DOT) googlegroups.com... Can anyone suggest a simple and elegant method for this? I need to do a Find, based on the user's selection of certain criteria. This can be any combination of 4 different years, i.e. 2005, 2004, 2003, 2002. I think I'm OK with actually scripting the Find (with extending the found set, etc.), but I'm struggling with actually collecting the criteria. I think I need a separate layout on which the user selects the years (but how?), and then a method of using these criteria in a find. Maybe I'm making this unnecessarily complex? Any help would be greatly appreciated! Carla Sloan |
#4
| |||
| |||
|
|
Ursus, Thanks very much for this, which certainly has set me on the right path. However, I still have a problem. The script works fine if only one year is selected. But if multiple years are selected, how do I use the contents of the global field in the Find? With multiple years selected, the field contains a line for each of the selected years. Obviously I can't just put the entire contents of that field into my search layout, so I guess I need to separate out the years, and do a separate Find on each one, extending the foun set each time. How do I separate out those years? (Sorry if this is obvious stuff.) |
#5
| |||
| |||
|
|
Can anyone suggest a simple and elegant method for this? I need to do a Find, based on the user's selection of certain criteria. This can be any combination of 4 different years, i.e. 2005, 2004, 2003, 2002. I think I'm OK with actually scripting the Find (with extending the found set, etc.), but I'm struggling with actually collecting the criteria. I think I need a separate layout on which the user selects the years (but how?), and then a method of using these criteria in a find. Maybe I'm making this unnecessarily complex? Any help would be greatly appreciated! Carla Sloan |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |