2 Replies Latest reply on Nov 23, 2010 11:36 AM by Gob

    Is it possible to use notification panel to display custom text?

    mario.spoljar@gmail.com

      I am wondering if is possible to use notification panel to display some custom mesages for all web sessions. Example of messages will be:

      - node xxx is down due to electricity problems

      - problem in region XXX due to public provider 

      - XXXX doing diagnostic on problem with router XXX

      I would like to use it to share common information between users on web NPM. 

      does enyone know how to put/delete messages on Notification Pannel (which is used to display Scheduled discovery results)

      I use Orion NPM 10.1

        • Re: Is it possible to use notification panel to display custom text?
          bshopp

          You cannot do this today, this is only for internal messages.  We have an enhancement request to allow you to have a scrolling banner or message of the day type functionality.

          • Re: Is it possible to use notification panel to display custom text?
            Gob

             

            I had created a similar feature for v10.0. It's not difficult to rewrite it for v10.1

            If you want to use it, you have to do the followings steps. Don't forget to backup modified files.



            Open C:\Inetpub\SolarWinds\Orion\Admin\Settings.aspx

            in any text editor

             

            Find 'Site Login Text' unit.

            Add below the following code like on picture.

             

             

            
             
                                </tr>     
                                <tr class="alternateRow">
                                    <td class="PropertyHeader">
                                        Header text</td>
                                    <td class="Property" align="left">
                                        <asp:TextBox runat="server" ID="tbHeaderText" Columns="30" Rows="4" TextMode="MultiLine"></asp:TextBox>
                                        <%-- MultiLine asp:TextBoxes ignore the MaxLength property, so use a regex validator instead --%>
                                        <asp:RegularExpressionValidator runat="server" ID="SiteLoginTextLengthValidator2" ControlToValidate="tbHeaderText" ValidationExpression="^[\s\S]{0,3500}$" ErrorMessage="<nobr>Too long.</nobr>" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </td>
                                    <td class="Property">
                                        This text will be displayed on the top of all pages.
                   HTML is OK. Maximum length is 3500 characters.
                                    </td>
                                </tr>
            
            


             



             

             

             





             

            Open

            C:\Inetpub\SolarWinds\Orion\Admin\Settings.aspx.cs

            in any text editor



             

             

            Find                 tbSiteLoginText.Text = WebSettingsDAL.Get("Site Login Text", "Site Login Text");

            Add below         tbHeaderText.Text = WebSettingsDAL.Get("Header Text", "");

             

            Find                 WebSettingsDAL.Set("Site Login Text", tbSiteLoginText.Text);

            Add below         WebSettingsDAL.Set("Header Text", tbHeaderText.Text);





             

             

            Open

            C:\Inetpub\SolarWinds\Orion\OrionMasterPage.master

            in any text editor

             

            Find 'GetUIUsername()' unit.

            Add below the following code like on picture.

             

             

            
             
            
                 protected string GetHeaderText(string UIUn)
                {
                    try
                    {
                        string HeaderText = string.Empty;
                        if (!String.IsNullOrEmpty(UIUn))
                        {
                            HeaderText = SolarWinds.Orion.Web.DAL.WebSettingsDAL.Get("Header Text");
                        }
                        return "<tr><td>"+HeaderText+"</tr></td>";
                    }
                    catch (Exception ex)
                    {
                        return string.Empty;
                    }
                }
            
            


             

            Find                 </table>

            Add above         <%=GetHeaderText(GetUIUsername())%>