balooka Posted April 28, 2003 Posted April 28, 2003 Hi - i seem to have a problem searching for values generated by a case-calc. I have the startweek of a range and the endweek. Lets say the startweek is 4 and the endweek is 9. The maximum range is 25 weeks btw. The calc below generates a list of all weeks in this range using a simple case-function. In browse-mode it all looks fine but when entering the find mode and entering - lets say - 5 it doesnt find anything, as if the calc-results are not searchable. The calc i use is: Startweek & "
BobWeaver Posted April 28, 2003 Posted April 28, 2003 It should work. Make sure that you define the result of your calculation as text, not number.
Ugo DI LUCA Posted April 28, 2003 Posted April 28, 2003 Hi Balooka, The case calc you've defined is just acting as a Multi-key. Instead of a classic find, you should drop a global field on the layout, and trigger a Go to related record script using a relationship your global::the multikey.
Ugo DI LUCA Posted April 28, 2003 Posted April 28, 2003 Hi Balloka, Hi Bob, The problem with finds in compounds keys is that if you were entering a "2", you will end to find even the 21,22,23,24,... Unless there is a tip for that also. Bob, BTW, congratulations for your date and number ranges samples
djgogi Posted April 28, 2003 Posted April 28, 2003 Yes, there is. You can insert search string in field cKey like this: =2 =21 and hit find The above would find every record, if any, having 2 21 in field cKey Dj
cjaeger Posted April 28, 2003 Posted April 28, 2003 Unless there is a tip for that also. enter a "=2" (without the quotes) finds only 2, not 21...
djgogi Posted April 28, 2003 Posted April 28, 2003 Hi, cjaeger. We have chosen the same numbers for example. Just to add something else. You couldalso mix criteria inside field like =5 56 =123 dj
Ugo DI LUCA Posted April 28, 2003 Posted April 28, 2003 Hi DJ and Cjaeger, Thanks to both of you. Actually DJ came from nowhere (were you hiding here). BTW DJ, thanks AGAIN for the "conditional lookup tip". I was discussing with Christian some minutes ago. Actually I messed up here... I quite forgot what a Perform Find is working with relationships. As we are on this, how would you solve this, as you wil notice from the both post that they are controversial solution 1 solution2 I don't know how she finally solved that ?
djgogi Posted April 28, 2003 Posted April 28, 2003 Hi Ugo, problems with cookies I think. Do you see me now? Dj
djgogi Posted April 28, 2003 Posted April 28, 2003 Having text field alfa Rec1>alfa=2B 3C 2 2A Rec1>alfa=2 3A 2 2A for ex. Than performing find with =2B will give only rec1 The solution1 is the same thing Dj
djgogi Posted April 28, 2003 Posted April 28, 2003 Having text field alfa Rec1>alfa=2B 3C 2 2A Rec1>alfa=2 3A 2 2A for ex. Than performing find with =2B will give only rec1 The solution1 is the same thing Be aware that == with find, means exact whole string and not exact word in string Dj
Ugo DI LUCA Posted April 28, 2003 Posted April 28, 2003 Hi, Sorry I should have been more precise. Record text = CustOrder200A In order to find 200, I need to transfer it as a num. ---> Record num = CustOrder200A Searching for 200A will also lead to 200B, 200C. With all these conditions, I felt really like Perform Find was a bad idea, and rather use a global and GTRR.
cjaeger Posted April 28, 2003 Posted April 28, 2003 to get really strange findresults, try searchin a multikey with a multikey: 1. copy the return from a text field 2. type your multi-criteria into one field, first request and separate by pasted return (typing will not work) 3. hit return key STRANGE results ...
djgogi Posted April 28, 2003 Posted April 28, 2003 Well there is no need for carriege returns. Simply put space between different request and you get: AND serch in field Dj
cjaeger Posted April 29, 2003 Posted April 29, 2003 it should yield either 12000 or 2000 depending on your version of Filemaker. TexttoNum("Y") is 1, even in FM 6
djgogi Posted April 29, 2003 Posted April 29, 2003 It is 12000 in first case and 2000 in second PS I have ******* slow conection in this moment
Ugo DI LUCA Posted April 29, 2003 Posted April 29, 2003 Hey, And I finally got lost here with your Y, "year", 2000, 1 2000.... Right it's 2:00 in the morning for us in Europe, and I may need more rest than you Gurus.
cjaeger Posted April 29, 2003 Posted April 29, 2003 same with me - slow connection. Year => 1 Year 2000 => 2000 Year2000 => 2000 They must have changed the algorythm im FileMaker 6. In Dev 5.5 it is still as with yours. Still, we do have to escape every Occurence of Y, N , T, F before doing a TexttoNum (lowercase also). Checked on a File with ASCII Codes0-255.
cjaeger Posted April 29, 2003 Posted April 29, 2003 Right you are , Ugo It's 2 am for all 3 of us here.. Let's call it a day.
Recommended Posts
This topic is 7879 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