Connecting to tables in external databases

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ask180
Posts: 161
Joined: Thu Oct 04, 2012 11:40 pm

Connecting to tables in external databases

Post by ask180 »

I have successfully connected to tables in an external MySQL database from AwareIM.

The last step is to define shortcuts, which I believe is allowed, but I get the following error:

"Only shortcut attributes can be added to business objects persisted in external tables. However, you do not have any reference attributes defined, so shortcut attributes cannot be created."

The external tables have foreign key constraints (eg: CONSTRAINT FOREIGN KEY (InstitutionID) REFERENCES institution (ID)), but the error persists.

So, can anyone explain to an SQL novice what is meant by "reference attributes"? I would have thought that foreign key constraints would do it.
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Connecting to tables in external databases

Post by aware_support »

When you were discovering attributes you should have been asked a question whether to use foreign key constrains to create references. Make sure that you answer yes.
Aware IM Support Team
ask180
Posts: 161
Joined: Thu Oct 04, 2012 11:40 pm

Re: Connecting to tables in external databases

Post by ask180 »

Thanks Support,

Works very well.
Post Reply