The Dev Guy

The Dev Guy

Tuesday, May 17, 2011

Dynamics SL Screen is customized as Maximized and will not return to normal state

Goal 
A user that has All User Customization Rights (Rights to create customizations everyone sees) keeps customizing a screen or series of screens to be maximized. You need to be able to fix this customization or remove it. But you have other ligitimate Customizations so a total delete of custom is not possible.
     
Environment
 Dynamics SL 7.0.

Issue
           When you Look at properties of the Form there is no Maximized or Windows State Property to edit. You can only view the property by hitting Shift F4 which is the Customization Property Browser. It has a property called windows state. But that property as everything on the Customization Property Browse is not editable.   The regular Property window reached by hitting F4 does not have Windows State.

            If you physically un-maximize the window in custom mode and hit save, then you open the screen again, it is still customized.
            Often this problem has the effect of hiding the grid on the screen. Like the GL Journal Transactions Screen. With this problem if it is customized as maximized the grid will disappear (become left justified OFF THE SCREEN).  You have to get rid of the maximized then move the grid back to the center of the screen manually.  But once again you have the issue that the screen will not un-maximize.

Resolution

            The easy fix to this is to export your customizations to a text file. Export only all user customization. Open the Text file and look for  windowstate. You will find something like this:



Begin Form Form1
'' Version         =   6
   height          =   539
   left            =   186
   top             =   137
   width           =   652
   windowstate     =   1
End

Change the 1 or 2 to 0. Save the Text File then Import the Custom back in.



Conclusion

                Sometimes users can save a screen as customized and distort the screen so that key information does not show. To get rid of a customization like this, export all user customizations and look for windowstate = 1 and change to  = 0.
                Do yourself a favor, if you do a customization for all users in SL, export when it is complete so you can revert back. If you have good export backups, you can just go to the screen in question and select remove all customizations for the screen then reimport.  Can save you some grief.

No comments:

Post a Comment