Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xAPI session VS. COMAPI session

Status
Not open for further replies.

Silverf0x

Programmer
Jul 24, 2003
5
CA
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.

-JP
 
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!

zemp
 
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.

Thanx

-JP
 
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!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top