TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Dynamics CRM

Notices

Opening Regarding entity when opening a Phone Call

Microsoft Dynamics CRM


Reply
 
Thread Tools Display Modes
Old 05-06-2008, 09:56 PM   #1
Saira
Guest
 
Posts: n/a
Opening Regarding entity when opening a Phone Call

I have nearly got this, but am stuck at the last block.
I am trying to open the Case associated with a phone call as soon as i open
the phone call, which I can do with the below code:

switch (crmForm.FormType)

{

case CRM_FORM_TYPE_UPDATE:

var objId;

var caseUrl;

var OpenWindow

caseUrl = "http://zina/cs/cases/edit.aspx";

CASEID = crmForm.all.regardingobjectid.DataValue

objId = CASEID[0].id;

caseUrl = caseUrl + "?id=" + objId;

alert(caseUrl)

OpenWindow = window.open(caseUrl,null,null);

}



What I would like to happen is when I open a second phone call (without
closing the original case), I woud like the case to be replaced by the new
case associated with the phone call and not have another window opened.

Anyone have any ideas of how I achieve this?



Thanks

Saira


  Reply With Quote
Old 05-06-2008, 11:54 PM   #2
Richard Riddle
Guest
 
Posts: n/a
RE: Opening Regarding entity when opening a Phone Call

I think the problem you are running into has to do with window naming in
JavaScript. When you use the window.open command, you can specify the name
of the window. If no name is specified, the name is constructed based on a
variety of different things. I would first try specifying a window name in
window.open, and see if that works.


--
Richard Riddle
CRM Developer
Autonomix


"Saira" wrote:

> I have nearly got this, but am stuck at the last block.
> I am trying to open the Case associated with a phone call as soon as i open
> the phone call, which I can do with the below code:
>
> switch (crmForm.FormType)
>
> {
>
> case CRM_FORM_TYPE_UPDATE:
>
> var objId;
>
> var caseUrl;
>
> var OpenWindow
>
> caseUrl = "http://zina/cs/cases/edit.aspx";
>
> CASEID = crmForm.all.regardingobjectid.DataValue
>
> objId = CASEID[0].id;
>
> caseUrl = caseUrl + "?id=" + objId;
>
> alert(caseUrl)
>
> OpenWindow = window.open(caseUrl,null,null);
>
> }
>
>
>
> What I would like to happen is when I open a second phone call (without
> closing the original case), I woud like the case to be replaced by the new
> case associated with the phone call and not have another window opened.
>
> Anyone have any ideas of how I achieve this?
>
>
>
> Thanks
>
> Saira
>
>
>

  Reply With Quote
Old 06-06-2008, 06:52 PM   #3
Saira
Guest
 
Posts: n/a
Re: Opening Regarding entity when opening a Phone Call

Thanks Richard
Even with a name i still get two case windows.
I tried changing OpenWindow = window.open(caseUrl,null,null); to OpenWindow
= window.open(caseUrl,"Case",null);

Any other ideas?

"Richard Riddle" <RichardRiddle@discussions.microsoft.com> wrote in message
news:15E9B1C9-5A07-49AB-B381-38042412E78E@microsoft.com...
>I think the problem you are running into has to do with window naming in
> JavaScript. When you use the window.open command, you can specify the
> name
> of the window. If no name is specified, the name is constructed based on
> a
> variety of different things. I would first try specifying a window name
> in
> window.open, and see if that works.
>
>
> --
> Richard Riddle
> CRM Developer
> Autonomix
>
>
> "Saira" wrote:
>
>> I have nearly got this, but am stuck at the last block.
>> I am trying to open the Case associated with a phone call as soon as i
>> open
>> the phone call, which I can do with the below code:
>>
>> switch (crmForm.FormType)
>>
>> {
>>
>> case CRM_FORM_TYPE_UPDATE:
>>
>> var objId;
>>
>> var caseUrl;
>>
>> var OpenWindow
>>
>> caseUrl = "http://zina/cs/cases/edit.aspx";
>>
>> CASEID = crmForm.all.regardingobjectid.DataValue
>>
>> objId = CASEID[0].id;
>>
>> caseUrl = caseUrl + "?id=" + objId;
>>
>> alert(caseUrl)
>>
>> OpenWindow = window.open(caseUrl,null,null);
>>
>> }
>>
>>
>>
>> What I would like to happen is when I open a second phone call (without
>> closing the original case), I woud like the case to be replaced by the
>> new
>> case associated with the phone call and not have another window opened.
>>
>> Anyone have any ideas of how I achieve this?
>>
>>
>>
>> Thanks
>>
>> Saira
>>
>>
>>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 12:11 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional