Jump to content
Sign in to follow this  
Marc

Error 285 when using DDE

Recommended Posts

Marc

Hi,

I am trying to automate several things in Peregrine Service Center 6.1.5.0 using my beloved AutoIt.

Works like a blast, but every time I try to read a value of a field which is simply empty, I get an error message saying "Error number 285 - other application does not execute DDE Method or -Operation".

Trying to read another ticket (where the desired value has already been set) works fine.

Tried to avoid the problem by using an COM error handler, but to no avail. The error occurs before the error can be caught.

Since I am trying to create a warning sign if a specific field is empty, it is quite important for me to avoid this.

Are there any chances to prevent the error instead of checking the pixel colors (to chech whether the value is set or not)?

Best regards,

Marc


It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites
RDSchaefer

Peregrine Service Center

Marc,

One of my clients uses Service Center also (BTW I can't stand it) but I have been unable to automate it other then sending keystrokes. Would you please explain how you do it? Thanks.

Ralph

Share this post


Link to post
Share on other sites
Marc

Hi, I am sorry for the very very very late answer...

After one week without any answer I used the workaround of analyzing the colors and forgot this tread. :P

Since I've been fired from my old job, this problem does not concern me anymore.

Anyway, to access the Peregrine Service Center, I use the following method:

$oSC = ObjCreate("ServiceCenter.Application") ; get the object handle

$oSC.SetValue("by.check.sla2", "0") ; First Solution Rate unchecked
$oSC.SetValue("by.contact.language", "German") ; set german language for the customer
$email = $oSC.GetValue("contact.email")
$oSC.SetValue("severity", "5 - Service Request") 
$oSC.SetValue("contact.name", "xxx")
$x = $oSC.GetValue("action/action") ; get text of actions
$oSC.SetValue("brief.description", $x)
$oSC.SetValue("by.impairment", "No")
$oSC.SetValue("site.category", "Single User")
$oSC.SetValue("severity.code", "5 - Service Request")
$oSC.SetValue("priority.code", "5")

To get the names of the different values, you can set Service Center into the debug mode (using the little bug icon in the upper left corner) and set options to display a window frame on the right side, containing the properties. There you can find all names and data types.

Hope this helps someone :unsure:


It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×