Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Add Item to the List Box on an existing GP screen through VS Tools for GP

(0) ShareShare
ReportReport
Posted on by 1,869

Dear All, 

Does anyone know what is the  Dexterity "Add item" statement equivalent in VS Tools for GP, to add an item to a list box on an existing GP Screen.  I'm just trying to add additional error messages to an Error List Box in Employee Direct Deport Maint screen.

Thanks,

Jothikrishnan

*This post is locked for comments

  • Jothi Krishnan N Profile Picture
    Jothi Krishnan N 1,869 on at
    RE: Add Item to the List Box on an existing GP screen through VS Tools for GP

    Thank you very much Tim and Dave for your response and those very insightful articles. It really helps. :)

  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: Add Item to the List Box on an existing GP screen through VS Tools for GP

    Visual Studio (Visual C# and Visual Basic.Net) and Visual Basic for Applications (VBA) cannot add items to Dexterity fields.

    You would need to use pass through Dexterity sanScript via Continuum.

    Here are my examples based on some hints from Tim.

    https://winthropdc.wordpress.com/2014/12/17/customising-the-company-login-window-series-visual-studio-tools-revisited-visual-basic-net/

    https://winthropdc.wordpress.com/2014/12/15/customising-the-company-login-window-series-visual-studio-tools-revisited-visual-c/

    David

    PS: The feature in these demos is now offered as part of GP Power Tools.

    https://winthropdc.wordpress.com/2015/07/07/gppt-welcome-to-the-gp-power-tools-public-beta/

  • Verified answer
    Tim Wappat Profile Picture
    Tim Wappat 5,703 on at
    RE: Add Item to the List Box on an existing GP screen through VS Tools for GP

    Adding items to list boxes in native GP forms is not supported, other than in Dex. I try to avoid doing this where I can, for example making the user jump through another form (not great UI experience though). I change the UI Interaction to disable(readonly)/hide the original list box, and place a button near it to pop another VB.NET window with the list box and further interaction on it. May or may not work for you, depending on situation. 

     

    If you want to live on the edge (and use unsupported techniques) read these blog posts:

    David's talks about the general subject of list boxes and drop downs, gives you some background.

    My (now quite old post), I add an item using VBA, but these days I'd do this by referencing the .NET Continuum COM library to allow .NET code in the Dynamics GP Visual Studio addin to pass SanScript through to the GP, the technique is shown in the third link, although applied to a different problem.

    Links:

    http://www.timwappat.info/post/2010/11/25/Dynamics-GP-e28093-Copy-address-button-using-VBA-Modifier

    http://blogs.msdn.com/b/developingfordynamicsgp/archive/2013/10/30/all-about-listbox-button-drop-lists-and-drop-down-lists.aspx

    http://www.timwappat.info/post/2014/10/17/How-to-make-GP-company-login-text-boxes-longer

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans