Open form via javascript from custom web site in ISV folder

Unanswered Open form via javascript from custom web site in ISV folder

  • Tuesday, April 24, 2012 2:05 PM
     
      Has Code

    Hi everyone.

    I have custom site with link, which open record form.

    <a class="gridLink" href="http://server/orgname/main.aspx?etc=1&id=%7b53d88e9a-9288-e111-b352-000c29aee618%7d&pagetype=entityrecord"

    onclick="popUp('http://server/orgname/main.aspx?etc=1&id=%7b53d88e9a-9288-e111-b352-000c29aee618%7d&pagetype=entityrecord');return false;">Record name</a>

    PopUp function is

    function popUp(url) {
          var newWin = window.open(url, '''width=850,height=800,resizable=1,status=1,location=0,menubar=0,toolbar=0');
        }

    This link works nice. But problem is if i run this site from ISV folder in CRM.

    After clicking on this link, form is opened with javascript error. This error occured befour launching onload scripts so our scripts doesn't run.

    Microsoft Dynamics CRM Error Report Contents:
    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Object doesn't support this property or method</Message>
       <Line>352</Line>
       <URL>/main.aspx?etc=1&id=%7b53d88e9a-9288-e111-b352-000c29aee618%7d&pagetype=entityrecord</URL>
       <PageURL>/main.aspx?etc=1&id=%7b53d88e9a-9288-e111-b352-000c29aee618%7d&pagetype=entityrecord</PageURL>
       <Function>anonymous(){try{action();}catch(e){if(e.number!=-2146823277){throwe;}}executeActionQueue();}</Function>
       <CallStack>
        <Function>anonymous(){try{action();}catch(e){if(e.number!=-2146823277){throwe;}}executeActionQueue();}</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E; MS-RTC EA 2)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>cs</SystemLanguage>
       <UserLanguage>cs</UserLanguage>
       <ScreenResolution>1600x900</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2012-04-24T15:01:30</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{FFCA0D85-7288-E111-B352-000C29AEE618}</OrgID>
        <UserID>{266E48A1-7288-E111-B352-000C29AEE618}</UserID>
        <CRMVersion>5.0.9690.2165</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

    Any idea why it doesn't work from isv folder?

    Thanks

    Michal


    • Edited by M. Bukovan Tuesday, April 24, 2012 2:06 PM
    •  

All Replies