Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to access to Global variable which has control type of Reference

(1) ShareShare
ReportReport
Posted on by 30

Hi all,

We are upgrading our application which is on Dexterity 8.0 to Dexterity 14.0. Previously we can access from .NET to Global Variable which has control type of Reference via TamerSoft DexToNet. 

pastedimage1596158771748v1.png

We are trying to do the same with Microsoft GP AddIns however we cannot access to this type of variable. The Intellisense Data XML file does not include this global variable. For other control types of string, integer, Boolean.. are still fine. Does Microsoft GP not support the access to this type of control?

Appreciate any help,

Thanks in advance,

Kelvin

Categories:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,932 Most Valuable Professional on at
    RE: How to access to Global variable which has control type of Reference

    Hi Kelvin

    References variables/parameters and anonymous parameters are not supported by Visual Studio Tools for Microsoft Dynamics GP.

    If it does not show in IntelliSense, you cannot access it using standard functionality.

    Regards

    David

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: How to access to Global variable which has control type of Reference

    I don't think you can access global variables who are actually a reference by nature. The don't present physically and most of them are initialized or set with property when they used in dexterity.

  • KelvinNguyen Profile Picture
    KelvinNguyen 30 on at
    RE: How to access to Global variable which has control type of Reference

    Hi Justin,

    Thanks for your reply.

    I gave up to access to reference type global. This issue is also happening to functions/procedures where parameters are reference type (COM object) as well.

    I am changing all COM objects to .NET Assembly.

    Thanks anyway.

    Kelvin

  • Suggested answer
    RE: How to access to Global variable which has control type of Reference

    Hello Kelvin,

    According to the Programmers Guide, I do not see any Control Type or Data Type restrictions for Global Variables.

    You can find that guide here:www.microsoft.com/.../details.aspx

    I do note that the only examples we have are for the other types you mention:

    Numeric global variables are initialized to zero, string global variables to empty, and boolean global variables to false.

    This could mean that you will be unable to use a Global with a Control Type of Reference.

    That said, some of our community is quite good at working through Dex, so perhaps they have a better option.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans