HumZ
Posts: 0
Joined: Thu Nov 15, 2012 10:11 am

Repeat service invocation

I'm using a REST API service to populate a grid including thumbnails via URL, when I click on each thumbnail, it invokes another service to download the source image on a different screen. When I go back to the thumbnail view, every subsequent click shows the same image. I was able to determine that the service is only invoked once from the first click, but not again. Any suggestions to overcome this issue?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Repeat service invocation

Can you post screen shots from your app and the steps for this to happen?

HumZ
Posts: 0
Joined: Thu Nov 15, 2012 10:11 am

Repeat service invocation

Please find attached screens.

Image Image Image Image Image Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Repeat service invocation

Sorry, I meant screen shots from the actual running app.

HumZ
Posts: 0
Joined: Thu Nov 15, 2012 10:11 am

Repeat service invocation

Hi Max,

Please find attached.

Also, I've found that using a button to force another REST API call, the page refreshes the image component from the service, suggesting it caches the values and wouldn't invoke the service for subsequent page navigation.

The intended usability is by tapping the thumbnail, which navigates to a second page, invokes REST API service call, and downloads the full image, and tap the downloaded image returns to the main page. Then if I click a second link, it should navigate to the second page again, invoke the service, download the second file. I hope I'm making sense.

Thanks for y our assistance. Image Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Repeat service invocation

Instead of tap, try using click event.

Also, how do you pass information to know which image to download on the second page?

Return to “Issues”