You are right ...but, is there any reason to open the same id/form twice for 
user? I can't see any situation. This should not be be possibly I think, in 
next aruser.exe ...? One of the most frequest asked questions is, why are so 
may windows opened in ars ../L ars 

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Mike White
Sent: Thursday, September 07, 2006 9:09 PM
To: arslist@ARSLIST.ORG
Subject: Re: Avoid opening the same request-id twice


I'm not sure you can prevent opening (i.e. displaying) the same Request ID
more than once without some ugly stuff - setting a flag field, which trips
the change flag, requiring the user to save a request that he/she was only
viewing, coupled with an error on display if the flag field is set.

An alternative might be to use events to close the window of an
already-displayed request.

You could build an AL with Execute On = Display, no Run If (or 'Request ID'
!= $NULL$?), If Action = Run Process PERFORM-ACTION-SEND-EVENT (ARS 6.0,
DAB, p. 710).  <target> would probably be * (i.e. all windows managed by
the client) and <event_type> could be a concatenation of $SCHEMA$ and
$Request ID$ (unique to form and record).

A second AL with an earlier Execution Order, Execute On = Event, Run If =
$EVENTTYPE$ = $SCHEMA$ + 'Request ID', If Action = Close Window (possibly
preceded by a message to let the user know what's going on).

This isn't great, either.  You really don't know what you're closing.  The
user could have searched for multiple records and happens to be positioned
on one that was later searched for/displayed in another window.  The second
display would cause the first to close.  Could be irritating.

Mike White
Office:  813-978-2192
E-mail:  [EMAIL PROTECTED]


                                                                                
                                                   
                      [EMAIL PROTECTED]                                         
                                               
                      TENFALL.COM                  To:       
arslist@ARSLIST.ORG                                                   
                      Sent by: "Action             cc:                          
                                                   
                      Request System               Subject:  Avoid opening the 
same request-id twice                               
                      discussion                                                
                                                   
                      list(ARSList)"                                            
                                                   
                      <arslist@ARSLIST.ORG>                                     
                                                   
                                                                                
                                                   
                                                                                
                                                   
                      09/07/2006 14:05                                          
                                                   
                      Please respond to                                         
                                                   
                      arslist                                                   
                                                   
                                                                                
                                                   
                                                                                
                                                   




Hi, anyone tried this successfully, to prevent user X from opening the same
request-id twice?
Use Global fields ..?
Give an error/warning(?) message if criteria is met?
Any way to switch to the already opended window?
L ars Pettersson
Vattenfall Business Services Nordic AB
Action Request System Engineer (Tabasco)
S-461 88 Trollhättan
Sweden

Phone +46 520 888 35 Mobil +46 70 608 99 95
e-mail: [EMAIL PROTECTED]

_______________________________________________________________________________

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



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

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

Reply via email to