Kiru Marimuthu
Guest
|
I have a scenario where I check if the user is logged in before rtd server resolves the topic. If the user is not logged I setting the enabled property of the Topic to false in the RefreshData event. But after disabling the topic RefreshData is not been called again. How do I enable the topic back?
private object adxrtdTopic1_RefreshData(object sender)
{
var topic = sender as ADXRTDTopic;
if (IsUserLoggedIn())
topic.Enabled = false;
return new Random().Next(2000);
} |
|
Andrei Smolin
Add-in Express team
Posts: 18817
Joined: 2006-05-11
|
Hello Kiru,
I suggest that instead of disabling the topics, you let them return some value indicating that the user should log in.
Andrei Smolin
Add-in Express Team Leader |
|