Himanshu, others.. 

Perhaps I missed something or haven't had enough coffee, but.. 

Why not just: 

(($OPERATION$ = "CREATE")) OR (($OPERATION$ = $QUERY$) AND ('Case ID+' =
$NULL$))

>From Matt's previous post, the reason for the other criteria is based on
"default values" which may or may not exist. So this will work for either
without depending on values that may default or may be cleared with Ctrl-E,
etc. 

-E


-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Kohli, Himanshu
Sent: Friday, September 15, 2006 9:43 AM
To: [email protected]
Subject: Re: Two different Condition 's in Run If

Hi Fred 
 
No even what you have suggested this time didn't worked  :(
 
1) First options of yours fail for both the scenario's i.e. CREATE & QUERY
2) Second option i.e. by making a swap by using a NOT works only for the
first condition ( i.e. Query or Create ..which ever is mentioned before the
OR )
 
(NOT (($OPERATION$ = "CREATE") AND ('Case ID+' = "HD")) OR(($OPERATION$ =
"QUERY") AND ('Case ID+' = $NULL$)))  ==>  Works for CREATE
 
(NOT (($OPERATION$ = "QUERY") AND ('Case ID+' = $NULL$)) OR (($OPERATION$ =
"CREATE") AND ('Case ID+' = "HD")))  ==>  Works for QUERY
 
 
Looking forward to crack this simple :( stuff with your Help & Info
 
Himanshu 
 

________________________________

From: Action Request System discussion list(ARSList) on behalf of Grooms,
Frederick W
Sent: Thu 9/14/2006 7:25 PM
To: [email protected]
Subject: Re: Two different Condition 's in Run If



You want the error for these 2 conditions (and the error is in the else).
 1) On Query when he has no Case Id selected or searched (i.e. Case ID =
Null )
 2) On Create when his Case ID has a default value ( Case ID = HD)

So those conditions would be:
 1. ($OPERATION$ = "QUERY") AND ('Case ID' = $NULL$)  2. ($OPERATION$ =
"CREATE") AND ('Case ID' = "HD")

So putting them together would be (This will give you the error in the
If):
 (($OPERATION$ = "QUERY") AND ('Case ID' = $NULL$)) OR  (($OPERATION$ =
"CREATE") AND ('Case ID' = "HD"))

You can either swap the actions or NOT the entire criteria:
 (NOT (($OPERATION$ = "QUERY") AND ('Case ID' = $NULL$))
  OR (($OPERATION$ = "CREATE") AND ('Case ID' = "HD")))

Fred


-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Kohli, Himanshu
Sent: Thursday, September 14, 2006 3:11 PM
To: [email protected]
Subject: Re: Two different Condition 's in Run If

James

It so simple but making me really crazy about it ...

ok let me try to explain you briefly

I want to block a user action on a Button Click to open a new Window and to
include both the condition's in a single ACTL's Run If

1) On Query when he has no Case Id selected or searched (i.e. Case ID = Null
)
2) On Create when his Case ID has a default value ( Case ID = HD)

Now I am trying that

Run If      ==>  ('Case ID' != $NULL$)  OR ('Case ID' != "HD")

If  Action ==>  Open the Window

Else If    ==>  Error Msg


Result : If I use only one of each condition in the Run If ..it works as
desired but fails when I try to use both with "OR"

I beleive its somthing to relate with the execution of an ACTL at two
different Operation's CREATE & QUERY on Help Desk form.

I am having

ARS 6.3 , Windows 2k with MS SQL 2K

I hope you will be able to pull me out of this ...

Thanks & Regards
Himanshu Kohli
Remedy Developer / Administrator

PS : It looks so simple but has made me sound like ....

________________________________

From: Action Request System discussion list(ARSList) on behalf of McKenzie,
James J C-E LCMC HQISEC/L3
Sent: Thu 9/14/2006 3:14 PM
To: [email protected]
Subject: Re: Two different Condition 's in Run If

Himanshu:
 
What EXACTLY are you trying to do?  Your Run-if qualification is leading me
to ask the question.
 
Thank you for changing the Subject:
 
James McKenzie
L-3 GSI

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Kohli, Himanshu
Sent: Thursday, September 14, 2006 12:06 PM
To: [email protected]
Subject: Re: Two different Condition 's in Run If

Eric
 
No even this is not working ...
 
Frederick
 
My ACTL executes on a Button on Help Desk form and runs for both CREATE &
QUERY operations but only Status field is a Required Field so idealy this
should not make my Run If condition fail..


Once again If I am using just one of the condition without using 'OR'
all works as desired...
 
plz help me to get out of this puzzel...
 
List : plz excuse me for not using a new subject in my initial post .....
that was a mistake :(
 
Thanks & Regards
Himanshu Kohli
Remedy Developer / Administrator

________________________________

From: Eric Roys [mailto:[EMAIL PROTECTED]
Sent: Thu 9/14/2006 11:21 AM
To: Kohli, Himanshu
Subject: RE: Mid-Tier 7.0 Installation Problem



 Try:
(( 'Status'  != "New")     AND   ('Case ID+' !=  "HD"  ))   OR
(('Status'
!= $NULL$)  AND ('Case ID+' != $NULL$))

The additional parenthesis are needed to distinguish one OR from the other.


Eric Roys
Sr. Software Engineer
Verizon Business
Email:  [EMAIL PROTECTED]

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Kohli, Himanshu
Sent: Thursday, September 14, 2006 10:15 AM
To: [email protected]
Subject: Re: Mid-Tier 7.0 Installation Problem

Hey List

I know its going to be very simple but now since I have tried all my
combination (i.e. using braces ) I would like to seek your help.

I want my ACTL to execute its 'Else Action' for the below mentioned 'Run If
' condition

( 'Status'  != "New"     AND   'Case ID+' !=  "HD"  )   OR  ('Status'
!=
$NULL$  AND 'Case ID+' != $NULL$)

every things works as desired when I use just one of them but with an OR
when try to have both the condition in my Run If ... I fail

Note :  I do not want to make use of  any other parameter other than the
Status & 'Case ID

Thanks for your quick help

Himanshu Kohli

Remedy Developer / Administrator

____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org
<http://www.wwrug.org/> 



____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

______________________________________________________________________
This e-mail has been scanned by Verizon Managed Email Content Service, using
SkepticT technology powered by MessageLabs. For more information on Verizon
Managed Email Content Service, visit http://www.verizonbusiness.com.
______________________________________________________________________


______________________________________________________________________
This e-mail has been scanned by Verizon Managed Email Content Service, using 
Skeptic™ technology powered by MessageLabs. For more information on Verizon 
Managed Email Content Service, visit http://www.verizonbusiness.com.
______________________________________________________________________

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

Reply via email to