Yes Heather, at the end of the file, usually after the RuleShell subroutine. BWS will not allow code additions in the rules subroutine, and it would not be a good practice anyway.
John Taylor Systems Analyst, Information Systems | Augusta Health Office: (540)332-4882 | www.augustahealth.com From: [email protected] [mailto:[email protected]] Sent: Thursday, February 17, 2011 10:05 AM To: [email protected] Subject: RE: [talkbws] vb in rules based scripting Hi John, Are you creating your Public Function sub at the very end of the VB code in the VBA editor? I’ve just never understood where you go in and add the VB code to be referenced within your actions… Thanks! ------------------------------------------------ Heather Castillo HPMIN Applications Analyst Hays Medical Center 785.623.5084 office 785.623.5594 fax [email protected] <mailto:[email protected]> ________________________________ From: [email protected] [mailto:[email protected]] Sent: Wednesday, February 16, 2011 1:03 PM To: [email protected] Subject: RE: [talkbws] vb in rules based scripting What type of examples are you looking for Sarah? Here is an example for a file download… Step Print Destination Download Title/condition, etc. Actions: Key "@_clickoffsetx:12" key "@_click:Target" key "^{End}" key "{BS}" key GetFileName("Out") key "@_click:OK" Public Function GetFileName(pType As String) If Trim(LCase(pType)) = "out" Then GetFileName = "\\some path\some file name <file:///\\some%20path\some%20file%20name> " & Format(Now, "MMDDYY") & ".txt" Else ' update GetFileName = "\\some path\some other file name <file:///\\some%20path\some%20other%20file%20name> " & Format(Now, "MMDDYY") & ".txt" End If End Function John Taylor Systems Analyst, Information Systems | Augusta Health Office: (540)332-4882 | www.augustahealth.com From: [email protected] [mailto:[email protected]] Sent: Wednesday, February 16, 2011 1:55 PM To: [email protected] Subject: [talkbws] vb in rules based scripting Hi, Would someone be willing to share a rules based script (preferably for Meditech C/S 5.6x) that incorporates visual basic in the script? Your help would be greatly appreciated! Sarah Koenigsman HPMIN Applications Analyst [email protected] 785.623.5023 --- 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 --- 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 --- 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 --- 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
