Himanshu:
Maybe I can make this simple. You were checking if a condition(s) did NOT exist. Thus, if the condition existed, you wanted a message as an ELSE condition. I would do the reverse and make the condition when I seen the message and the else condition would open the window, and you would have only one Active Link (you almost did this below with an AL that fired on Seq # 1 with no condition.) It is very hard to think in a NOT state for most people and that is why there are very few ELSE condition actions.
James McKenzie
L-3 GSI
-----Original Message-----
From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Kohli, Himanshu
Sent: Friday, September 15, 2006 8:51 AM
To: [email protected]
Subject: Re: Two different Condition 's in Run If
Oh yeah at last this worked as desired .... yup with an extra ' ( ' made things look good for both the condition's
Thanks a lot Fred , James & Carey & others too
Now I can say I will have a nice weekend :) .... as my intention to save system from creating two ACTL's has been succesful
even though I am still trying to guess why without using a 'NOT' clause I am having problem
Okay for all, the other way it worked was by creating two diff ACTL's and only making use of If Action in both of them ( so no messing up with Else If )
1) IMF:HPD:OpenLandownForm02 ==> Execution Order = 0 , Execute On = Button
Run IF = (($OPERATION$ = "CREATE" ) AND ( 'Case ID+' = "HD" )) OR (($OPERATION$ = "QUERY" ) AND ( 'Case ID+' = $NULL$ ))
If Action = Msg
2) IMF:HPD:OpenLandownForm03 ==> Execution Order = 1 , Execute On = Button
Run IF = No condition ...as I need to execute this all the time other than my above covered 2 condition's
If Action = Open Window
So this was a another simple way in which I was able to get my desired Result but I was required to have 2 ACTL's ,,,which was not making me feel good
Wishing you all a Wonderful Weekend ...
Himanshu Kohli
Remedy Developer / Administrator
PS : Just to share that from my persoal exp till date ... I found my solutions for my Problems more quickly with you all in the AR List than from the Support
________________________________
From: Action Request System discussion list(ARSList) on behalf of Grooms, Frederick W
Sent: Fri 9/15/2006 10:58 AM
To: [email protected]
Subject: Re: Two different Condition 's in Run If
It looks like it's missing some parenthesis
(NOT ((($OPERATION$ = "CREATE") AND ('Case ID+' = "HD")) OR
(($OPERATION$ = "QUERY") AND ('Case ID+' = $NULL$))))
Without an extra ( after the NOT and ) at the end, the NOT is only working on the 1st condition.
I should have layed it out in my normal method, sorry about that...
(NOT (
(($OPERATION$ = "CREATE") AND ('Case ID+' = "HD"))
OR
(($OPERATION$ = "QUERY") AND ('Case ID+' = $NULL$))
)
)
Fred
-----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/> <http://www.wwrug.org/>
________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org <http://www.wwrug.org/>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org <http://www.wwrug.org/>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

