Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Error On Xrm.Page.getControl("entity").setVisibility()

Traitée Error On Xrm.Page.getControl("entity").setVisibility()

  • vendredi 15 juin 2012 12:59
     
     

    Hi everyone,

    I'm having an issue with this function. It works perfectly on the OnChange method of a drop down. But it gives an error when you try to use it on the OnLoad method of a form. The error is:

    "Error: Object doesn't support property or method 'ModifyMinimumTabHeight"

    I don't know what to do to prevent this error from popping out. Anyone knows what this means? I have to "rebuild" the form from scratch?

Toutes les réponses

  • vendredi 15 juin 2012 13:05
    Modérateur
     
     Traitée A du code

    Hello,

    I had the same issue. I solved it using following way:

    window.setTimeout("Xrm.Page.getControl('entity').setVisibility(true);", 100);


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Follow Andriy on Twitter

  • vendredi 15 juin 2012 13:16
     
     
    Thanks a lot :) I solved the problem in the same way. It's sad tho :(
  • vendredi 15 juin 2012 17:13
     
      A du code

    Assuming you are allowed to use JQuery, can you do

    $(function(){Xrm.Page.getControl("entity").setVisibility(); });
    Using setTimeout can only solve the problem if the whole page is loaded within the time you have given (100ms), but the jquery way does not have this dependency.