A possible issue with this script is that the If At("@@ ERROR") will be
tested immediately after the Key "@7", probably skip it no matter what.  I'd
suggest something more like

 

 

Key "@7"

Do

     If At("** ERROR") Then

           .stuff

     End If

     If At("other errors" Then

           .stuff

     End If

     Wait  'keeps the loop from spinning up and using all resources.

Loop Until At("the usual condition with no errors")

 

This hangs around in the Loop until all errors are handled.  Our Rules based
scripting handles this kind of situation in a much more straightforward
manner.

 

Rich McNeil

Boston Software Systems

866 653 5105 x 813

www.bostonworkstation.com <http://www.bostonworkstation.com/>  

See us at MUSE booth 318

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thompson, Mary
Sent: Monday, April 23, 2007 12:54 PM
To: [email protected]
Subject: RE: [Talk] Enter Loop?

 

Do Until At("ACCOUNT:")

Enter

Stable 0.2

Loop

Pause "ACCOUNT:"

Enter strACCT

Key "@7"

            If at ("** ERROR ") then

                        Pause "** ERROR"

                        Key "{f4}"

                        Pause "ORDER TYPE:"

              Key "{f10}" (or whatever will delete your line)

              Enter "N"

              Pause "IS THIS CORRECT?(Y/N):"

              Enter "Y"

              Pause "LOCATION:"

              Key "@7"

       End if

 

Electronic email from Mary Thompson,  <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED] Children's Mercy Hospitals and Clinics. This
communication is intended only for the use of the addressee. It may contain
information, which is privileged or confidential under applicable law. If
you are not the intended recipient or the agent of the recipient, you are
hereby notified that any dissemination, copy of disclosure of this
communication is strictly prohibited. If you have received this
communication in error, please immediately notify Children's Mercy Hospitals
and Clinics at 816-234-3940 or via return internal electronic email at
<mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED] and expunge this
communication without making any copies. Thank you for your cooperation.

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodgers Chase
Sent: Monday, April 23, 2007 11:45 AM
To: [email protected]
Subject: RE: [Talk] Enter Loop?

 

What about an "IF" loop?

When I enter on a field and then try to file the record with an F7, I
sometimes get an error because another field as an invalid code.

For example:

 

Do Until At("ACCOUNT:")

Enter

Stable 0.2

Loop

Pause "ACCOUNT:"

Enter strACCT

Key "@7"

 

When "@7" is keyed, I sometimes get the following error:

** ERROR 594 ** VENDOR ORDER TYPE IS NOT SET. PRESS F4 KEY_

 

Then I have to hit F4 and I end up in the "ORDER TYPE:" field and I have to
change it to a "N".

Then a question "IS THIS CORRECT?(Y/N):" pops up and I have to enter "Y".

Then it brings me to the "LOCATION:" field where I can then hit F7 and then
hit play button in the script window and continue the running the script
(until I hit another error just like the above).

 

Is there some IF, THEN, LOOP code that would help me in this situation?

 

Many thanks for any feedback!

Chase Rodgers 
Financial Reporting Manager 
Medical Center of Plano 
(214-473-7490 
/[EMAIL PROTECTED] 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thom C. Blackwell
Sent: Wednesday, April 18, 2007 12:50 PM
To: [email protected]
Subject: RE: [Talk] Enter Loop?

 

Greetings,

The <best> way to do this is to have Rules for each time you hit an enter
key - so if it takes 5 enters to get to the prompt - you've got 5 rules to
get there. This is the most reliable over time since if something changes in
the application, or if something "weird" happens, the script will detect
this.

 

A cheater way is to use:

 

Do until At("ENTER:")

Enter

Stable

Loop

But as you can see, if something happens before it gets to the ENTER field,
this won't know about it!

Regards,

Thom

 

Thom C. Blackwell

Product Manager

Boston Software Systems

(866) 653-5105 ex 807

www.bossoft.com

 

LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.

 

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodgers Chase
Sent: Wednesday, April 18, 2007 1:42 PM
To: [email protected]
Subject: [Talk] Enter Loop?

 

I'm using Boston to script updates in SMART via RUMBA (HLLAPI connection).

 

Is there a way to write a script that will "ENTER" OR "@E" until it reaches
the a certain field (e.g. "ENTER:" field)?

 

I thank you ahead of time for any feedback!

Thanks,

Chase Rodgers 
Financial Reporting Manager 
Medical Center of Plano 
(214-473-7490 
/[EMAIL PROTECTED] 

Reply via email to