You can read Axapta Help Documentation, also you can find example about COM
Connector on MSDN.
Firstly, you must register AxaptaCOMConnector, after that you must add
reference to your project.
*try {*
*Axapta axaptaApp = new AxaptaClass() * // Create Axapta object to connect
to Axapta
*axaptaApp.Logon("Username","","",""); * // Logon to Axapta
*IAxaptaRecord tblUtilIdElements = axaptaApp.CreateRecord("UtilIdElements");
* // Create new UtilIdElements record object
*axaptaApp.ExecuteStmt("Select Name FROM %1 GROUP BY Name WHERE
%1.RecordType ==
UtilElementType::Table",tblUtilIdElements,null,null,null,null,null); *//
This method executes statement in Axapta. In this sample you can find all
table names in Axapta. Axapta stores this information layer based in
UtilIdElements table.
*while(tblUtilIdelements.Found)*
*{*
*string tableName = tblUtilIdelements.get_field("Name");*
*MessageBox.Show(tableName);*
*}*
*axaptaApp.Logoff();*
*}*
*catch (Exception ex)*
*{*
MessageBox.Show("Error: " + ex.Message);
*}*
**
I hope this sample can help you.
Best Regards,
Anil Ozay
MBSCP, MCP
Software Engineer, Axapta Specialist
Anadolu Group (www.bilisimanadolu.com)
mail : [EMAIL PROTECTED]
On 4/26/06, eya_parungao <[EMAIL PROTECTED]> wrote:
> Hi everyone!
>
> I'm developing in C# and we need to connect to Axapta. I'm new with
> using the AxaptaCOMConnector.. Is there anyone who knows how I could
> get the list of all existing tables in the Axapta database using this?
>
> I would really appreciate your help. God bless!
>
>
>
>
>
>
>
>
> SPONSORED LINKS
> Computer part<http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvcLTIDJ5FTkRJGsO11w> Programming
> languages<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=cuhEClK4dU4wapXFmKisbQ> Microsoft
> axapta<http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yfeG_U6QaLfPOZZIud02Fg> Support
> exchange<http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy8yRGMzrmxdphyITTUeqA>
> ------------------------------
> 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]<[EMAIL PROTECTED]>
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
--
[Non-text portions of this message have been removed]
SPONSORED LINKS
Computer part | Programming languages | Microsoft axapta |
Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.