system
June 3, 2009, 11:48am
#1
Good morning all.
I’m trying to write an instance manager for BO XI r3.
My application should get some details about an instance and display them to the user.
I’m having serious problems getting the mail addresses the report is sent to. I can’t obviously access to SI_MAIL_ADDRESSES property cause its nested.
Anyone can help me? I’m working in vb.net but examples and snippets in c# will also be apreciated.
Thank you so much for your attention
Federico.Garagiola (BOB member since 2009-02-24)
system
June 3, 2009, 11:53am
#2
Welcome to B:bob:B !
Have a look at this utility:
Author: Rachidb
Author notes: This macro generates information about instances finished/running/pending. It accepts a date range. If start date is omitted it shows instances statuses for a given day starting 12AM until time of run. End date is also option and will default to current date/time.
Rows returned is limited to 64000 rows. But please be careful not to run for a big date range as it may overload your CMS.
Platform: Excel 2003
Version: Initial release 1.0
Feel free to give feedback …
You can get some ideas for your work from its source code.
Marek Chladny (BOB member since 2003-11-27)
system
June 3, 2009, 11:59am
#3
Thank you,
I had read this source a few hours ago.
It’s a great application, but it does nothing more than mine. I can get all of these details without effort…
The details i need and i cant get are just the mail addresses
[UPDATE]
I’m reading the v2 and perhaps i found something interesting
Federico.Garagiola (BOB member since 2009-02-24)
system
June 3, 2009, 12:51pm
#4
Which SDK are you using?
skeeter (BOB member since 2008-05-22)
system
June 3, 2009, 1:15pm
#5
R3
Federico.Garagiola (BOB member since 2009-02-24)
system
June 3, 2009, 1:35pm
#6
[quote:2e7dfc13ea=“Federico.Garagiola”]I’m reading the v2 and perhaps i found something interesting
[/quote]
There is even v3 of the utility
Marek Chladny (BOB member since 2003-11-27)
system
June 3, 2009, 1:37pm
#7
Sorry, Should have been more specific. Are you using, .NET or Java?
skeeter (BOB member since 2008-05-22)
system
June 3, 2009, 1:49pm
#8
There is even v3 of the utility
[/quote]
V2 is enough
Im working in .NET
I think I set up everything right, but i’m still sperimenting an error.
in this line:
iooOggetto.SchedulingInfo.Destination.CopyToPlugin(pinDestPlugin)
where iooOggetto is the infostore object
im getting an unhandled exception like “new method get_Destinations() and older method get_Destination() cannot be used together. Try using the newer one”
My exception message is in Italian, i tried translating, but it probably wont be exact.
Someone have idea how to fix this up?
[EDIT]
The problem seems to be located in the “assignment” part. I tried splitting this line in two and this still rises the exception, so the problem might be here:
Dim destDestination As CrystalDecisions.Enterprise.Destination = iooOggetto.SchedulingInfo.Destination
[SOLVED]
I tried replacing each occurrence of
iooOggetto.SchedulingInfo.Destination
with
iooOggetto.SchedulingInfo.Destinations.Item(1)
And everything works as charm.
Federico.Garagiola (BOB member since 2009-02-24)