locked
MSCRM 2011 - OOTB view of custom entity - auto refresh for every 3 sec RRS feed

  • Question

  • Hi All,

    I   have  a  specific  requirement  in MSCRM 2011   to  refresh  the  OOTB  view  of a  custom entity  for  every  3  seconds  . 

    Please  help  in this  regard by  answering  the  below  queries  :

    1.  Is it  possible  to  write  custom  FETCH XML  query  on the  OOTB  view  

    2.  Is  it  possble  to  auto  refresh the  OOTB  view  for  every  3  sec 

    3.  Is  it  MS supported  way  to  edit  the  files  in  CRMWeb \Root  directory 


    Kindly  answer  these  that  will  help  me  to  proceed  further

    Thanks
    Krithi

    Tuesday, September 30, 2014 4:20 AM

Answers

  • Hi  ,

    We  are  not   able  to  achieve  this  using  Manual  intervention  .  

    After the  first  Contact  record  is  opened  ,  the  timer  is set  on  in the  Contact.js   to  refresh the  parent  view  .

    thanks

    Krithi

    • Marked as answer by KriSree Monday, October 13, 2014 12:48 PM
    Monday, October 13, 2014 12:48 PM

All replies

  • Hi All,

    I   have  a  specific  requirement  in MSCRM 2011   to  refresh  the  OOTB  view  of a  custom entity  for  every  3  seconds  . 

    Please  help  in this  regard by  answering  the  below  queries  :

    1.  Is it  possible  to  write  custom  FETCH XML  query  on the  OOTB  view  

    2.  Is  it  possble  to  auto  refresh the  OOTB  view  for  every  3  sec 

    3.  Is  it  MS supported  way  to  edit  the  files  in  CRMWeb \Root  directory 


    Kindly  answer  these  that  will  help  me  to  proceed  further

    Thanks
    Krithi

    Tuesday, September 30, 2014 4:26 AM
  • HI KriSree,

    Please refer the following link.

    Regards,

    Saad

    Tuesday, September 30, 2014 6:17 AM
  • Hi Saad ,

    I  tried  to  implement 

    window.setInterval("crmGrid.Refresh();", 10000);   in  homepage.js   ,  but  it  is  not  working 

    Please  help  .

    thanks

    Krithi

    Tuesday, September 30, 2014 7:49 AM
  • HI Krithi,

    Please try below functions instead of crmGrid.Refresh().

    //refreshes the entire element in the parent window that contains the view
    window.parent.opener.location.reload();
    
    //refreshes just the grid control that contains the view
    window.parent.opener.document.getElementById("crmGrid").control.refresh();

    Saad

    Tuesday, September 30, 2014 8:53 AM
  • Hi KriSree,

    I found another workaround.

    on load of the entity call this function.

    function mainGrid(){
    window.setInterval("window.parent.opener.location.reload();", 10000);
    }

    Regards,

    Saad


    • Edited by Mohd Saad Tuesday, September 30, 2014 9:22 AM removed subgrid
    Tuesday, September 30, 2014 9:22 AM
  • Hi Saad, 

    thanks  for the  code.

    This will  refresh  the  grid  only  after opening  a  record   from the  grid  .    We  have to  write  this  on the  onload  of the  opening  form . 

    The  requirement  is  to  reload  the  view  for every 3  sec  with  out  any  manual  intervention 

    thanksKr

    Krithi 

    Tuesday, September 30, 2014 10:56 AM
  • Hi KriSree,

    First time to trigger this code we have to open the record. After that it runs automatically.

    Anyways, you can add this refresh function homepage.aspx page of root folder and try.

    Regards,

    Saad

    Tuesday, September 30, 2014 11:02 AM
  • Hi,

    Kindly comment whether following operations can be performed or not

    Is it  possible  to  write  custom  FETCH XML  query  on the  OOTB  view   ?

    Generally Fetch XML is used to retrieve values, whether it can be customized to update any field values /perform operations(arithmetic,aggregate) on it?

    Monday, October 6, 2014 9:57 AM
  • Hi,

    Like you mentioned, FetchXML can only be used to retrieve values, true! It CANNOT be used to update any fields, you must use oData for that.

    Karishma

    Wednesday, October 8, 2014 12:24 PM
  • Hi  ,

    We  are  not   able  to  achieve  this  using  Manual  intervention  .  

    After the  first  Contact  record  is  opened  ,  the  timer  is set  on  in the  Contact.js   to  refresh the  parent  view  .

    thanks

    Krithi

    • Marked as answer by KriSree Monday, October 13, 2014 12:48 PM
    Monday, October 13, 2014 12:48 PM