If you are using alpha characters or searching alpha characters, you
need to convert everything to upppercase or lowercase before searching.
Here is an example that is working:
Edit Field Attributes: xx.select
VAL=IF{c.xx.srch.field^SRCH,
VAL=L(@urn,SRCH)'=L(@urn) "Y";L(@title,SRCH)'=L(@title) "Y";
VAL=(c.xx.srch.field~$U.TO.L)^SRCH,(@urn~$U.TO.L)^URN,
VAL=L(URN,SRCH)'=L(URN) "Y";
VAL=(@title~$U.TO.L)^TTL,L(TTL,SRCH)'=L(TTL) "Y";"N"}
Hope this helps,
Donald F. Stewart
Sr. Programmer Analyst
Upson Regional Medical Center
801 W. Gordon St.
Thomaston, GA 30286
(706)647-8111 x1696
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]
<BLOCKED::mailto:[EMAIL PROTECTED]> >
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Wegenast, Steve
Sent: Tuesday, March 13, 2007 12:01 PM
To: L-List
Subject: [MEDITECH-L] String Locator function inconsistent
Hi L'ers,
I created a report to find a text string (dial string. mnemonic or
company) in the MIS recipient dictionary. I'm using the Locator
function in a computed field as a select as follows:
xx.sel
DAT=INT
JFY=R
LEN=1
VAL=IF{L(@mnemonic,/FAXNO)'=L(@mnemonic) 1;
VAL=L(@company,/FAXNO)'=L(@company) 1;
VAL=L(@dial.string,/FAXNO)'=L(@dial.string) 1;""}
The problem is that it's inconsistent in what it returns. For example,
I'll enter part of a mnemonic that I know is in the dict but it won't
find anything. But I can enter another partial string of a dictionary
record and it will find that.
Would anyone see anything wrong with the attribute above or know why
this would be inconsistent?
Thanks, Steve
Steve Wegenast <><
Systems Analyst - Mcp, Net+, A+
Saint Francis Medical Center
Grand Island, NE
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
308-398-5576
I love technology, always and forever...
Jesus Christ is life. The rest is just details!
--
This message has been scanned by the Securiant SpiderISA for spam and
viruses, and is believed to be safe and clean.
Securiant SpiderISA <http://www.securiant.com/>
--
This message has been scanned by the Securiant SpiderISA for spam and viruses,
and is believed to be safe and clean.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.
To check the status of the meditech-l, visit MTUsers.NET.
For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l