Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

xAPI session VS. COMAPI session

xAPI session VS. COMAPI session

xAPI session VS. COMAPI session

I want to build a program (.exe) that will use IAP licensing instead of lanpaks (you guess why!). Since ACCPACDataSource and ACCPACFieldEditControls seems to only use COMAPI sessions... is there a way to "cast" (or simulate) xApiSession in COMApiSession.

This is for ACCPAC Advantage Series 5.1A

Also, does anybody know if the SDK can be use in another language than C or CA-Realize (except the xApi) ?

Thank You.


RE: xAPI session VS. COMAPI session

I don't know if you can use and xAPI session withing a COMAPI session. I don't think so. This is because an xAPI session is designed to work outside of the ACCPAC UI and the COMAPI within. But i9f you can get the information needed to open an xAPI session (even hard coded) you can give it a try. I have'nt had a need to try it, have everything with the xAPI outside of ACCPAC. You can do anything the COMAPI can do with the xAPI. However, it may require some extra coding because you probably will not be able to use the same controls.

Thanks and Good Luck!


RE: xAPI session VS. COMAPI session

Thanx for the quick answer.

Wouldn't you happen to know a xApi way to get all Organizations ? Using the COMAPI I just use the ACCPACOrganizations class.. but this time, I want to show a list of all organization without having a session logged. I also can't figure out a way to open the orgs.ism file so I was wandering if their were a quick xApi class to do so.



RE: xAPI session VS. COMAPI session

I don't think that you can. The xAPI needs to login to a company before you can really do anything. I would think that you would have to read from the orgs.ism file, which is not easy to read from. May be easier to keep a list and update this list manually. After all how many times does one add a new company. This can be done in the registry or a file.

You can have the user add a company with a user name and open a test session (connection) to verify the information is valid, then store the verified information. This will build your list slowly but ensure that it is accuate. Of course the user will need to know the company ID and a valid user name

I'll try and have a closer look tomorrow.

Thanks and Good Luck!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close