How to deal with drop-down tabs dynamics crm 2011

2

In CRM 2011 I've a tab (drop-down), which has an Iframe or whatever.

Could i make it open by default if there is something inside and close by default if there isn't any data inside of this tab?.

Or, what if it's not an IFrame inside of tab, may be a web- resource

So, is there any way to do it?

Leo

Posted 2013-03-21T07:16:30.673

Reputation: 147

Answers

2

You want expand or collapse a tab in Onload of form, right?

So you have to use this function:

Xrm.Page.ui.tabs.get("tabname").setDisplayState('expanded');
Xrm.Page.ui.tabs.get("tabname").setDisplayState('collapsed');

The state of the tab is independently of the content.

Pedro Azevedo

Posted 2013-03-21T07:16:30.673

Reputation: 163

however, is it possible to do that the tab will be dependent of the content!? I mean, it the content is in a tab then the tab'll be "expanded" and if it isn't the the tab will be "collapsed" – Leo – 2013-03-21T09:32:52.357

Which content are you talking about? It's different accessing inside an Iframe or a control of crm form. But it's possible. – Pedro Azevedo – 2013-03-21T10:46:11.140

by content I mean, attached files for example – Leo – 2013-03-21T11:14:28.097

You want see the content of a attached file? This i think you can't. You can depend of a field in CRM Form or a field in a IFrame – Pedro Azevedo – 2013-03-21T11:18:32.037