Seite 1 von 1

ISV Buttons ausblenden

Verfasst: 14. Januar 2012 13:14
von ChrisKa
Hallo zusammen,

ich habe aktuell folgendes Problem mit ISV Buttons.

Umgebungsinfo:
CRM 4.0 Server mit UR 17
CRM Outlook Offline Client

Problem:
Über die ISV habe ich zwei Buttons hinzugefügt. Über die Buttons werden ASPX Seiten aufgerufen.
Ein Button ist für die Online-, der andere für die Offline-Nutzung.
Die Buttons sollen demnach je nach Verbindung im Outlook erscheinen (Online/Offline)
Leider werden die Offline Buttons auch im Online-Modus angezeigt.
Kann dies ggf verhindert werden?

Konfiguration:
<Button Icon="http://hostheader/Application/icon_16x16.gif" Url="http://hostheader/Application/AppTarget.aspx?App=CallApp" PassParams="1" WinParams="height=180, width=500, scrollbars=no, toolbar=no" WinMode="0" AvailableOffline="false" ValidForCreate="0" Client="Web,Outlook">
<Titles>
<Title LCID="1031" Text="Applikation" />
<Title LCID="1033" Text="Application" />
</Titles>
<ToolTips>
<ToolTip LCID="1031" Text="Applikation" />
<ToolTip LCID="1033" Text="Application" />
</ToolTips>
</Button>
<Button Icon="http://localhost:2525/Apps/Application/icon_16x16.gif" Url="http://localhost:2525/Apps/Application/AppTarget.aspx?App=CallApp" PassParams="1" WinParams="height=180, width=500, scrollbars=no, toolbar=no" WinMode="0" AvailableOffline="true" ValidForCreate="0" Client="Outlook">
<Titles>
<Title LCID="1031" Text="Applikation Offline" />
<Title LCID="1033" Text="Application Offline" />
</Titles>
<ToolTips>
<ToolTip LCID="1031" Text="Applikation Offline" />
<ToolTip LCID="1033" Text="Application Offline" />
</ToolTips>
</Button>

Für jeden Tipp bin ich dankbar.

Grüße,
Chris

Re: ISV Buttons ausblenden

Verfasst: 16. Januar 2012 17:03
von Michael Sulz
Hallo Chris,

es gibt leider keinen Parameter der darauf reagiert, das das CRM Online ist. Das CRM geht immer davon aus, das alle Buttons Online auf jedem Fall angezeigt werden sollen.

Re: ISV Buttons ausblenden

Verfasst: 7. Februar 2012 14:42
von ChrisKa
Hallo Michael,

ich fürcht ich muss dir widersprechen... :wink:

Die Offline Buttons können mit folgendem Script im Online Modus ausgeblendet werden:

if(IsOnline())
{
var comps = document.getElementsByTagName('li');
for (var i = 0; i < comps.length; i++)
{
if ((comps[i].title == "ISV Button 1 - Offline") || (comps[i].title == "ISV Button 1 - Offline") || (comps[i].title == "ISV Button 1 - Offline") || (comps[i].title == "ISV Button 1 - Offline"))
{
comps[i].style.display = "none";
break;
}
}
}
else
{
}

if(IsOnline())
{
var comps = document.getElementsByTagName('li');
for (var i = 0; i < comps.length; i++)
{
if ((comps[i].title == "ISV Button 2 - Offline") || (comps[i].title == "ISV Button 2 - Offline") || (comps[i].title == "ISV Button 2 - Offline") || (comps[i].title == "ISV Button 2 - Offline"))
{
comps[i].style.display = "none";
break;
}
}
}
else
{
}


Grüße
Christoph

Re: ISV Buttons ausblenden

Verfasst: 7. Februar 2012 15:10
von Michael Sulz
stimmt, über programmierung bzw. ein Java Script ist das möglich, hatte ich nicht mehr dran gedacht.