**
Kamlesh,
I don't know of an executible to do this, but the simplest manual way would
be to use the XML export/import functions of the Admin Tool to update the
def, then import in place.
Select the Filters you want to modify and export them to XML. Then, you can
get to the pertinent nodes using XPath and change values using the DOM.
Beneath the notify node, there is a node called notifyText. So, if you
wanted to just append a value to the text, you could write a WSH script to
do this pretty easily. Like this:
Dim objDoc ' the XML document
Dim objNotifyNode ' placeholder for collection node
Dim objNotifyNodeList ' notify node collection
Dim objNotifyTextNode ' notify Text element
'create a DOM object
Set objDoc = CreateObject("MSXML2.DOMDocument")
'load the document
objDoc.load("pathtofile")
'get the notify actions as a collection
Set objNotifyNodeList = objDoc.SelectNodes("//notify")
'iterate the collection
For each objNotifyNode in objNotifyNodeList
'get the notify Text element for the current notify action
Set objNotifyTextNode = objNotifyNode.SelectSingleNode("./notifyText")
'update the notify text
objNotifyTextNode.text = objNotifyTextNode.text & " some other text"
Next
'save the document and clean up
objDoc.Save("pathtofile")
Set objDoc = Nothing
Then, simply import the XML definition from the Admin Tool with the "Import
in Place" option enabled (or you could use the Admin Tool from the command
line as defined in the Admin Guide).
If you wanted to get fancier, you could, of course - including more advanced
formatting, etc - even adding whole structures if you wanted. Having XML as
a medium and the ability to import workflow in place and using view
definitions for display characteristics make bulk changes to the definition
much easier (nearly trivial).
Hope this spurs some ideas,
Chris Woyton
Sr. System Engineer.
Allegiant Technology
chris@allegiant-tech.com
-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:ARSLIST@LISTSERV.VISTAIT.COM]On Behalf Of Kamlesh Patel
Sent: Monday, June 24, 2002 6:32 AM
To: ARSLIST@LISTSERV.VISTAIT.COM
Subject: Need API code to update filter notification Text.
**
I am rolling out HPD 5 and have a need to add mid-tier url and more static
text to existing notification filters. I can go thru roughly 80 filters
one by one and do this. But, I rather not. I would like to know if any
one has an executable that will do this.
Please, reply ASAP.
Thanks
To UNSUBSCRIBE, email the message "unsubscribe arslist" to:
listserv@listserv.vistait.com
You may also control your subscription options, including UNSUBSCRIBE, at
www.ARSLIST.org