Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Error trying to access MC Def Structure in SOP Window

Posted on by 250

Hello,
I am trying to retreive the MC Def Structure from the SOPEntry Window using Visual Studio Tools but I am getting an "Illegal address for field MC Def Structure in script [Not Found]" error using the line of code below:

SopEntryForm.SopEntryWindow SOPEntryWindow = Dynamics.Forms.SopEntry.SopEntry; 
SOPPayEntryWindow.McDefStructure.Value

 It works fine from Dexterity. Does anyone have any advice?

Thanks,
Roaa

*This post is locked for comments

  • Roaa Bahran Profile Picture
    Roaa Bahran 250 on at
    Re: Error trying to access MC Def Structure in SOP Window

    Since I could not get the above to work, (seems like composite objects are exposed through the SDK but not really working yet) I create a procedure in Dexterity that would read the MC Def Structure off the SOPEntry window and would do some calculations and return a value. I ran my dictionary through DAG and then called this procedure from Visual Studio.

    Cheers,
    Roaa

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans