Yesterday I posted a busted script.  It will only process the first map.
Once you set the map into context, it will stay until it is changed.  It
does not change with each "start loaded map list" iteration. Therefore,
to make the script work, you would have to set the context for each map
and place the "acknowledge map alerts" tag after each "current map" tag
with the proper map filename.  If you have a lot of maps, that means a
lot of lines in the code.

If someone knows how to change the context on each iteration of the
"start loaded map list" tag shoot it to me.  That's where I am at.  

However,Since I have a lot of maps, by design preferences, I am writing
a Rebol script to create the code for each map I have, which will yield
a static page.  Meaning, that if another map is added I will have to add
another set of tags similar to this for each map that is added:  

<%CURRENT_MAP% mymap.wup>
<%IF% HAS_MAP_UNAKNOWLEDGED_DEVICES>
<%ACKNOWLEDGE_MAP_ALERTS%>
<%ENDIF%>

Those who have learned Rebol or who use it, after I finish my static
page, I am going to create  a script that parses a custom asp page that
only lists loaded map file names, and populates  each current_map tag
according to the number of loaded maps, which will dynamically write the
Global acknowledge page when the Global acknowledge link is clicked.

Global acknowlegements can be done from the console, but our Help Desk
personnel are not given access to the console.

If 


-----Original Message-----
From: Anthony Franklin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 08, 2004 4:58 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

Also,

If you want to acknowledge all devices on all maps at once you can use
the following code if the page is called from the topview.  A link has
to be placed on the topview.asp page or whatever page you desire.  When
the page completes it's job, it will redirect to the topview as it is
below.

Create an WUG asp page with the following code:

<HTML>
<HEAD>
<TITLE>Global Device Acknowledge Page</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=topview.asp"> </HEAD> <BODY>
<%START_LOADED_MAP_LIST%> <%CURRENT_MAP% (%MAP% FILENAME)>
<%ACKNOWLEDGE_MAP_ALERTS%> <%END_LOADED_MAP_LIST%>

</BODY>

This code will acknowledge every device on every map.  You can add
exclusions using the IF and MATCH tags.

This is could be used if you don't want to add code for each username.
This page was created for a different reason, but I thought I would post
it.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hart, Donald
(EM, ITS)
Sent: Wednesday, September 08, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

This is placed in the default.asp page.  You should see at the bottom
some of the code already. Here is the snippit for 3 people:
Replace:
 <!-- Check if we need to play the sound file-->
 <!-- This will iterate over every map if necessary 
        <%IF% HAS_ANY_MAP_STATE_CHANGED>
                <%IF% IS_SOUND_ENABLED>
                        <bgsound src="<%SOUND_TYPE% WEBDOWN>">
                <%ENDIF%>
        <%ENDIF%>

With:

<%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO SOUNDS"))>
<%ELSE%>
        <%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO SOUNDS"))>
        <%ELSE%>
                <%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO
SOUNDS"))>
                <%ELSE%>
                        <!-- Check if we need to play the sound file-->
                        <!-- This will iterate over every map if
necessary 
                        <%IF% HAS_ANY_MAP_STATE_CHANGED>
                                <%IF% IS_SOUND_ENABLED>
                                        <bgsound
src="<%SOUND_TYPE%WEBDOWN>">
                                <%ENDIF%>
                        <%ENDIF%>
                <%ENDIF%>
        <%ENDIF%>
<%ENDIF%>


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Amann
Sent: Wednesday, September 08, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

Just a couple right now.  Thanks for the snippet.  It has been a little
while since I dove into the asp pages, in which page shold this be
placed?  Thanks again, james


>>> [EMAIL PROTECTED] 9/8/2004 11:15:35 AM >>>
 <!--<%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO SOUNDS"))>
                        <%ELSE%>
                        <!-- Check if we need to play the sound file
-->
                        <!-- This will iterate over every map if
necessary 
                        <%IF% HAS_ANY_MAP_STATE_CHANGED>
                                <%IF% IS_SOUND_ENABLED>
                                        <bgsound src="<%SOUND_TYPE%
WEBDOWN>">
                                <%ENDIF%>
                        <%ENDIF%>
                        <%ENDIF%> -->

You can then just keep adding if else and endif as needed. How many
users you talking?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Amann
Sent: Wednesday, September 08, 2004 11:08 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [WhatsUp Forum] Sound Alert - Supress?

Some of our WUG web users do not want to hear the sound alerts, others
do.  Does anyone have any solutions in order to supress the sound on the
web interface by user or otherwise? 

Thanks

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/


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/

Reply via email to