Greetings,
Glad you pointed this out - I will have my example below added to the
documentation and website.
Anyhow, to make a long story short, what's going on is a dropdown (File
name, file type etc are) is opening - that's the message you're seeing.
Why? Because dropdowns always have button - the arrow to the right of
the text - that is programmatically named Open.
This worked for me to filter out the dropdown's open and just click the
open button you actually want.
SmartDialog("Open", "File name:<Editable text>").Value = "whatever"
SmartDialog("Open", "Open<Push button>#focusable default#").Click
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
Sign up for my weekly webinar!
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.
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, September 29, 2009 6:17 PM
To: Talk
Subject: [talkbws] Re: Tech tip - Save As dialog / Meditech WorkStation
Connections dialog
I am writing a script in Meditech Magic in the GL module. Option 12.
Read Batches From PC File when selected opens a Windows file Open
dialog. I am using the following 2 lines:
w.SmartDialog("Open", "File name:<Editable text>").Value = _reportPath &
theFile.Name
w.SmartDialog("Open", "Open<Push button>").Click()
The first line works fine, inserting the correct file name into the file
name box. The second line does not work. A message flashes on the
dialog box but it happens too quick to tell what it is. Does anyone
have any idea why this isn't working or better yet how to make it work?
Thanks!
--
Bill Palmer
Financial Systems Analyst
Mid-Columbia Medical Center
541-296-7417
>>> On 3/4/2009 at 2:14 PM, in message
<[email protected]> wrote:
> Greetings,
>
> For those of you running Boston WorkStation Version 9.8 rev 741.
>
>
>
> And who have scripts that interact with a Save As dialog box (Web
> scripts that have to download files, Meditech Magic running reports.
> Really any script that sees a Save As dialog other than a Windows
> connection - because there you won't need this. Or if you have to
choose
> a connection in the Meditech Workstation Connections dialog (Magic).
>
>
>
> Check this out:
>
>
http://www.bostonworkstation.com/customer_center/script_center/script_de
> tails.aspx?id=372&cat=10
>
>
>
> I think you might like what you find J...
>
>
>
> Regards,
>
> Thom
>
>
>
>
>
> Thom C. Blackwell
>
> Product Manager
>
> Boston Software Systems
>
> (866) 653-5105 ex 807
>
> www.bossoft.com <http://www.bossoft.com/>
>
> Sign up for my weekly webinar!
> <http://www.bostonworkstation.com/customer_center/special_events.aspx>
>
>
>
> 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.
>
>
>
>
>
> ---
> 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 message (including attachments)
is covered by the Electronic Communications Privacy Act, 18 U.S.C.
2510-2521, and is intended only for the person or entity to which it
is addressed and may contain confidential and/or privileged material.
Any unauthorized review, use, disclosure, dissemination, copying,
forwarding or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message. If you are the intended recipient but
do not wish to receive communication through this medium, please
advise the sender immediately.
---
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