![]() |
![]() |
|
|||||||
| Register | Forum Rules | Getting Started! - Guide | Blog | Videos | Gallery | Members List | Social Groups | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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 |
|
|
|
#2 |
|
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 > > > |
|
|
|
#3 |
|
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 >> >> >> |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |