web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP SOP Action Button Script Error

(0) ShareShare
ReportReport
Posted on by

I was using the following in GP 9.0:

run script 'Void Button NONE' of window SOP_Entry of form SOP_Entry;

I am trying to use the following in GP 2010 SP1:

run script 'ACTION_VOID' of form SOP_Entry;

I am getting the error: Type incompatibility 'window field required'.

Any help of what I am missing would be greatly appreciated.

Thank you.

Joseph

*This post is locked for comments

I have the same question (0)
  • DinB Profile Picture
    4,014 on at

    Glad to see your post Joseph. any update on this? I am having similar issue.

    I think we need to fire the change event of the "Action Button", but we need to some how pass the parameter to indicate the which menu we need.

  • Community Member Profile Picture
    on at

    No response as of yet.  I captured the following but it sure seems like a lot of parameters are being sent.  And the last parameter ending with the 0-, - seem strange to me.

    Void() of form SOP_Entry', 0, 1, 1-, 1-, "ORD1076605", 0, "", 2, "STDORD", 0.00000, "", 0.00000, 0.00000, 0.00000, "", table 'SOP_ID_SETP', table 'SOP_LINE_WORK', table 'Batch_Headers', table 'SOP_Report_TEMP', table 'SOP_Document_SETP', table 'SOP_SETP', 0-, -

  • DinB Profile Picture
    4,014 on at

    Following method seems to work:


    local integer i;
    local integer Void_Menu_Position;

    Void_Menu_Position = -1; {initialize}
    for i = 1 to 10 do
     if itemdata('Action Button' of window SOP_Entry of form SOP_Entry,i) = ACTION_VOID of form SOP_Entry then
      Void_Menu_Position = i;
      exit for;  
     end if;
    end for;

    if Void_Menu_Position <> -1 then
     'Action Button' of window SOP_Entry of form SOP_Entry = Void_Menu_Position ; {set value for the Action Button}
     run script 'Action Button' of window SOP_Entry of form SOP_Entry;
    end if;

  • Community Member Profile Picture
    on at

    Thank you for the code Max.  It sure is a long way around but it seems to be the best way to solve this issue.  I am new to Dex but hopefully I will be able to contribute in the future as you have now.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans