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?
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.
thanks for the information! I will test this and let you know the result.
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.
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:
var q = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid_generator() + "+OP=SEARCH+FACTORY=lr+HTMPL=list_lr.htmpl" + wc + ref_num + "QBE.EQ.delete_flag=0";
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!