I have been hunting around this forum and the documentation to see if there is a best practice in SmartGWT to call a URL and process the response.
I have a URL that I want to send data to (GET is fine) within a SmartGWT application. It's triggered from clicking a button.
The URL contains an aggregation of data from several form items on the form. However it's an action to insert this information into a queue, so it's not associated with a table on the server side.
This is really an Ajax async call, but I am passing back a status_code and status_text as JSON from that back end.
I am experimenting with using RestDataSource for this, but I am not convinced that this is the correct way to do this. There must be loads of other people who have already encountered this sort of problem before.
I have a URL that I want to send data to (GET is fine) within a SmartGWT application. It's triggered from clicking a button.
The URL contains an aggregation of data from several form items on the form. However it's an action to insert this information into a queue, so it's not associated with a table on the server side.
This is really an Ajax async call, but I am passing back a status_code and status_text as JSON from that back end.
I am experimenting with using RestDataSource for this, but I am not convinced that this is the correct way to do this. There must be loads of other people who have already encountered this sort of problem before.