-
23 Sep 2012 11:08 AM #1
MY FIRST SHAREPOINT REST (JSON) to Sencha
MY FIRST SHAREPOINT REST (JSON) to Sencha
I have created my first test "JSON" MS SharePoint 2010 service:
'http://moss.irgia.com/_vti_bin/RestInSPWithDataFromSQL/RestDataFromSQL.svc/GetItem/1'
I can not seem to connect it...I appreciate ANY help:
HERE'S MY MODEL (Below is my model):
---------Code:Ext.define('App.model.RestTreeTaskDetail', { extend: 'Ext.data.Model', config: { idProperty: 'ID', autoLoad: false, fields: [ { name: 'ID', type: 'int' }, { name: 'TREE_NUM', type: 'int'}, { name: 'ID_TASK_MASTER', type: 'int'}, { name: 'TREE_STATUS_DOMAIN_CODE', type: 'int'}, { name: 'TREE_STATUS_DOMAIN_VALUE', type: 'string'}, { name: 'TREE_STATUS_DATE', type: 'date', format: 'd-m-Y'}, { name: 'SPECIES_DOMAIN_CODE', type: 'int'}, { name: 'SPECIES_DOMAIN_VALUE', type: 'string'}, { name: 'RATING', type: 'float'}, { name: 'TREE_TYPE', type: 'string'}, { name: 'GROW_SPACE_DOMAIN_CODE', type: 'int'}, { name: 'GROW_SPACE_DOMAIN_VALUE', type: 'string'}, { name: 'LAND_USE_DOMAIN_CODE', type: 'int'}, { name: 'LAND_USE_DOMAIN_VALUE', type: 'string'}, { name: 'DSH', type: 'int'}, { name: 'HEIGHT', type: 'int'}, { name: 'CROWN', type: 'int'}, { name: 'TRUNK', type: 'int'}, { name: 'BRANCH', type: 'int'}, { name: 'TWIG', type: 'int'}, { name: 'FOLLAGE', type: 'int'}, { name: 'INSECTS_DISEASE', type: 'int'}, { name: 'ROOTS', type: 'int'}, { name: 'CALC_TOTALS', type: 'int'}, { name: 'CALC_CONDITION', type: 'float'}, { name: 'AESTHETIC', type: 'int'}, { name: 'SPECIMENS', type: 'int'}, { name: 'CONTRIBUTION', type: 'int'}, { name: 'PLACEMENT', type: 'int'}, { name: 'TARGET', type: 'int'}, { name: 'SIZE', type: 'int'}, { name: 'PROBABILITY', type: 'int'}, { name: 'CALC_RISK_RATING', type: 'float'}, { name: 'MULTI_DBH_DOMAIN_CODE', type: 'int'}, { name: 'MULTI_DBH_DOMAIN_VALUE', type: 'string'}, { name: 'NUM_STEMS_DOMAIN_CODE', type: 'int'}, { name: 'NUM_STEMS_DOMAIN_VALUE', type: 'string'}, { name: 'GRID', type: 'string'}, { name: 'GUID', type: 'string'}, { name: 'CALC_TREE_VALUE', type: 'float'}, { name: 'DESIGNATIONS', type: 'string'} ], proxy: { type: 'jsonp', url: 'http://moss.irgia.com/_vti_bin/RestInSPWithDataFromSQL/RestDataFromSQL.svc/GetItem/1' } } })
HERE'S MY STORE:
-------------------Code:Ext.define('App.store.RestTreeTaskDetail', { extend: 'Ext.data.Store', alias: 'store.resttreetaskdetail', config: { model: 'App.model.RestTreeTaskDetail', autoSync: false, autoLoad: false, proxy: { type: 'localstorage', id: 'rgia-sprest' }, storeId: 'idRestTreeTaskDetail' } })
ANY SUGGESTIONS ON HOW TO CONNECT THIS TO A FORM/LIST?Last edited by jay@moduscreate.com; 24 Sep 2012 at 8:33 AM. Reason: CODE Tags are there for a reason. please use them :)
-
24 Sep 2012 8:32 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
1) Please turn off your caps lock. IT IS CONSIDERED YELLING AND PEOPLE WILL THINK THAT YOU ARE RUDE!
2) Please wrap your code in [code] tags! How would you expect people to read your code if it's not properly formatted?
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
24 Sep 2012 8:34 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
You have two conflicting things.
1) If you plan on using a remote JSONP proxy, then define that in your store.
2) You can't mix and match local storage proxies with JSONP. So remove that.
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
24 Sep 2012 9:10 AM #4
Thank you Jay for both your technical response and corrective protocol help

I'm an old-dog trying to learn new tricks.
-
24 Sep 2012 9:12 AM #5
Jay, i work from home, and have a short window in which to prototype an app...would you be willing to spare 15 minutes to have a phone conversation?
-
24 Sep 2012 11:44 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
Unfortunately, not. I am on a tight deadline myself with Sencha Touch in Action among other things like making sure my small business continues to run smoothly. :-\

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
24 Sep 2012 1:26 PM #7
Thank you very much...Great help
Thank you very much...Great help
Thanks for your help...i nailed it thanks to your assistance



Reply With Quote