577 Commits

Author SHA1 Message Date
Javier Abadia
d681022d0a refactored attachmentsStore into offlineFeaturesManager (and not in each layer) 2014-04-15 14:09:15 +02:00
Javier Abadia
53da2e734a added getAllAttachments() method 2014-04-15 14:08:04 +02:00
Javier Abadia
89fced9e79 much more readable code 2014-04-15 12:45:05 +02:00
Javier Abadia
12be0cd6d6 now we can upload attachments and delete them from indexeddb afterwards 2014-04-15 12:30:30 +02:00
Javier Abadia
d92acc87b3 implemented delete() method 2014-04-15 12:01:07 +02:00
Javier Abadia
9470f24990 now, uploading attachments works (not complete) 2014-04-15 11:46:38 +02:00
Javier Abadia
363396faea fixed getAttachmentsByFeatureLayer() to support negative featureIds
fixed replaceFeatureId() method to allow changes to be really written
2014-04-15 11:45:09 +02:00
Javier Abadia
fda270c218 almost working for uploading new attachments 2014-04-14 18:31:29 +02:00
Javier Abadia
db7f2b1f45 add getAttachmentsByFeatureLayer() method to attachmentsStore 2014-04-14 18:00:04 +02:00
Javier Abadia
0f76800d34 allow time for changes to persist 2014-04-14 17:42:12 +02:00
Javier Abadia
25d427faaf added replaceFeatureId() method to low level attachmentsStore module 2014-04-14 17:34:41 +02:00
Javier Abadia
20578f3bf3 more unit testing 2014-04-14 13:38:58 +02:00
Javier Abadia
f57f22dd7a keep working in attachment unit tests 2014-04-14 12:11:36 +02:00
Javier Abadia
6638bd9a0f Merge branch 'jabadia-attachments' of github.com:jabadia/offline-editor-js into jabadia-attachments 2014-04-14 11:25:22 +02:00
Javier Abadia
701789f6ad moved attachments testing into separate test suite 2014-04-10 23:10:13 +02:00
Javier Abadia
9ca50f6f00 started writing unit tests for attachment management 2014-04-10 22:48:46 +02:00
Javier Abadia
d93ff253da new method to delete all attachments of a feature 2014-04-10 22:48:46 +02:00
Javier Abadia
3db9f5801d reminder of task to do 2014-04-10 22:48:46 +02:00
Javier Abadia
71b5e52b1e comments for next steps 2014-04-10 22:48:45 +02:00
Javier Abadia
74d6ec5563 store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore 2014-04-10 22:48:45 +02:00
Javier Abadia
a1225faaac noticed a potential problem if we have multiple input nodes or multiple files 2014-04-10 22:48:45 +02:00
Javier Abadia
e13b12904d store attachments in local storage
query them when showing the popup (can't display them though)
2014-04-10 22:48:45 +02:00
Javier Abadia
00b7abb581 already read file(s) from input node into string(s) 2014-04-10 22:48:45 +02:00
Javier Abadia
1de689bf3d delete all attachments after testing 2014-04-10 22:48:44 +02:00
Javier Abadia
7795fe0235 changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API 2014-04-10 22:48:44 +02:00
Javier Abadia
6569b8353e unit testing fo attachmentsStore.js 2014-04-10 22:48:44 +02:00
Javier Abadia
2c43e07968 low level functions in attachmentsStore.js 2014-04-10 22:48:44 +02:00
Javier Abadia
44adb78246 renamed attachmentStore.js file 2014-04-10 22:48:44 +02:00
Javier Abadia
fe09a5d329 code cleanup 2014-04-10 22:48:44 +02:00
Javier Abadia
ca59ea1820 some comments about what needs to be done 2014-04-10 22:48:43 +02:00
Javier Abadia
4481804122 initial scaffold for attachments handling 2014-04-10 22:48:43 +02:00
Javier Abadia
17a2b579c0 relative path needed here 2014-04-10 22:48:43 +02:00
Javier Abadia
2214911a8a copied from API doc samples
https://developers.arcgis.com/javascript/jssamples/ed_attachments.html
2014-04-10 22:48:43 +02:00
Javier Abadía
5223c8b6f3 Merge pull request #161 from andygup/feature_cache_sample
App cache plus store features sample
2014-04-10 22:46:58 +02:00
andygup
7ea7fb9a34 don't need the geometry when using snapshot mode. 2014-04-10 11:45:02 -06:00
andygup
0ea8dc5722 finished tweaking app readme 2014-04-10 10:39:10 -06:00
andygup
fa94d6deb8 added readme info at top of sample 2014-04-10 10:22:08 -06:00
andygup
efb3401fc9 minor css cleanup 2014-04-10 09:56:33 -06:00
andygup
f7c30fb1ed text timer fade out working 2014-04-10 09:48:08 -06:00
andygup
8e780e7552 attribute inspector almost completely working 2014-04-10 09:41:20 -06:00
andygup
cf15a81752 create manifest for appcache-features.html 2014-04-09 17:15:50 -06:00
Javier Abadia
a36aa531a3 started writing unit tests for attachment management 2014-04-10 00:20:52 +02:00
andygup
02fce437d8 online-offline functionality now working. 2014-04-09 15:27:19 -06:00
Javier Abadia
0d66b7e4c9 new method to delete all attachments of a feature 2014-04-09 23:19:23 +02:00
andygup
b07e06e494 Now able to assign manifest name in package.json 2014-04-09 14:27:26 -06:00
andygup
ca75b1faef created dedicated manifest2.appcache file for tiles sample. 2014-04-09 14:26:40 -06:00
andygup
84ca1048e4 moved manifest back to root for ease of use with samples. 2014-04-09 13:28:25 -06:00
andygup
43a7022550 this query works locally and offline! 2014-04-09 12:52:09 -06:00
andygup
898a70a1fe added objectId to query. Still making external query requests. 2014-04-09 12:37:35 -06:00
Javier Abadia
1291976bbb reminder of task to do 2014-04-09 18:10:46 +02:00