Return multiple instances

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
jannes
Posts: 105
Joined: Tue Jul 02, 2019 12:22 pm

Return multiple instances

Post by jannes »

I would like to get a list of records in the response of a service.

The process is :
FIND ALL Regio

"The service reply will return object" : Regio

"Multiple instances of the object will be returned" is ticked.

See attachment.

Unfortunately the service will not give a response. The system hangs.

So the question is how to get a (JSON) response with multiple records ?

I expect a response like :

{
{
"Regio": "North",
"Number": 122
},
{
"Regio": "South",
"Number": 123
},
{
"Regio": "West",
"Number": 125
}
}
Attachments
multi.png
multi.png (17.43 KiB) Viewed 8175 times
Jaymer
Posts: 2528
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Return multiple instances

Post by Jaymer »

Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
jannes
Posts: 105
Joined: Tue Jul 02, 2019 12:22 pm

Re: Return multiple instances

Post by jannes »

Hi Jaymer,

Thanks replying.

It works with some tables, but not with all tables, very strange.

In that case a database-error is returned :
"Could not connect to address=(host=localhost)(port=3306)(type=master) : Address already in use:"
After this I have to restart AIM or reboot the server.

I'm not able to discover what's the reason..

regards
Jannes
AIM 8.7
Jaymer
Posts: 2528
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Return multiple instances

Post by Jaymer »

Weird error
Not tried on 8.7

Where exactly is the error coming from? Aware? Tomcat? Etc. post an image
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply