Closed (fixed)
Project:
DrupalGap
Version:
7.x-1.1
Component:
Module Code
Priority:
Major
Category:
Support request
Assigned:
Reporter:
Anonymous (not verified)
Created:
1 May 2012 at 09:39 UTC
Updated:
21 Apr 2015 at 10:04 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedany idea?
when i press "back to content" button in 'node.html' page, back to 'content.html' that is cached
it has $("#drupalgap_page_content_list").listview("destroy").listview();
but 'content.html' can't show new content list
how can i force 'content.html' that show new content list every time
Comment #2
Anonymous (not verified) commentedin content.js i add
drupalgap_views_datasource_retrieve.local_storage_remove(views_options);
before
drupalgap_views_datasource_retrieve.resource_call(views_options);
and list show change, every time that 'content.html' is viewed
is it ok?
Comment #3
tyler.frankenstein commentedYou should be able to pass in:
views_options.load_from_local_storage = 0;
And this will force a reload on the data instead of pulling from the cache. I have been thinking of automated ways for this to be accomplished, but for now, the 'load_from_local_storage' option set to 0 would be your best bet. Check out this page to see the options you can pass in:
https://github.com/signalpoint/DrupalGap/blob/master/drupalgap/services/...
Comment #4
Anonymous (not verified) commentedit's perfect!
thank you so much, for your reply and for your great job
Comment #5
Anonymous (not verified) commented.
Comment #6
Anonymous (not verified) commented.
Comment #7
tyler.frankenstein commentedComment #8
s.daniel commentedThanks, for your support and code.
It seems to me views_datasource.js currently doesn't support the setting and requires a small change in order to work:
https://github.com/sDaniel/DrupalGap/commit/f2a09000f1494f55bf10fd2be9d1...
Comment #9
Anonymous (not verified) commentedyes,
I've changed it too
Comment #10
zhongguo999999 commentedIn this section we will explain how to fetch data from remote sources:
1. in \assets\www\drupalgap\pages\content.js
2. in \assets\www\drupalgap\services\views_datasource.js,
Comment #11
tyler.frankenstein commentedThe latest version of the 7.x-1.x-alpha branch of the mobile application development kit has taken care of the bugs mentioned here. If you continue to have problems, please feel free to re-open this issue if it is similar and explain in detail what is happening. Otherwise create a new issue, thanks!