Hi Thom, So I built the script.. and it keeps getting stuck... what am I missing here?
Sub Edit_Action()
Enter "40"
Do Until At("Transfer To/From@1,1&@15,41")
If At("Error@1,1&@14,34") Then
Step = Error
End If
Loop
Thank you
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, June 12, 2013 1:36 PM
To: [email protected]
Subject: RE:[talkbws] #safe# - If then statement
There's not a "one command" answer here so I'll describe the concepts.
Meditech works very well with the Rules format in BWS. Makes handling something
like this very easy.
Think of a step as "here are screen conditions that <could> happen" - and for
each of them, what should I do.
To handle the below, just add a rule for this particular screen condition and
do an Enter - have this in the same step for whatever rule caused the below.
Likely you'll also want a goto on that rule to transition to a step that backs
out to the anchor screen, then marks the record as an error.
Now, if you're using straight code:
Pause "condition"
Enter "Text"
Then you need to identify the exact typing command that <could> cause the error:
Guessing reading the screen it's something like:
Pause "@ whatever the cursor position of the Account field is"
Enter Account Number
Then you need to add something like.
Do Until At("Some good cursor position - e.g where it normally goes if you
don't see this error"
If at("Error@1,1") then
Enter
'How you handle what to do next
is up to you////
End if
stable
Loop
'Continue entering stuff here.
Hope this helps!
Thom C. Blackwell, VP Technical Services
Boston Software Systems, Inc.
Phone: 866.653.5105 x807
Mobile: 508.423.8463
Fax: 508.319.3015
www.bostonsoftwaresystems.com<http://www.bostonsoftwaresystems.com/>
Healthcare Automation - Revolutionizing How You Work.
The information contained in this message may be confidential and legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is
strictly prohibited and may be unlawful. If you are not the intended recipient,
please contact the sender by return e-mail and destroy all copies of the
original message.
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, June 12, 2013 4:23 PM
To: Talk
Subject: [talkbws] #safe# - If then statement
I am currently working on a script for Meditech, and I have accounts that
require two different steps in order to get to the next one. How do I write in
Boston that if a certain screen appears to click ok and move on to the next
step?
For example: On some accounts the error will appear but on others it will not,
so I have certain steps to follow if the error does not appear.
[cid:[email protected]]
Jesus Lopez
System/Financial Analyst
SMU Department
Dignity Health
3033 N. 3rd Avenue
Phoenix, AZ 85013
602.307.2754
[cid:[email protected]]
Caution: The information contained in this email may be privileged and
confidential and protected from disclosure. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this email is strictly prohibited. If you have received this email
in error, kindly notify the sender immediately by reply email and then delete
this email. Thank you.
--- To post a message to this list, send mail to:
[email protected]<mailto:[email protected]> You are currently subscribed as:
[email protected]<mailto:[email protected]> Unsubscribe in
the customer center on our website:
http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx
--- To post a message to this list, send mail to: [email protected] You are
currently subscribed as: [email protected] Unsubscribe in the
customer center on our website:
http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx
--- To post a message to this list, send mail to: [email protected] You are
currently subscribed as: [email protected] Unsubscribe in the
customer center on our website:
http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx<<inline: image001.jpg>>
<<inline: image002.jpg>>
