I use an intermediate step.  After doing "this" then Step = the next step, this 
step decides what to do next.  If the box pops up direct bws to the step to 
handle that box.  If what you want to happen next does, direct BWS to the 
correct step.  This intermediate step would be like your If/else/ifelse step.

Step Account    'Enter Account Number... go to  Step check_result

Step Check_Result
        if Not valid @x,y ...Go to step Not Valid  'pop up box, account not 
valid
        if Valid ...Go to Step Account is valid 'account Valid
Step Not Valid
'do something here

Step Valid
'do something here





Brian Bennett
Affinity Health Systems
Systems Analyst
PBS\Clinic Billing
(920)628-9055
[email protected]



________________________________
From: [email protected] [mailto:[email protected]]
Sent: Monday, August 03, 2009 11:27 AM
To: [email protected]
Subject: [talkbws] Conditional Logic Like IF then ELSE/ELSEIF


Hi All,

Looking for some help on conditional handling on Steps in BWS. here is the 
scenario.

I have to key in some info into Meditech 4.x NUI.
There can be a situation where the script keys in an account number a 'Pop up' 
window t appear "Not a valid acct #" , so in this case I have to log this 
account number to a file or something and get out of the 'Pop-up' and go to the 
next account.
Pseudo Code:
IF Cursor at AcctNum field then
        Enter AcctNum
        IF Cursor at Error Pop-up then
                Goto Some Step to log this Acct Num
                Enter Key strokes to go back to Acct Num field

        ELSE
                Key other values on the screen.
        END IF
END IF.

Partial of BWS STEP and CONDITIONS
STEP "Key Acct Num"
        Condition
                "Title and some scr title at 1.1and Cursor at x,y ...Enter 
"12345"
                "Title Error at 1,1 and Cursor at x,y....Enter "{some key"}     
           'To get out of the pop-up.

I believe this can be done in BWS using the STEP and CONDITION logic, any 
pointers or suggestions are helpful.

Appreciate your time and thoughts.

thank you

Ranjit M Bendapudi
Meditech Service Center
CSC

5209 Linbar Dr., Nashville, TN 37211
P: +1-615.662-7775 |direct: +1- 615.493.9070 |[email protected] | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose. 
--- 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.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
________________________________
CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may 
contain confidential and privileged information for the use of the designated 
recipient(s) named above. If you are not the intended recipient, you are hereby 
notified that you have received this communication in error and that any 
review, disclosure, dissemination, distribution or copying of it or its 
contents is prohibited. If you have received this communication in error, 
please notify the sender at the electronic mail address noted above and destroy 
all copies of this communication and any attachments. Thank you for your 
cooperation.


---
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.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx

Reply via email to