1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    34
    Vote Rating
    0
    pashute is an unknown quantity at this point

      0  

    Default Documentation missing: Example or Tutorial for CouchDB or other noSQL database

    Documentation missing: Example or Tutorial for CouchDB or other noSQL database


    For Architect 2

    Please give us a simple list of components and steps to get to CouchDB data.
    Maybe with two stores - readOnlyStore and readWriteStore

    Please include
    • Which store/proxy/reader to use
    • How to set it up in Architect
    • How to get CouchDB to replicate data locally (from remote) and remotely (from local updates).
    • Have a slightly complex record with header / details
    • How to show in list and details panel - using Architect
    If time is a concern, and you can give a cryptic answer only, I could try it, and then post a full "tutorial" here.

    Thanks for the great work you do.

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    I'm not sure this is a bug ;p

    Though I wouldn't mind a community member doing a post about use Architect and CouchDB
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    34
    Vote Rating
    0
    pashute is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by Phil.Strong View Post
    I'm not sure this is a bug ;p

    Though I wouldn't mind a community member doing a post about use Architect and CouchDB
    Well what do you call missing docs. Its not only with couchDB - that's just the best example of the needed functionality.
    All I need is a cryptic answer on each of the items I wrote. I'll try to do it.

    Example of answer I would hope to get from you guys:
    Q. Which store/proxy/reader to use?
    A. Memory/JsonP/Json

    Q. How to set up in Architect
    A. * Store config: { userClassName:FooStore alias:fooStore
    * CouchDB view: { fooView: deptId, deptName -- { prodId, prodName
    * FooStore.blabla add Fn: { code:
    Code:
     foo bar(lepsum ripmus);
    Q. How to get CouchDB to replicate data locally (from remote) and remotely (from local updates).
    A. * FooStore.AutoDoodle : true
    * FooController.load: code: {

    Code:
                   
     // there
     var couchUrl = SenchaEasy.MakeUrl("http", "senchaCouch.org", ouchDb);
     var encryptedPass =  SenchaEasy.EncryptPassGenious("nobody.William.fever.guest.thus12");
     Couch.Replicate(local2Remote, username, encryptedPass, couchUrl);
    
     // and back
     var encryptedPass =  SenchaEasy.EncryptPassGenious("of.Kourse.dets.note.mine.pashvert1$#@!");

  4. #4
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    Likely you'd be using a custom store that would be included using application requires.

    I found this: http://wiki.apache.org/couchdb/GettingStartedWithExtJS

    In truth I haven't played with CouchDb yet
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  5. #5
    Sencha User
    Join Date
    May 2012
    Posts
    34
    Vote Rating
    0
    pashute is an unknown quantity at this point

      0  

    Default


    I saw that. But from an "Architect" standpoint, I didn't know how to implement that.

    Could you spend a few minutes on it, just for insights. You don't need to actually fix the project.

    I'll follow your leads and get a full blown example working.

  6. #6
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    Yeah so you would be adding the pre-built 3rd party store that was mentioned before either to the local folder so it's hosted together with the project or elsewhere reachable by url.

    Adding a javascript resource to your project
    url: resources/couchstore/store.js (clearly just making this up)

    Then you could certainly add code your application launch that created a new Ext.ux.data.CouchStore with a particular store id

    Then assign that store id to your combo, grid, etc ...
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  7. #7
    Sencha User
    Join Date
    May 2012
    Posts
    34
    Vote Rating
    0
    pashute is an unknown quantity at this point

      0  

    Default


    Will I see that storeID in my listView config for Store, in the Architect 2 config inspector?

  8. #8
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    No but you can type it in easily
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar