Update: Resizing SmartList TreeView and ListView panes using the Support Debugging Tool

David Meego - Click for blog homepageThis is a reposting of an article I originally wrote on my Developing for Dynamics GP blog.

As promised in my post Quick Tip: Creating a Splitter control between panes of a window with Dexterity, I have updated the concept of my previous post: Resizing SmartList TreeView and ListView panes using the Support Debugging Tool to use a Splitter control rather than selecting a percentage via a menu option.

In this example, I am using some un-supported techniques with the Support Debugging Tool, so test this out thoroughly on your test environment before rolling it out in a live environment.

Disclaimer: The code used in this example uses the Splitter control and Virtual Fields, both of which are untested, undocumented and unsupported. Use at your own risk. Also Splitters will not work with the upcoming Dynamics GP 2013 Web Client

Here is the splitter in action on the SmartList window. Note the change of the mouse cursor while hovering over the dividing line between the left hand TreeView and right hand ListView controls.

Notes:

  • This code is designed to work with the original SmartList window, it might not work properly on a modified version of the window.
  • If you resize the window to make it smaller, it is possible to make a pane disappear as the window resizes. To resolve, either make the window bigger again and adjust the splitter before sizing it down again, or close and re-open the window and the code will set the pane to the mimimum size allowed for the size of the window.

The Support Debugging Tool Debugger Settings file with these triggers is attached as an archive to the bottom of this post.

Please let me know what you think by providing feedback as comments on this article.

David

Debugger Settings SmartList Window Size & Pane 2.dbg.zip

This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on http://www.winthropdc.com/blog.

22 thoughts on “Update: Resizing SmartList TreeView and ListView panes using the Support Debugging Tool

  1. Hi David,
    The cool factor on this is off the charts!!!
    Leave it to the wizard of all things Dexterity to do what 'they' said couldn't be done!
    You are our hero. You're my hero anyway. BRAVO
    Leslie

    Like

  2. Dear David,
    Awesome functionality!!!
    As always, you are the best and this is a great feature for many of us.
    Regards,
    Samuel Mathew

    Like

  3. This is a great add on thank you!!
    What I found is that it still creates a log for each user is there a way to stop it from logging?  I know the trigger is set to non-logging trigger.
    1/10/2013 10:25:31 AM: ** Start of Log **
    1/10/2013 10:25:31 AM: Version: 11.00.0014, Last Modified: 25-Nov-2010.
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_ACT, Name: SmartList Window Add Splitter a
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_ACT Not Logging
    1/10/2013 10:25:31 AM: Window ASI_Explorer of Form ASI_Explorer in Dictionary 1493
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_ACT Registered
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_POST, Name: SmartList Window Store Size
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_POST Not Logging
    1/10/2013 10:25:31 AM: Window ASI_Explorer of Form ASI_Explorer in Dictionary 1493
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_POST Registered
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_PRE, Name: SmartList Window Restore Size &
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_PRE Not Logging
    1/10/2013 10:25:31 AM: Form  in Dictionary ASI_Explorer
    1/10/2013 10:25:31 AM: Automatic Debugger Mode Trigger SMARTLIST_PRE Registered
    1/10/2013 10:25:31 AM: ** End of Log  **

    Like

  4. Hello David,
    This is great functionality and yet another one of your invaluable contributions.
    There's a problem however when you have smartlists created with SmartList Builder.  It causes all such Smartlists to lose their GoTo functionality.  
    Is there a way to remove this control from the SDT?

    Like

  5. Hi Wassim
    I have heard about the SmartList Builder Go To issue before, but cannot explain it at this stage.
    To disable the SDT code, you can go into Setup Automatic Debugger Mode from the Options menu (as long as Advanced Mode is enabled) and either change the triggers to be disabled, not automatic start, or delete them.
    David

    Like

Please post feedback or comments

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.