Not in a system at the moment but I think progress.o4glrt.dll is the assembly reference you need to add.
Jim Kinneman
Encompass Solutions, Inc
Jim Kinneman
Encompass Solutions, Inc
--- In vantage@yahoogroups.com, Ted Koch <tkoch77@...> wrote:
>
> Thanks Jim, in order to access the Progress.Open4GL.DynamicAPI namespace what file do I need to reference?
>
>
>
>
> ________________________________
> From: jckinneman <jckinneman@...>
> To: vantage@yahoogroups.com
> Sent: Friday, December 21, 2012 5:24 PM
> Subject: [Vantage] Re: Return All Companies With Query
>
> Very rough ;list of things that need to be done. If you are E9, C# is recommended, if on Vantage just need to convert to VB.
>
> ///
> using Progress.Open4GL.DynamicAPI;
>
> Epicor.Mfg.Core.Session session = (Epicor.Mfg.Core.Session)oTrans.Session;
>
> Progress.Open4GL.DynamicAPI.Session progressSession = session.ConnectionPool.Get();
>
> PersistentProc proc = default(PersistentProc);
>
> // setup a parameter with X being the number of items you will pass over and get back
> ParameterSet parms = new ParameterSet(X);
>
> // the next item depends on what you are passing over.
>
> // some string variable called StrValue that is being passed over but not going to be updated
> parms.setStringParameter(1, StrValue, ParameterSet.INPUT);
> // A datatable that the progress reoutin will be updating
> parms.setDataTableParameter(3, dt, ParameterSet.OUTPUT);
>
>
> proc = progressSession.runPersistentProcedure(@"Name of progress File to run", parms);
>
> // clean up
> proc.delete();
> session.ConnectionPool.Release(progressSession);
>
> In the progress program you need to have the same number and type of parameters. Beyond that nothing special about the progress routine.
>
> Jim Kinneman
> Encompass Solutions, Inc
>
>
>
>
> --- In vantage@yahoogroups.com, Ted Koch <tkoch77@> wrote:
> >
> > I don't suppose you would have an example you could share?
> >
> >
> >
> >
> > ________________________________
> >Â From: jckinneman <jckinneman@>
> > To: vantage@yahoogroups.com
> > Sent: Friday, December 21, 2012 4:38 PM
> > Subject: [Vantage] Re: Return All Companies With Query
> >Â
> > You could do a direct call to progress from embedded and have it return the list. This bypasses the business objects and talks directly to the database so you can retrieve any data you wish this way.
> >
> > Jim Kinneman
> > Encompass Solutions, Inc
> >
> > --- In vantage@yahoogroups.com, "tkoch77" <tkoch77@> wrote:
> > >
> > > How would I return a list of every company even if the user is not assigned to some companies within user security? I noticed when i run this code it only returns all the companies that I am assigned to...
> > >
> > > Â Â Â Â Â Â Dim _company As New Company(ProjectEntryForm.Session.ConnectionPool)
> > > Â Â Â Â Â Â Dim _companyDS As CompanyListDataSet = _company.GetList("", 0, 0, False)
> > > Â Â Â Â Â Â For i As Integer = 0 To _companyDS.Tables(0).Rows.Count - 1
> > > Â Â Â Â Â Â Â Â Â EpiMessageBox.Show(_companyDS.Tables(0).Rows(i)("Company"))
> > > Â Â Â Â Â Â Next
> > >
> > > Thanks,
> > > -Ted
> > >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
> > (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
> [Non-text portions of this message have been removed]
>