That would be a nice to have... But the way the events are generated
internally is that
the tag just runs the wugrpt.exe application and then displays the results
generated by
that application. But.... this would take a bit of effort, but you could
use JavaScript
to retrieve the results of the EVENT_REPORT tag and respond accordingly....
for example:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript">
var sReportInfo = <%EVENT_REPORT% (start-time, end-time, type)>
//psuedo-code
if ( sReportInfo.find("Report failed")
display ("My Special Error Code")
else
display sReportInfo //because this is good data
</SCRIPT>
This is a possible work around for the issue. Actually, using
clientside javascript in the templates is a great way to expand
the capabilities of the WUG template scripting language...
I hope that my psuedo-code is understandable... let me know
if its incoherent
Good luck
~Brian
----- Original Message -----
From: "Andrew Shwiff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 10:49 AM
Subject: RE: [WhatsUp Forum] ( %EVENT_REPORT% )
> Brian,
> The problem is that if there were no events for the date
> range, you get a nasty one-liner in your .HTM file,
> "Report failed: Log contains no events for this map!",
> which I'd like to avoid, or at least be able to provide
> my own message. It would be nice if you could do
> something like
> <%EVENT_REPORT% yada, yada>
> if <%STATUS% = failed>
> do something else
>
> Andrew
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Miller
> Sent: Tuesday, December 11, 2001 8:26 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [WhatsUp Forum] ( %EVENT_REPORT% )
>
>
> Hey Andrew,
> Just to let you know, you can always refer to the distributed web
templates
> as a use-case example...
> The %EVENT_REPORT% tag is being used within the "reporteventdisplay.asp"
> template file if you would like to
> refer to it.
>
> <!-- Start example ---->
>
> <pre>
> <%EVENT_REPORT% (%URL_VALUE% StartDate,%URL_VALUE% EndDate, %URL_VALUE%
> ReportType)>
> </pre>
>
> <!-- End example ---->
>
> The StartDate, EndDate, and ReportType are passed across the 'url' line by
> the previous form. Where this tag appears, you
> will instead see the results posted from the reporting engine after it
> completes its report processing. Take note of the
> <pre> and </pre> tags... Since the results of the event report will most
> likely contain multiple lines, these HTML tags allow for
> proper formatting in the browser... I hope this helps...
>
> ~Brian
>
>
>
>
>
> ----- Original Message -----
> From: "Andrew Shwiff" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 10, 2001 8:52 PM
> Subject: [WhatsUp Forum]
>
>
> > Using WhatsUpGold V7.0 Web Templates, how does one pick up the "Results"
> > value
> > rom the various report commands ??? For example, what would the script
> line
> > look
> > like to get
> > Results <%EVENT_REPORT% (start-time, end-time, type)>
> >
> > Many thanks,
> > Andrew
> >
> >
> >
> > Please visit http://www.ipswitch.com/support/mailing-lists.html
> > to be removed from this list.
> >
> > An Archive of this list is available at:
> > http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/
> >
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/
>
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/
>
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/