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:05Modérateur
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)
Мой блог (русскоязычный)
- Proposé comme réponse Andrii ButenkoMVP, Moderator vendredi 15 juin 2012 13:34
- Marqué comme réponse Draiden mardi 31 juillet 2012 08:10
-
vendredi 15 juin 2012 13:16Thanks a lot :) I solved the problem in the same way. It's sad tho :(
-
vendredi 15 juin 2012 17:13
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.