Programming question - calling BOS

Here is a simple example of calling the UserFile BO's from within Sales
Order Entry in order to Check if the Current User has a Certain Attribute
Checked let me know if you hav specific questions about the example. The
only thiing that you need to also do is include the appropriate DLL's which
you can do by oing to Tools Wizartds Customization Wizards Refference
Adapter / BL Assembly.

Session s = (Session)SalesOrderForm.Session;

UserFileAdapter userFileAdapter= new
UserFileAdapter(SalesOrderForm);
userFileAdapter.BOConnect();
userFileAdapter.GetByID(s.UserID);
userName = s.UserName;
if (userFileAdapter.UserFileData.UserFile[0].CheckBox10 == true)
{
chkDiscountOverride.Enabled = true;
txtDiscountedBy.Enabled = true;
discounts = true;

EpiCurrencyConver unitPrice =
(EpiCurrencyConver)csm.GetNativeControlReference("b4651fd7-0544-43c4-b8e3-2627b4bb9b2c");
unitPrice.Enabled = true;
}
else
{
chkDiscountOverride.Enabled = false;
txtDiscountedBy.Enabled = false;
discounts = false;
EpiCurrencyConver unitPrice =
(EpiCurrencyConver)csm.GetNativeControlReference("b4651fd7-0544-43c4-b8e3-2627b4bb9b2c");
unitPrice.Enabled = false;
}



*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Wed, Feb 23, 2011 at 12:10 PM, Paul L Bennett <paullbennett@...>wrote:

>
>
>
>
> I am speaking in general terms but what I am interested are those called
> from
> within the customizations. e.g. Lets say I wanted to create a button on the
> MES
> screen that once selected will end activity and clock-out the user in one
> go
> instead of taking the several steps now done. Please do provide a simple
> example, it would definitely be appreciated.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Cc: Mark Wonsil <mark_wonsil@...>
> Sent: Wed, February 23, 2011 11:16:49 AM
> Subject: Re: [Vantage] Programming question - calling BOS
>
>
> Are you talking about calling Epicor BO's from within the Customizations or
> from outside? You can do both the one for within the Customizations is
> Trivial the other one is a bit tricker but still doable, could you tell me
> a
> bit more of what you are trying to do and i'll try to throw a simple
> example
> together for you.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Tue, Feb 22, 2011 at 9:58 PM, Mark Wonsil <mark_wonsil@...>
> wrote:
>
> >
> >
> > Hi Paul,
> >
> >
> > > I constantly here how you call one of epicor business methods
> > > or Business Objects with a customization but I m yet to see some
> example.
> > I am
> > > new to customization and would appreciate it if someone can provide
> some
> > useful
> > > example.
> >
> > I put up at least one example in the Files section of the group (Under
> > C# if I recall) and I think there was at least one talk at
> > Perspectives by Jose.
> >
> > Mark W.
> >
> >
> >
>
> [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/.
>
> (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]
>
>
>


[Non-text portions of this message have been removed]
Folks,

I constantly here how you call one of epicor business methods
or Business Objects with a customization but I m yet to see some example. I am
new to customization and would appreciate it if someone can provide some useful
example.

Thanks in advance

PLB




[Non-text portions of this message have been removed]
Hi Paul,

> I constantly here how you call one of epicor business methods
> or Business Objects with a customization but I m yet to see some example. I am
> new to customization and would appreciate it if someone can provide some useful
> example.

I put up at least one example in the Files section of the group (Under
C# if I recall) and I think there was at least one talk at
Perspectives by Jose.

Mark W.
Here's a Vstudio project with the code from our presentation. Let me know if
you have any trouble figuring it out.


On Tue, Feb 22, 2011 at 9:58 PM, Mark Wonsil <mark_wonsil@...> wrote:

>
>
> Hi Paul,
>
>
> > I constantly here how you call one of epicor business methods
> > or Business Objects with a customization but I m yet to see some example.
> I am
> > new to customization and would appreciate it if someone can provide some
> useful
> > example.
>
> I put up at least one example in the Files section of the group (Under
> C# if I recall) and I think there was at least one talk at
> Perspectives by Jose.
>
> Mark W.
>
>
>


[Non-text portions of this message have been removed]
Are you talking about calling Epicor BO's from within the Customizations or
from outside? You can do both the one for within the Customizations is
Trivial the other one is a bit tricker but still doable, could you tell me a
bit more of what you are trying to do and i'll try to throw a simple example
together for you.

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Tue, Feb 22, 2011 at 9:58 PM, Mark Wonsil <mark_wonsil@...> wrote:

>
>
> Hi Paul,
>
>
> > I constantly here how you call one of epicor business methods
> > or Business Objects with a customization but I m yet to see some example.
> I am
> > new to customization and would appreciate it if someone can provide some
> useful
> > example.
>
> I put up at least one example in the Files section of the group (Under
> C# if I recall) and I think there was at least one talk at
> Perspectives by Jose.
>
> Mark W.
>
>
>


[Non-text portions of this message have been removed]
I am speaking in general terms but what I am interested are those called from
within the customizations. e.g. Lets say I wanted to create a button on the MES
screen that once selected will end activity and clock-out the user in one go
instead of taking the several steps now done. Please do provide a simple
example, it would definitely be appreciated.




________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Cc: Mark Wonsil <mark_wonsil@...>
Sent: Wed, February 23, 2011 11:16:49 AM
Subject: Re: [Vantage] Programming question - calling BOS

Are you talking about calling Epicor BO's from within the Customizations or
from outside? You can do both the one for within the Customizations is
Trivial the other one is a bit tricker but still doable, could you tell me a
bit more of what you are trying to do and i'll try to throw a simple example
together for you.

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Tue, Feb 22, 2011 at 9:58 PM, Mark Wonsil <mark_wonsil@...> wrote:

>
>
> Hi Paul,
>
>
> > I constantly here how you call one of epicor business methods
> > or Business Objects with a customization but I m yet to see some example.
> I am
> > new to customization and would appreciate it if someone can provide some
> useful
> > example.
>
> I put up at least one example in the Files section of the group (Under
> C# if I recall) and I think there was at least one talk at
> Perspectives by Jose.
>
> Mark W.
>
>
>


[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/.

(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]
Thanks but I did not see the code from the presentation...



________________________________
From: Waffqle <waffqle@...>
To: vantage@yahoogroups.com
Sent: Wed, February 23, 2011 11:14:35 AM
Subject: Re: [Vantage] Programming question - calling BOS

Here's a Vstudio project with the code from our presentation. Let me know if
you have any trouble figuring it out.


On Tue, Feb 22, 2011 at 9:58 PM, Mark Wonsil <mark_wonsil@...> wrote:

>
>
> Hi Paul,
>
>
> > I constantly here how you call one of epicor business methods
> > or Business Objects with a customization but I m yet to see some example.
> I am
> > new to customization and would appreciate it if someone can provide some
> useful
> > example.
>
> I put up at least one example in the Files section of the group (Under
> C# if I recall) and I think there was at least one talk at
> Perspectives by Jose.
>
> Mark W.
>
>
>


[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/.

(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]