How do I enable RTD topic after disabling it

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

Only registered users are allowed to subscribe.
How do I enable RTD topic after disabling it
 
Subscribe
Kiru Marimuthu




Posts: 8
Joined: 2017-07-20
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: 14094
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.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Sep, 2017 07:16:05 Top