How do I enable RTD topic after disabling it

Add-in Express™ Support Service
That's what is more important than anything else

How do I enable RTD topic after disabling it
 
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);
        }
Posted 22 Sep, 2017 05:25:24 Top
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
Posted 22 Sep, 2017 07:16:05 Top