App Inventor 2 - HTTP Requests

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
User avatar
Goundski
Posts: 6
Joined: 2016-02-24 11:25
Location: South Africa
Contact:

App Inventor 2 - HTTP Requests

Post by Goundski » 2016-03-08 08:39

Hi

I am trying to create an Android mobile application using App Inventor 2 (http://appinventor.mit.edu/explore).
I am not an advanced coder at all and have done mostly everything thus far based on self learning and figuring it out as I go.

My issue at hand is that I am trying to utilise the App Inventor 2 - HTTP Request (Non-visible component that provides functions for HTTP GET, POST, PUT, and DELETE requests) to add, delete and view data in my AppGinni webapp.

My AppGini app is very simple setup.
3 Tables: tblPriceList, tblSuppliers, tblProducts
It links as follows. The tblPriceList has a supplier field that links to tblSupplier Name field and a product field that links to tblProduct Name field. Then there are other basic user fields like date, description, price etc.

So if I want to add a product via App Inventor 2 What should I do. I created text boxes and some code as per screenshots.
Attachments
sc1.JPG
sc1.JPG (37.12 KiB) Viewed 10095 times
The more we struggle for life (as pleasure), the more we are actually killing what we love.

User avatar
Goundski
Posts: 6
Joined: 2016-02-24 11:25
Location: South Africa
Contact:

Re: App Inventor 2 - HTTP Requests

Post by Goundski » 2016-03-08 08:45

More Screenshots.
Attachments
sc3.1.jpg
Screenshot 3
sc3.1.jpg (60.77 KiB) Viewed 10045 times
sc2.1.jpg
Screenshot 2
sc2.1.jpg (54.77 KiB) Viewed 10045 times
The more we struggle for life (as pleasure), the more we are actually killing what we love.

User avatar
Goundski
Posts: 6
Joined: 2016-02-24 11:25
Location: South Africa
Contact:

Re: App Inventor 2 - HTTP Requests

Post by Goundski » 2016-03-15 13:11

Okay, I think I may have found the solution in this YouTube video.
https://www.youtube.com/watch?v=fvH865tKOLE

I managed to update my AppGini db via mobile app following this video instructions.

Enjoy!
The more we struggle for life (as pleasure), the more we are actually killing what we love.

Post Reply