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


David Meego - Click for blog homepageAs 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

Comments (20)

  1. Geoff James says:

    Hi David,

    This is great!!!!!!

    Regards,

    Geoff James

  2. David Musgrave says:

    Posting from Mark Polino at DynamicAccounting.net

    msdynamicsgp.blogspot.com/…/update-resizing-smartlist-treeview-and.html

  3. LeslieVail says:

    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

  4. Charles Allen says:

    Thank you, David.

  5. David Musgrave says:

    Posting from Mariano Gomez, The Dynamics GP Blogster

    dynamicsgpblogster.blogspot.com/…/resizing-smartlist-panes-with-support.html

  6. Ignacio says:

    Hello David,

    I apologize for my ignorance, but how can I run this XML code using SDT?

    Thanks for your help

    Ignacio.

  7. David Musgrave says:

    Hi Ignacio

    Please use Configuration Export/Import window to import the Debugger settings xml file.

    David

  8. richard says:

    Fantastic…

  9. Samuel Mathew says:

    Dear David,

    Awesome functionality!!!

    As always, you are the best and this is a great feature for many of us.

    Regards,

    Samuel Mathew

  10. David Musgrave says:

    Posting from Mark Polino at DynamicAccounting.net

    msdynamicsgp.blogspot.com/…/the-dynamics-gp-blogster-resizing.html

  11. David Musgrave says:

    Posting by Mariano Gomez, The Dynamics GP Blogster

    dynamicsgpblogster.blogspot.com.au/…/the-dynamics-gp-blogsters-best-articles.html

  12. Boun says:

    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  **

  13. Pragadees says:

    Excellent David… Thanks

  14. Wassim says:

    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?

  15. David Musgrave says:

    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

  16. Wassim says:

    Thanks.

    Looking forward to hear that you have found the problem, since the splitter is so much handy.

    Wassim

  17. David Musgrave says:

    Posting from Mariano Gomez, The Dynamics GP Blogster

    dynamicsgpblogster.blogspot.com.au/…/microsoft-dynamics-gp-2013-service-pack.html

  18. David Musgrave says:

    Posting from Mark Polino at DynamicAccounting.net

    mpolino.com/…/weekly-dynamic-smartlist