Tuesday, 19 March 2019

Hide Timeline on Mobile Client on Dynamics 365

Hi, 

As we all know that Timeline is a new control introduced from Version 9.x of Dynamics 365. It is a section on Web UI but on the Mobile it appears as a Tab.

Sometimes as per Business requirement we might have to show and hide the timeline. On the web, it is easy to do as it is a section and the same appears as a Tab on Mobile client and show/hide code written for the section doesn't work here. Technically, it is a tab on the mobile. Here is the code that works on the Mobile. We just need to get the timeline tab name to do this.

        var tabObj = formContext.ui.tabs.get("TIMELINEWALL_TAB_SYSTEM_GENERATED");
        tabObj.setVisible(false);

So we have to show/hide section for Web UI and tab for mobile client.

Hope this helps.

--
Happy CRM'ing
Gopinath

No comments:

Post a Comment