Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
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.
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.
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.
PS: The feature in these demos is now offered as part of GP Power Tools.
Thank you very much Tim and Dave for your response and those very insightful articles. It really helps. :)
Business Applications communities