This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Connect
- :
- FlexNet Connect Forum
- :
- Re: HiddenNotification
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 25, 2009
01:44 AM
HiddenNotification
Hello,
Does anyone can help to take a look this problem?
My purpose is that I do not want to show update or message again after user click the "do not show this again" to hide the update in software manager when lauch the application.
The problem is when I use the function below, the return vulue is 1 for update, 0 for message whatever I hide or show the update or message.And the other problem is that I can not find the function of RemoveAllHiddenNotification(), I do not why, because I have added the reference to my project.
Thanks,
grace,
Does anyone can help to take a look this problem?
My purpose is that I do not want to show update or message again after user click the "do not show this again" to hide the update in software manager when lauch the application.
The problem is when I use the function below, the return vulue is 1 for update, 0 for message whatever I hide or show the update or message.And the other problem is that I can not find the function of RemoveAllHiddenNotification(), I do not why, because I have added the reference to my project.
NC = agt.GetNotificationCollection(PC);
for (int x = 1; x <= NC.Count; ++x)
{
FNCClient11Lib.Notification Notif = (FNCClient11Lib.Notification) NC;
Notif.GetProperty(FNCClient11Lib.NotificationProperty.NP_HIDDEN)
for (int x = 1; x <= NC.Count; ++x)
{
FNCClient11Lib.Notification Notif = (FNCClient11Lib.Notification) NC
Notif.GetProperty(FNCClient11Lib.NotificationProperty.NP_HIDDEN)
Thanks,
grace,
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2009
01:10 PM
Hello Grace, if you are trying to hide the notifications then your getproperty statement needs to be made into a setproperty statement like so:
Notif.SetProperty(FNCClient11Lib.NotificationProperty.NP_HIDDEN, 1)
Hope this helps!
Tim
Notif.SetProperty(FNCClient11Lib.NotificationProperty.NP_HIDDEN, 1)
Hope this helps!
Tim
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2009
04:04 AM
Tim,
Thanks for your reply. I just want to get the hidden property when the update is set to hidden by user, and then it will do not show the update when launch the application. I want to use gethiddennotification function, but it does not expose by com.
grace,
Thanks for your reply. I just want to get the hidden property when the update is set to hidden by user, and then it will do not show the update when launch the application. I want to use gethiddennotification function, but it does not expose by com.
grace,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2009
10:14 AM
Hello Grace, I have been able to develop my own function for this utilizing the NP_HIDDEN property. For example, if I wanted to loop through the Notification collection and show a message box for each notification that is hidden, I would use the following code:
NC = FNCAgent.GetNotificationCollection(PC)
If NC.Count = 0 Then
MsgBox("No Notifications are Available", MsgBoxStyle.OkOnly & MsgBoxStyle.Information)
End If
For index As Integer = 1 To NC.Count
Notif = NC.Item(index)
If Notif.GetProperty(FNCClient11Lib.NotificationProperty.NP_HIDDEN) = True Then
MsgBox("Notification is Hidden", MsgBoxStyle.OkOnly & MsgBoxStyle.Information)
End If
Next
End If
Hope this helps you out!
Tim
NC = FNCAgent.GetNotificationCollection(PC)
If NC.Count = 0 Then
MsgBox("No Notifications are Available", MsgBoxStyle.OkOnly & MsgBoxStyle.Information)
End If
For index As Integer = 1 To NC.Count
Notif = NC.Item(index)
If Notif.GetProperty(FNCClient11Lib.NotificationProperty.NP_HIDDEN) = True Then
MsgBox("Notification is Hidden", MsgBoxStyle.OkOnly & MsgBoxStyle.Information)
End If
Next
End If
Hope this helps you out!
Tim