15. Juni 2010 16:29
        <Entity name="activitypointer">
          <Grid>
            <MenuBar>
              <Buttons>
                <Button Icon="/_imgs/ico_32_134.gif" Client="Web" AvailableOffline="true">
                  <Titles>
                    <Title LCID="1033" Text="Aktivitäten schließen" />
                  </Titles>
                  <ToolTips>
                    <ToolTip LCID="1033" Text="Schließt alle selektierten Aktivitäten." />
                  </ToolTips>
                </Button>
              </Buttons>
            </MenuBar>
          </Grid>
        </Entity>
      </Entities>
15. Juni 2010 16:35
16. Juni 2010 08:29
16. Juni 2010 09:11
        <Entity name="deine Entitaet">
          <ToolBar ValidForCreate="0" ValidForUpdate="1">
            <Button Icon="/_imgs/ico_18_debug.gif" Url="http://www.microsoft.com" PassParams="1" WinParams="" WinMode="0">
              <Titles>
                <Title LCID="1033" Text="asdf" />
              </Titles>
              <ToolTips>
                <ToolTip LCID="1033" Text="Info on Test" />
              </ToolTips>
            </Button>
        </Entity>16. Juni 2010 09:36
<ImportExportXml version="4.0.0.0" languagecode="1031" generatedBy="OnPremise">
  <Entities>
  </Entities>
  <Roles>
  </Roles>
  <Workflows>
  </Workflows>
  <IsvConfig>
    <configuration version="3.0.0000.0">
      <Root />
      <!-- Microsoft Customer Relationship Management Entities (Objects) -->
      <Entities>
        <Entity name="activitypointer">
          <Grid>
            <MenuBar>
              <Buttons>
                <Button Icon="/_imgs/ico_32_134.gif" JavaScript="

                        var grid = document.getElementById('gridBodyTable');

                        var a = document.all['crmGrid'].InnerGrid.SelectedRecords; 

                        var selectedItems = new Array(a.length); 

                        for (var i=0; i < a.length; i++) 

                        { 

                        var stateReq = '';

                        var stateType = '';

                        var state = 'Completed';

                        var status = '-1';

                         if(a[i][1] == '4212')

                         {

                          stateReq = 'SetStateTaskRequest';

                          stateType= 'Task';

                          }

                        else if(a[i][1] == '4210')

                         {

                          stateReq = 'SetStatePhoneCallRequest'; 

                          stateType= 'PhoneCall';

                          }

                        else if(a[i][1] == '4207')

                         {

                          stateReq = 'SetStateLetterRequest';

                          stateType= 'Letter';

                        }

                        else if(a[i][1] == '4204')

                         {

                          stateReq = 'SetStateFaxRequest';

                          stateType= 'Fax';

                        }

                        else if(a[i][1] == '4214')

                         {

                          stateReq = 'SetStateServiceAppointmentRequest';

                          stateType= 'ServiceAppointment';

                          state = 'Closed';

                        }

                        else if(a[i][1] == '4201')

                         {

                          stateReq = 'SetStateAppointmentRequest';

                          stateType= 'Appointment';

                        }

                       else if(a[i][1] == '4402')

                         {

                          stateReq = 'SetStateCampaignActivityRequest';

                          stateType= 'CampaignActivity';

                          state = 'Closed';

                        }

                       else if(a[i][1] == '4401')

                         {

                          stateReq = 'SetStateCampaignResponseRequest';

                          stateType= 'CampaignResponse';

                       }

                       else if(a[i][1] == '4202')

                         {

                          stateReq = 'SetStateEmailRequest';

                          stateType= 'Email';

                        }

                            var xml = '' + 

'<?xml version="1.0" encoding="utf-8"?>' + 

                            '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">' + 

                            '  <soap:Header>' + 

                '    <CrmAuthenticationToken xmlns="http://schemas.microsoft.com/crm/2007/WebServices">' + 

                            '      <AuthenticationType xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes">0</AuthenticationType>' + 

                            '      <OrganizationName xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes">tw-elektric</OrganizationName>' + 

                            '      <CallerId xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes">00000000-0000-0000-0000-000000000000</CallerId>' + 

                            '    </CrmAuthenticationToken>' + 



                            '  </soap:Header>' + 

                            '  <soap:Body>' + 

                            '    <Execute xmlns="http://schemas.microsoft.com/crm/2007/WebServices">' + 

                            '      <Request xsi:type="'+stateReq+'">' + 

                            '        <EntityId>' + a[i][0] + '</EntityId>' + 

                            '        <'+stateType+'State>'+state+'</'+stateType+'State>'+

                            '        <'+stateType+'Status>' +  status + '</'+stateType+'Status>'+

                            '    </Request>' + 

                            '    </Execute>' + 

                            '  </soap:Body>' + 

                            '</soap:Envelope>' + 

                            '';

                            var xmlHttpRequest = new ActiveXObject('Msxml2.XMLHTTP');

                            xmlHttpRequest.Open('POST', '/mscrmservices/2007/CrmService.asmx', false);

                            xmlHttpRequest.setRequestHeader('SOAPAction','http://schemas.microsoft.com/crm/2007/WebServices/Execute');

                            xmlHttpRequest.setRequestHeader('Content-Type', 'text/xml; charset=utf-8');

                            xmlHttpRequest.setRequestHeader('Content-Length', xml.length);

                            xmlHttpRequest.send(xml);

                            var resultXml = xmlHttpRequest.responseXML;                        

                        } 

                        window.crmGrid.Refresh(); 

" Client="Web" AvailableOffline="true">
                  <Titles>
                    <Title LCID="1033" Text="Aktivitäten schließen" />
                  </Titles>
                  <ToolTips>
                    <ToolTip LCID="1033" Text="Schließt alle selektierten Aktivitäten." />
                  </ToolTips>
                </Button>
              </Buttons>
            </MenuBar>
          </Grid>
        </Entity>
   
      <Entity name="new_vertriebstour">
          <ToolBar ValidForCreate="0" ValidForUpdate="1">
            <Button Icon="/_imgs/ico_18_debug.gif" Url="http://www.microsoft.com" PassParams="1" WinParams="" WinMode="0">
              <Titles>
                <Title LCID="1033" Text="GPS" />
              </Titles>
              <ToolTips>
                <ToolTip LCID="1033" Text="GPS Daten herunterladen" />
              </ToolTips>
            </Button>
        </Entity>
      
      </Entities>
     
     
      <!-- Microsoft Customer Relationship Management Service Management Customization -->
      <ServiceManagement>
        <AppointmentBook>
          <SmoothScrollLimit>2000</SmoothScrollLimit>
          <TimeBlocks>
            <!-- All CSS Class mapping for Service activities -->
            <TimeBlock EntityType="4214" StatusCode="1" CssClass="ganttBlockServiceActivityStatus1" />
            <TimeBlock EntityType="4214" StatusCode="2" CssClass="ganttBlockServiceActivityStatus2" />
            <TimeBlock EntityType="4214" StatusCode="3" CssClass="ganttBlockServiceActivityStatus3" />
            <TimeBlock EntityType="4214" StatusCode="4" CssClass="ganttBlockServiceActivityStatus4" />
            <TimeBlock EntityType="4214" StatusCode="6" CssClass="ganttBlockServiceActivityStatus6" />
            <TimeBlock EntityType="4214" StatusCode="7" CssClass="ganttBlockServiceActivityStatus7" />
            <TimeBlock EntityType="4214" StatusCode="8" CssClass="ganttBlockServiceActivityStatus8" />
            <TimeBlock EntityType="4214" StatusCode="9" CssClass="ganttBlockServiceActivityStatus9" />
            <TimeBlock EntityType="4214" StatusCode="10" CssClass="ganttBlockServiceActivityStatus10" />
            <!-- All CSS Class mapping for Appointments -->
            <TimeBlock EntityType="4201" StatusCode="1" CssClass="ganttBlockAppointmentStatus1" />
            <TimeBlock EntityType="4201" StatusCode="2" CssClass="ganttBlockAppointmentStatus2" />
            <TimeBlock EntityType="4201" StatusCode="3" CssClass="ganttBlockAppointmentStatus3" />
            <TimeBlock EntityType="4201" StatusCode="4" CssClass="ganttBlockAppointmentStatus4" />
            <TimeBlock EntityType="4201" StatusCode="5" CssClass="ganttBlockAppointmentStatus5" />
            <TimeBlock EntityType="4201" StatusCode="6" CssClass="ganttBlockAppointmentStatus6" />
          </TimeBlocks>
        </AppointmentBook>
      </ServiceManagement>
    </configuration>
  </IsvConfig>
  <EntityMaps />
  <EntityRelationships />
  <Languages>
    <Language>1031</Language>
    <Language>1033</Language>
  </Languages>
</ImportExportXml>
16. Juni 2010 10:31
        <Entity name="new_vertriebstour">
          <ToolBar ValidForCreate="0" ValidForUpdate="1">
            <Button Icon="/_imgs/ico_18_debug.gif" Url="http://www.microsoft.com" PassParams="1" WinParams="" WinMode="0">
              <Titles>
                <Title LCID="1033" Text="GPS" />
              </Titles>
              <ToolTips>
                <ToolTip LCID="1033" Text="GPS Daten downloaden" />
              </ToolTips>
            </Button>
            </ToolBar>     
        </Entity> 16. Juni 2010 10:41
16. Juni 2010 11:10
michael sulz hat geschrieben:Hallo,
wie due per JavaScript an die ID des aktuellen Fensters kommst, ist hier beschrieben:
http://hassanhussain.wordpress.com/2009 ... -ms-crm-40
16. Juni 2010 11:15
16. Juni 2010 11:34
 <Entity name="new_vertriebstour">
          <ToolBar ValidForCreate="0" ValidForUpdate="1">
            <Button Icon="/_imgs/ico_18_debug.gif" JavaScript="
         

                        var varParameter = GetQueryString('id');
         

                        if(varParameter != null)
         

                     {
         

                     if (varParameter.length > 0)
         

                        {
         

                        }
         

                     }
         

                  function GetQueryString(paramName)
         

                  {
         

                  queryString = window.location.search.substring(1);
         

                  params = queryString.split('&');
         

                  for (i=0;i<params.length;i++)
         

                     {
         

                     param = params[i].split'=';
         

                     if (param[0] == paramName)
         

                        {
         

                        return param[1];
         

                        }
         

                     }
         

                  }
         

                  alert(varParameter);

   
      
         " PassParams="1" WinParams="" WinMode="0">
              <Titles>
                <Title LCID="1033" Text="GPS" />
              </Titles>
              <ToolTips>
                <ToolTip LCID="1033" Text="GPS Daten downloaden" />
              </ToolTips>
            </Button>
            </ToolBar>     
        </Entity> 
16. Juni 2010 11:58
16. Juni 2010 12:56
<Entity name="new_vertriebstour">
          <ToolBar ValidForCreate="0" ValidForUpdate="1">
            <Button Icon="/_imgs/ico_18_debug.gif" JavaScript="

var varParameter = GetQueryString('id');

if(varParameter != null)

{

if (varParameter.length > 0)

{

}

}

function GetQueryString(paramName)

{

queryString = window.location.search.substring(1);

params = queryString.split('&');

for (i=0;i<params.length;i++)

{

param = params[i].split'=';

if (param[0] == paramName)

{

return param[1];

}

}

}

alert(varParameter);

" PassParams="1" WinParams="" WinMode="0">
              <Titles>
                <Title LCID="1033" Text="GPS" />
              </Titles>
              <ToolTips>
                <ToolTip LCID="1033" Text="GPS Daten downloaden" />
              </ToolTips>
            </Button>
            </ToolBar>     
        </Entity>