Hi
I am developing an application which needs to pop an entity form from Javascript in exactly the same way as clicking on it from within CRM. It is using the entity record id and logical name (etn=) in the URL then using window. open. It works but the size is not right - I want it to display in exactly the same size as if I clicked on a link to the entity from within CRM.
As far as I can see I need to get the size from the metadata then pass it to the window.open command. I'm already querying the metadata from other parts of the application but I cannot see where the form size is specified. The metadata SDKs do not appear to have this, so I presume it is in the systemforms entity which is straightforward to retrieve. I'd assumed that it is in the formxml field but looking at this there appears to be no default size. Also if I create a custom entity form I have two records in systemforms as expected but I cannot tell which one is default. The IsDefault field is zero for both of them.
So two questions
- How do I determine the default form for an entity?
- How do I get its size
Or is there another way of popping the default form at the correct size.
Thanks