Re: Resolved: Require a search field to have more than 1 character befo re it sear ches

2007-03-14 Thread Jarl Grøneng

What if the user type in %%?

--
Jarl

On 3/14/07, Randy Simon <[EMAIL PROTECTED]> wrote:

**

Thanks for all the ideas everyone, I can run with this now.

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Rob Dudley
Sent: Wednesday, March 14, 2007 9:56 AM
To: arslist@ARSLIST.ORG
Subject: Re: Require a search field to have more than 1 character before it
sear ches

**
Randy -

The way this could be done is to create 2 AL's and 1 zTmp field:

Create a hidden zTmpField (Character) on the form.

1st AL -
Execute on Button Click (Search button I suppose)
RunIF: (none)
Action - Set Fields
Set zTmpField = LENGTHC($SearchField$)

2nd AL -
Execute on Button Click (Search button)
RunIF: 'zTmpField' < X (where X=your number count)
Action - Message
Error: "You must enter X characters in order to search" (or something like
that!)



On 3/14/07, Randy Simon <[EMAIL PROTECTED]> wrote:
> **
>
>
>
> I have a Character field on one of the Console forms.
>
> This searches for a unique customer number.
>
> Is there a way I can require at least 2 characters or more be entered
before it searches?
>
>
>
> CSS 5.0
>
> ARS 6.01
>
> Win 2000
>
> SQL 2000
>
>
>
> Randy Simon
>
> Remedy Admin
>
> Online Resources Corporation
>
> 4795 Meadow Wood Lane
>
> Suite 300
>
> Chantilly , VA 20251
>
> 703.653.2170
>
> 703.653.2179 fax
>
> www.orcc.com
>
> Nasdaq: ORCC
>
>
>
>
>
>
>

>
> STATEMENT OF CONFIDENTIALITY:
>
>
The information contained in this message or any attachments to this message 
are intended only for the person(s) or entity to which it is addressed and may 
contain confidential and/or privileged material as well as being protected from 
disclosure.
>
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is strictly prohibited. If you received this in error, 
please contact us immediately and delete the material from any computer.
>
> Thank You.__20060125___This posting
was submitted with HTML in it___

__20060125___This posting was submitted
with HTML in it___





 STATEMENT OF CONFIDENTIALITY:

The information contained in this message or any attachments to this message 
are intended only for the person(s) or entity to which it is addressed and may 
contain confidential and/or privileged material as well as being protected from 
disclosure.
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is strictly prohibited. If you received this in error, 
please contact us immediately and delete the material from any computer.

 Thank You. __20060125___This posting
was submitted with HTML in it___


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"


Resolved: Require a search field to have more than 1 character befo re it sear ches

2007-03-14 Thread Randy Simon
Thanks for all the ideas everyone, I can run with this now.

-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
Behalf Of Rob Dudley
Sent: Wednesday, March 14, 2007 9:56 AM
To: arslist@ARSLIST.ORG
Subject: Re: Require a search field to have more than 1 character before it 
sear ches


** 
Randy -
 
The way this could be done is to create 2 AL's and 1 zTmp field:
 
Create a hidden zTmpField (Character) on the form.
 
1st AL - 
Execute on Button Click (Search button I suppose)
RunIF: (none)
Action - Set Fields
Set zTmpField = LENGTHC($SearchField$)
 
2nd AL -
Execute on Button Click (Search button)
RunIF: 'zTmpField' < X (where X=your number count)
Action - Message
Error: "You must enter X characters in order to search" (or something like 
that!)


 
On 3/14/07, Randy Simon < [EMAIL PROTECTED]> wrote: 

** 

I have a Character field on one of the Console forms.

This searches for a unique customer number. 

Is there a way I can require at least 2 characters or more be entered before it 
searches?

 

CSS 5.0

ARS 6.01

Win 2000

SQL 2000

 

Randy Simon

Remedy Admin

Online Resources Corporation

4795 Meadow Wood Lane

Suite 300

Chantilly , VA 20251

703.653.2170

703.653.2179 fax

www.orcc.com   

Nasdaq: ORCC

 







STATEMENT OF CONFIDENTIALITY:

The information contained in this message or any attachments to this message 
are intended only for the person(s) or entity to which it is addressed and may 
contain confidential and/or privileged material as well as being protected from 
disclosure.  
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is strictly prohibited. If you received this in error, 
please contact us immediately and delete the material from any computer.  

Thank You.  
__20060125___This posting was submitted with HTML in it___


__20060125___This posting was submitted with HTML in it___ 




STATEMENT OF CONFIDENTIALITY:

The information contained in this message or any attachments to this message 
are intended only for the person(s) or entity to which it is addressed and may 
contain confidential and/or privileged material as well as being protected from 
disclosure. 
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is strictly prohibited. If you received this in error, 
please contact us immediately and delete the material from any computer. 

Thank You.


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"