(free) native app RAD with REST

Contains tips for configurators working with Aware IM
eagles9999
Posts: 2241
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: (free) native app RAD with REST

Post by eagles9999 »

Watch this space. ;-)
Cheers,
Mark
_________________
AwareIM 6.0, 8.4, 8.6 (build 2920) MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Chrome, Edge
Upcloud
Image
hpl123
Posts: 2382
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: (free) native app RAD with REST

Post by hpl123 »

Giddy up :D
Henrik (V8 Developer Ed. - Windows)
Jaymer
Posts: 2030
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: (free) native app RAD with REST

Post by Jaymer »

@support should give us an update on this.

Mark was talking with him to put these updates into Aware.
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
eagles9999
Posts: 2241
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: (free) native app RAD with REST

Post by eagles9999 »

Ta Da!!!! ;-)

Build 2831 released....

Bugs:
1. It was not possible to edit a special "session object"
2. Unicode characters could not be used in passwords and user names
3. Custom queries embedded in forms were unnecessarily resized
4. Reordering items in query could not be done - the dialog always issued an error message

Improvements:
1. PUT and DELETE HTTP verbs supported when exposing REST services
Cheers,
Mark
_________________
AwareIM 6.0, 8.4, 8.6 (build 2920) MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Chrome, Edge
Upcloud
Image
hpl123
Posts: 2382
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: (free) native app RAD with REST

Post by hpl123 »

eagles9999 wrote: Tue Dec 01, 2020 1:31 am Ta Da!!!! ;-)

Build 2831 released....

Bugs:
1. It was not possible to edit a special "session object"
2. Unicode characters could not be used in passwords and user names
3. Custom queries embedded in forms were unnecessarily resized
4. Reordering items in query could not be done - the dialog always issued an error message

Improvements:
1. PUT and DELETE HTTP verbs supported when exposing REST services
Beeeehutiful 😁
Henrik (V8 Developer Ed. - Windows)
Jaymer
Posts: 2030
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: (free) native app RAD with REST

Post by Jaymer »

Improvements:
1. PUT and DELETE HTTP verbs supported when exposing REST services
What about ID being sent in the REST reply?
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
eagles9999
Posts: 2241
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: (free) native app RAD with REST

Post by eagles9999 »

Best you put together a comprehensive demo, video and explanation of the problem and send it to Support Jaymer.
We have found that the more detail that we can provide improves the chances of getting the changes included.

The package we sent for PUT and DELETE was a LOT of work but worth the effort.
Cheers,
Mark
_________________
AwareIM 6.0, 8.4, 8.6 (build 2920) MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Chrome, Edge
Upcloud
Image
Jaymer
Posts: 2030
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: (free) native app RAD with REST

Post by Jaymer »

Its pretty simple Mark - he suppresses the internal UNIQUE ID # in REST output.
This ID "SHOULD BE", I guess, but cannot test, the ID thats used in Appgyver.
No video or demo needed - just provide a way to get the ID.
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
hpl123
Posts: 2382
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: (free) native app RAD with REST

Post by hpl123 »

Jaymer wrote: Tue Dec 01, 2020 4:42 am Its pretty simple Mark - he suppresses the internal UNIQUE ID # in REST output.
This ID "SHOULD BE", I guess, but cannot test, the ID thats used in Appgyver.
No video or demo needed - just provide a way to get the ID.
Does this mean the integration does not work? The ID, is it for identifying what resource to update/delete?
Henrik (V8 Developer Ed. - Windows)
UnionSystems
Posts: 187
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Re: (free) native app RAD with REST

Post by UnionSystems »

We've been testing out AppGyver trialling replacing an existing native app. It has a great user interface and active forum and is showing promise as a way of leveraging AwareIM's REST facilities. One issue we have is how AwareIM constructs a REST response when it returns a SINGLE item where MULTIPLE items are possible. The same AwareIM REST service has a different response structure if a SINGLE result is given.

SINGLE result return:

Code: Select all

{
Positions: "Sales Representative",
NumberFullName: "Cathy Smith",
Category: "Non Member Administrator",
TxnStatus: "Does not pay"
}
MUTLIPLE results return (not the addtion of response : [ ])

Code: Select all

{
response: [
{
Positions: "Representative",
NumberFullName: "John Smith",
Category: "School",
TxnStatus: "Financial"
},
{
Positions: "Assoc Representative",
NumberFullName: "Joe Blow",
Category: "School",
TxnStatus: "Financial"
}
]
}
Ideally the SINGLE result would also return response : [ ].

We've setup login in AppGyver to handle the different responses but it's messy (have to make multiple REST requests).

We've only tested this in 8.4 (not 8.5)
AWS Linux, Windows Server, AIM 8.4 & 8.6
UnionSystems
Posts: 187
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Re: (free) native app RAD with REST

Post by UnionSystems »

I should add AppGyver is very good BUT it is no replacement for AwareIM. Using AppGyver has reminded us of how very much AwareIM does!!! AppGyver is looking very promising as a platform to present AwareIM managed data into a "native" mobile App.
AWS Linux, Windows Server, AIM 8.4 & 8.6
hpl123
Posts: 2382
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: (free) native app RAD with REST

Post by hpl123 »

UnionSystems wrote: Tue Jan 05, 2021 12:31 am I should add AppGyver is very good BUT it is no replacement for AwareIM. Using AppGyver has reminded us of how very much AwareIM does!!! AppGyver is looking very promising as a platform to present AwareIM managed data into a "native" mobile App.
Yeah, Appgyver is pretty great but nothing compare to Aware :). Would be nice to hear an update on what you end up doing with Appgyver. PS: Did you look at the previous posts in this thread, Mark had some similar issues with multiple entries etc. and I believe he sorted it out (ask him otherwise as I believe he is quite far in developing in Appgyver) + there has been some new updates in the latest build to enable better Appgyver integration.
Henrik (V8 Developer Ed. - Windows)
UnionSystems
Posts: 187
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Re: (free) native app RAD with REST

Post by UnionSystems »

Hi Henrik,

AppGyver is still looking very good. Need to do user acceptance testing of the App yet but it seems to deliver exactly what we want. I look forward to demonstrating the App at the next AwareIM conference. The gossip is there is a good chance it will be held in 2037.

For client side storage AppGyver uses JSON text. A capacity to handle SQLite would be better but the JSON seems adequate and handles large data structures suprisingly quickly. You can get a REST JSON response from AwareIM and simply store it locally on the AppGyver App. Another thing to re-learn in AppGyver is that you need to use variables ("variables" is something one forgets when using AwareIM!).

Our issue with the AwareIM REST data is basically when you are getting a LIST of results (eg a list of People) the JSON structure returned for a LIST of 1 person is different from a LIST of more than 1. To resolve this we adding a blank filler record to all REST services that return a list so that all result have teh same "response" structure. We then skip that blank entry in the App. This works, just a bit ugly :-(
AWS Linux, Windows Server, AIM 8.4 & 8.6
hpl123
Posts: 2382
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: (free) native app RAD with REST

Post by hpl123 »

Thanks for the update and looking forward to see it live, good to know Appgyver works fully with Aware.

2037 you say haha, awesome, then I can take my flying car directly to the conference 8). Having it in Australia next time would be nice, I never been.
Henrik (V8 Developer Ed. - Windows)
PointsWell
Posts: 1169
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: (free) native app RAD with REST

Post by PointsWell »

Post Reply