Site Search:
Sign in | Join | Help

Open the Sales Transaction Entry window.

Last post 02-01-2007 5:03 PM by Steve Gray. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-01-2007 5:02 PM

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,296

    Open the Sales Transaction Entry window.

    Using VS Tools for GP9, I am opening the Sales Transaction Entry window using this code:

    Dynamics.Forms.SopEntry.Functions.OpenWindow.Invoke(strSopnumber, intSopType, False, "", 0)

    I need to open the Sales Transaction Inquiry Zoom window (I want to display a historical sop document) I'm thinking that the code should be something like this:

    Dynamics.Forms.SopInquiry.Functions.OpenWindow.Invoke(intSopType, strSopnumber, ?,?, ?, ?) but I can't find any documentation for the function. I'm looking in the SOP docs in the SDK, but not seeing any references to inquiry forms. Can you help?

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 02-01-2007 5:02 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,296

    Re: Open the Sales Transaction Entry window.

    In the SDK, under Parameters for Microsoft Dynamics GP - Parameters for Rel 9.0 I selected Main Dictionary Parameters to find the following:

    ------------------------------------------------------------------------

    SALES FORM PROCEDURE: OPEN

    of form SOP_Inquiry

    ------------------------------------------------------------------------

    in integer IN_Type;

    in 'SOP Number' IN_Doc;

    in integer IN_Which_File;

    in integer IN_Module;

    in 'Currency View' IN_nCyView;

    in 'Caller ID' IN_nCallerID;

    If you aren't sure of parameter values, I'd suggest creating a script log by add the following line at the bottom of your dex.ini in the GP directory:

    ScriptDebugger=TRUE

    Then launch into GP and log scripts before you open the inquiry window.

    Regards,

    Emily

    MBS Dev Support

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 02-01-2007 5:02 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,296

    Re: Open the Sales Transaction Entry window.

    Emily:

    That's helpful, thanks.

    I tried to follow your path to the documentation, but I hit a brick wall. I opened the SDK, but when I clicked on the parameters doc I get an empty window. I uninstalled and reinstalled the sdk just in case, still nothing. I've attached a screen shot so you don't think I'm loopy.

    Any idea why I can't see the documentation? Can you give me the exact path and name of the doc that link is trying to open?

    Attached files: gpSDK.bmp

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 02-01-2007 5:03 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,296

    Re: Open the Sales Transaction Entry window.

    Steve, I'm not sure what is up with your .chm file because even the main window doesn't look right. Regardless though, browse in Explorer to the location where you installed the SDK. There will be a Content directory, open that. Then go to the 8.0to9.0 directory. In there, you will find a CoreParams_900.txt, that's the one you want. As far as the SDK goes, I usually just browse from Explorer because I can see everything at one time then. Dave

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 02-01-2007 5:03 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,296

    Re: Open the Sales Transaction Entry window.

    Emily suggested putting

    ScriptDebugger = true

    at the end of the dex.ini file to create a log and read the params. I did that and opened GP, I expected to see a file (like dexlog.txt, or something) created in the GP directory, but nothing. Adding that line didn't seem to have any effect.

    Can you help with the params? I like the log idea, it would allow me to be more self sufficient.

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 02-01-2007 5:03 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,296

    Re: Open the Sales Transaction Entry window.

    Steve, After you have ScriptDebugger=TRUE, make sure true is all caps. Launch GP. You will see a new Debug menu at the top right. So then, get ready to do what you want to script log, then go to Debug>Log Scripts. This turns on the script log. Then do what you want to log. After you are done go Debug>Log Scripts to turn it off. So everything that you did from when you turned it on, till you turned it off will be in the script.log. You will see that it can get big so it is important that you only log what you need to. Don't turn it on and go all over in GP doing other stuff because that will all get logged too. Turn it on only when you need to, then turn it off as soon as you are done. Dave

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
Page 1 of 1 (6 items)