1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    9
    Vote Rating
    0
    rgia is on a distinguished road

      0  

    Default 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 :)

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    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?

  3. #3
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    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.

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    9
    Vote Rating
    0
    rgia is on a distinguished road

      0  

    Default


    Thank you Jay for both your technical response and corrective protocol help

    I'm an old-dog trying to learn new tricks.

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    9
    Vote Rating
    0
    rgia is on a distinguished road

      0  

    Default


    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?

  6. #6
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    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. :-\

  7. #7
    Sencha User
    Join Date
    Feb 2012
    Posts
    9
    Vote Rating
    0
    rgia is on a distinguished road

      0  

    Default Thank you very much...Great help

    Thank you very much...Great help


    Thanks for your help...i nailed it thanks to your assistance

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi