You should not instantiate it. You just call it.



If you want to see ax example off how this is used through COM, then take a
look at class WebSession method SetSite.



  _____ 

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
Sent: Friday, August 19, 2005 12:18 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?



Thanks, I'll try to instantiate it through the COM..

Regards,
________________________________________________________________
Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  | O 012-6732288 | F 012-6732344


-----Original Message-----
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Lars Mikkelsen
Sent: 19 August 2005 01:13 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?


It is a global variable of class Application, so you only need to write
appl.SetDefaultCompany('xxx');



  _____

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
Sent: Thursday, August 18, 2005 12:29 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?



What is appl?

Regards,
________________________________________________________________
Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  | O 012-6732288 | F 012-6732344


-----Original Message-----
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Lars Mikkelsen
Sent: 18 August 2005 12:26 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?


Try appl.SetDefaultCompany



  _____

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
Sent: Tuesday, August 16, 2005 4:33 AM
To: Axapta Dev
Subject: [development-axapta] ChangeCompany on business connector?



Hi all,
Is there any way to change the current company when working through the
Axapta Business Connector, other than logging off and logging back in? I am
doing development that involves getting data from various companies, and
because I will be calling a fetch mathod on a table, I would rather not add
a changecompany call to the method itself (though using the current company
as a default parameter is one rather messy option).

Regards,
________________________________________________________________
Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED] | O 012-6732288 | F 012-6732344






  _____

YAHOO! GROUPS LINKS



*      Visit your group "development-axapta
<http://groups.yahoo.com/group/development-axapta> " on the web.

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>

*      Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service.



  _____



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







Yahoo! Groups Links












SPONSORED LINKS


Computer
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Progr
> &k=Computer+part&w1=Computer+part&w2=Progr
amming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvc
LTIDJ5FTkRJGsO11w>  part

Programming
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&
> &k=Programming+languages&w1=Computer+part&
w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.s
ig=cuhEClK4dU4wapXFmKisbQ>  languages

Microsoft
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Pr
> &k=Microsoft+axapta&w1=Computer+part&w2=Pr
ogramming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yf
eG_U6QaLfPOZZIud02Fg>  axapta


Support
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Pr
> &k=Support+exchange&w1=Computer+part&w2=Pr
ogramming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy
8yRGMzrmxdphyITTUeqA>  exchange







  _____

YAHOO! GROUPS LINKS



*      Visit your group "development-axapta
<http://groups.yahoo.com/group/development-axapta> " on the web.

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>

*      Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service.



  _____



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







Yahoo! Groups Links














  _____ 

YAHOO! GROUPS LINKS



*      Visit your group "development-axapta
<http://groups.yahoo.com/group/development-axapta> " on the web.
 
*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
 
*      Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service.



  _____ 



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





YAHOO! GROUPS LINKS




Reply via email to