quote:Originally posted by Network_GuruHere's a couple of screen shots of the Web interface I use to edit Custom Properties for each node:This is the Node Details page with a link to the "editing page" as well as a place to add commments.This is the actual node editing page which I modified so that users cannot change the layout or heading of any of the fields on this page.I just found the option to edit Custom Properties via the web interface a few weeks ago when updating my Node Details view. It seems it's been added in V7.8 but not documented in the change log. This is a really great feature which adds huge functionality for keeping documentation up to date & gives the abiblity to add comments on the fly when a node goes down & remove them when it's back up again!-=Cheers=- NG
I've hosted these images on Yahoo groups. Unfortunately they do not allow links to their images. If anyone is willing to host these, please let me know.
As for where to find the Edit Custom Properties option, in the Web admin GUI select: Customize Views > Select a view to Customize (Node details or W.H.Y.) > Add resources > Node Details > Edit a Custom Property I've created a new Custom View called CPE which has all the custom fields for any node available for updating. Then I link to this page directly from the Node Details page (as per my screenshots).
<!--#include Virtual=/NetPerfMon/scripts/NetPerfMon.asp --><% SelectWeb "NetPerfMon" VerifyLogin "USER" Dim ViewID Dim NetObject Dim NetDevice Dim PropertyName Dim PropertyValue ViewID = Request("ViewID") NetObject = Request("NetObject") Set NetDevice = NetPerfMon.GetNetObject(NetObject) If NetPerfMon.CurrentAccount.AllowEventClear Then PropertyName = Request("PropertyName") PropertyValue = Request("PropertyValue") NetDevice.SetProperty PropertyName, PropertyValue End If Set NetDevice = Nothing Response.Redirect "/NetPerfMon/View.asp?ViewID=" & ViewID & "&NetObject=" & NetObject%>
<tr><td class="Property"><a <%=Node.GetProperty("ParamString")%> href="">thwack.solarwinds.com/.../View.asp Custom Properties</a></td></tr>
<!-- Title=Edit a Custom Property--><!-- Advanced=TRUE --><!--#include Virtual=/NetPerfMon/scripts/Resource.asp --><% Dim PropertyName if len(Resource.Title) = 0 then Resource.Title = "Edit Custom Property" Resource.Sync end if Title=Resource.Title SubTitle=Resource.SubTitle EditButton="/NetPerfMon/Resources/2-1-NodeDetails/EditCustomProperty.Edit.asp?ResourceID=" & Resource.ResourceID & "&ViewID=" & ViewID & "&NetObject=" & NetObject HelpPage="Node-UserFields" <!-- Uncomment the next line to edit the property assigned on the CPE web page --> <!-- DoResourceHeader --> PropertyName = Resource.GetProperty("EditProperty") Lines = Resource.GetProperty("Lines")%>
quote:The only issue
quote:Originally posted by filipv quote:The only issue
<% If NetPerfMon.CurrentAccount.AllowEventClear Then %><tr><td class="Property" align="center"><a <%=Node.GetProperty("ParamString")%> href="">thwack.solarwinds.com/.../View.asp target=_blank>Edit Custom Properties</a></td></tr><% End If %></table>
quote:Originally posted by JMPVery nice mods Network_Guru! Can someone post the rest of the code for the 99-EditCustomProperty.Resource file as I am trying to get the CPE page cleaned up as much as possible. I can't seem to get the name of the property to go above the text box and also have the text box be only one line. No matter how many lines I put (for example "1") it still shows 3 lines. Thanks again for the mod!
<table width = "100%"><tr><td colspan="4"> <% If Not Node Is Nothing Then %> <form method="POST" action="/NetPerfMon/Resources/2-1-NodeDetails/EditCustomProperty.Update.asp?ViewID=<%=ViewID%>&NetObject=<%=NetObject%>"> <input type="hidden" Name="PropertyName" Value="<%=PropertyName%>"> <table border="0" cellPadding="2" cellSpacing="0" width="100%"> <tr> <td class="Property" width="10"> </td> <td class="PropertyHeader" vAlign="center"><%=PropertyName%></td> </tr> <table border="0" cellPadding="2" cellSpacing="0" width="100%"> <tr> <td class="Property"><textarea rows="<%=Lines%>" name="PropertyValue" cols="36"><%=Node.GetProperty(PropertyName)%></textarea> <input type="submit" value="Update" name="Update"></td> </tr> </table> </form> <% Else %> <tr> <td class="Property" width="10"> </td> <td colspan="4" class="PropertyHeader"><font color="Red">A Network Node was not selected</font></td> </tr> <% End If %></td></tr></table>
onmouseover="overlib('<img src=/NetPerfMon/Chart.asp?Chart=MMAVGBPS&NetObject=I:<%=SQLResource.GetProperty("InterfaceID")%>&Period=Today&SampleSize=30M&FontSize=&Width=500&Height=0 border=0>', CAPTION, 'Chart', FGCOLOR, '#999999', BGCOLOR, '#333333', BORDER, 4, CAPTIONFONT, 'Garamond', TEXTFONT, 'Courier', TEXTSIZE, 3, ABOVE, LEFT, STICKY)"