Plus Community - for users of ACCPAC & Adagio accounting software

Welcome to the PlusCommunity forums! PlusCommunity is a gathering place for companies running Simply Accounting, ACCPAC Plus, Sage Accpac ERP (ACCPAC Advantage/ACCPAC for Windows), and Adagio Accounting.
New visitors, please click here!

Page 1 of 1 1
Topic Options
#53764 - 10/24/18 11:27 AM Sage 300 Drill Down
alaa92
Member


Registered: 10/19/18
Posts: 6
Loc: Texas
hi
How are you?

I have c# project that need to open the PO Entry screen

I have used this code.

Code:
            string ObjectId = "PO1210",
                CLSID = "",
                CodeBase = "",
                ObjectKey = "KEY=2664",
                ObjectHandle = "",
                ArgumentsFormat = "/clsid:{0} /codebase:\"{1}\" /objecthandle{2}",
                A4wContainerXpPath = mSession.ProgramsPathOnServer + "\\runtime\\a4wcontainerxp.exe",
                Arguments = "";

            if (mSession.GetObjectCLSID(ObjectId, AccpacCOMAPI.tagDistFileType.DF_DYNAMIC, out CLSID, out CodeBase))
            {
                mSession.CreateObjectHandle(ObjectId, ObjectKey, out ObjectHandle, out CLSID, out CodeBase);
                Arguments = string.Format(ArgumentsFormat, CLSID, CodeBase, ObjectHandle);
                //MessageBox.Show(Arguments);
                Process.Start(A4wContainerXpPath, Arguments);
            }


How i can pass the (PONUMBER) or (PORHSEQ) to the screen

I have also tried this
Code:
ObjectKey = "PORHSEQ=2664"

Code:
ObjectKey = "PONUMBER=PO000000001"


but without any successes.

Top
#53765 - 10/24/18 11:39 AM Re: Sage 300 Drill Down [Re: alaa92]
Jay Converse Administrator
Member


Registered: 07/31/00
Posts: 7677
Loc: Location, Location
I have no idea, I would never code a program like that
_________________________
Jay Converse
Sage 300 Whisperer

Top
#53766 - 10/24/18 12:08 PM Re: Sage 300 Drill Down [Re: alaa92]
alaa92
Member


Registered: 10/19/18
Posts: 6
Loc: Texas
I have managed to solve it

Thank you

Top
Page 1 of 1 1


Moderator:  Jay Converse 
Hop to: