Clarity Service Management

Expand all | Collapse all

Hide inactive notification history entry

Jump to Best Answer
  • 1.  Hide inactive notification history entry

    Posted 12-29-2015 06:56 AM

    Hi everybody,

     

    how can i hide inactive entries in the list_lr.htmpl ?

    The entries have "del = 1" in the not_log sql table and i don´t want them to be listed in the Notification History view.

     

    Is it posible to filter in the list_lr.htmpl file?

     

    Thanks!

    Alex



  • 2.  Re: Hide inactive notification history entry

    Posted 01-05-2016 04:30 AM

    Hi,

     

    The function used to display the notification history is "show_hist" which is present in both std_head.js and windows_manager.js

     

    You can find code below:

     

    var q = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid_generator() +"+OP=SEARCH+FACTORY=lr+HTMPL=list_lr.htmpl"+wc+ref_num;

     

    Try to insert your condition to this and test.

     

    Regards,
    Kavya



  • 3.  Re: Hide inactive notification history entry

    Posted 01-11-2016 01:37 AM

    Hi Kavya,

     

    thanks for the information! I will test this and let you know the result.

     

    Regards

    Alex



  • 4.  Re: Hide inactive notification history entry

    Posted 01-18-2016 09:38 AM

    HI,

     

    does someone have a suggestion how to add some filter? Or some other approach?

    I found the code mentioned by Kavya but simply adding something like "+delete_flag=0" does not work.

     

    regards

    Alex



  • 5.  Re: Hide inactive notification history entry

    Posted 01-18-2016 02:09 PM

    Hi,

     

    Default function to show Notification History is called show_hist and located in std_head,

    you need to add QBE.EQ.delete_flag=0 to the URL in that function:

     

    ex:

    var q = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid_generator() + "+OP=SEARCH+FACTORY=lr+HTMPL=list_lr.htmpl" + wc + ref_num + "QBE.EQ.delete_flag=0";

    Regards,

    Timur

     

    #helpinghands



  • 6.  Re: Hide inactive notification history entry
    Best Answer

    Posted 01-19-2016 02:33 AM

    Hi Timur,

     

    finally i got the solution - modify the show_hist function in the "window_manager.js" like this:

     

    var xdel_flag = "+QBE.EQ.delete_flag=0";

    var q = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid_generator() +"+OP=SEARCH+FACTORY=lr+HTMPL=list_lr.htmpl"+wc+ref_num+xdel_flag;

     

     

    Thanks for all your help!

     

    Regards

    Alex