1. #11
    Sencha User
    Join Date
    Dec 2007
    Posts
    41
    Vote Rating
    1
    PaulyWolly is on a distinguished road

      0  

    Default Not able to get MultiSelect example ported over by Loiane working

    Not able to get MultiSelect example ported over by Loiane working


    First I would like to say thank you so much for taking time to do this. Your examples for MVC were the first I was really able to understand when I was a newbie and now I feel much more confident using MVC within the framework, thank to your efforts. Your book is also very refreshing. I agree Jay Garcia's book, "ExtJS in Action" is a VERY good book for newbies. I am still looking forward to the new revised "EXT in Action" for version 4.

    Anyway, I have been working on a project where I need a multi-select which has a checkbox in the list to the left of each entry in the list for the combo, that is retrieved from a DB call. I have found one that works, using a store with API and proxy, but the trouble I am having is I am not able to figure out how to get the entries that I "pick" in the list to send back to the server as a CSV list instead of as an array. I am passing back static values as well as items from the combobox that I will "pick" from the list to send back to the server and store in the database. I was hoping to get your multi-select to work, since you are also using a MySQL database for your source. Is there something I am missing? I also notice that you call a DB called blog, with cities and states listings and the SQL to create these tabels is not in your ZIP for the multi-select. Can you help me to get thsi working or help me to get the multi-select working to send CSV to the server instead of array?
    Thanks again

  2. #12
    Sencha User
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
    d.velev is on a distinguished road

      0  

    Default Nice WORK

    Nice WORK


    Hello Loiane,

    Very nice work about examples,

    Can you implement extjs4-mvc-json-crud-php-mysql to Sencha Project ?
    This will be best example for most of the people here.

  3. #13
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    1
    Jmtrimble is on a distinguished road

      0  

    Default


    This is great!Thanks!

  4. #14
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      0  

    Default


    Quote Originally Posted by d.velev View Post
    Hello Loiane,

    Very nice work about examples,

    Can you implement extjs4-mvc-json-crud-php-mysql to Sencha Project ?
    This will be best example for most of the people here.
    Thank you everyone!

    Hi,

    I am working on it. Also, I am writing a step-by-step to show how to implement it from scratch. It iwll be published on my Portuguese blog first, then I will translate it to English and post on my other blog.
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  5. #15
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      0  

    Default


    Quote Originally Posted by PaulyWolly View Post
    First I would like to say thank you so much for taking time to do this. Your examples for MVC were the first I was really able to understand when I was a newbie and now I feel much more confident using MVC within the framework, thank to your efforts. Your book is also very refreshing. I agree Jay Garcia's book, "ExtJS in Action" is a VERY good book for newbies. I am still looking forward to the new revised "EXT in Action" for version 4.

    Anyway, I have been working on a project where I need a multi-select which has a checkbox in the list to the left of each entry in the list for the combo, that is retrieved from a DB call. I have found one that works, using a store with API and proxy, but the trouble I am having is I am not able to figure out how to get the entries that I "pick" in the list to send back to the server as a CSV list instead of as an array. I am passing back static values as well as items from the combobox that I will "pick" from the list to send back to the server and store in the database. I was hoping to get your multi-select to work, since you are also using a MySQL database for your source. Is there something I am missing? I also notice that you call a DB called blog, with cities and states listings and the SQL to create these tabels is not in your ZIP for the multi-select. Can you help me to get thsi working or help me to get the multi-select working to send CSV to the server instead of array?
    Thanks again
    Hi,

    Thanks!

    Here is the sql script: https://github.com/loiane/extjs-link...ter/sql/script
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  6. #16
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    45
    Vote Rating
    2
    madmax797 is on a distinguished road

      0  

    Default request on livesearch using MVC

    request on livesearch using MVC


    Should have tried bit harder.. I got it working. I guess i was missing the Ext.require + something else.. Anyway, posting for benefit of some other newbies.

    Hi,
    can you convert this example to MVC
    http://dev.sencha.com/deploy/ext-4.0.0/examples/form/forum-search.html

    Iam using Extjs4.1.0
    I
    tried, but getting name is undefined. (error at bottom)
    0) my html file
    <html>
    <head>
    <title>Live Search</title>
    <link rel="stylesheet" type="text/css" href="../../framework/extjs-4.1.0/resources/css/ext-all.css">
    <script type="text/javascript" src="../../framework/extjs-4.1.0/ext-debug.js"></script>
    <script type="text/javascript" src="app_liveSearch.js"></script>
    </head>
    <body></body>
    </html>
    1) my top level js file(app_liveSearch.js) is like this:
    Ext.application({
    name: 'AM',
    appFolder: 'app',
    controllers: [
    'LiveSearchCtrl'
    ],
    launch: function() {
    Ext.require([
    'Ext.data.*',
    'Ext.form.*'
    ]);
    Ext.create('Ext.container.Viewport', {
    layout: 'fit',
    items: {
    xtype: 'liveSearchView'
    }
    });
    }
    });
    2) under app/controller I have LiveSearchCtrl.js
    Ext.define('AM.controller.LiveSearchCtrl', {
    extend: 'Ext.app.Controller',
    stores: [ 'LiveSearchStore'],
    models: ['LiveSearchModel'],
    views: [
    'lsearch.LiveSearchView'
    ],

    init: function() {
    this.control({
    'viewport > liveSearchView' : {
    click: alert('loaded ')
    },
    'liveSearchView button' : {
    click: this.popitup
    }

    });
    },
    popitup: function() {
    alert('u clicked button');
    }
    });
    3) My model is in model subdir named LiveSearchModel.js
    Ext.define('AM.model.LiveSearchModel', {
    extend: 'Ext.data.Model',
    proxy: {
    type: 'jsonp',
    url : 'http://www.sencha.com/forum/topics-remote.php',
    reader: {
    type: 'json',
    root: 'topics',
    totalProperty: 'totalCount'
    }
    },


    fields: [
    {name: 'id', mapping: 'post_id'},
    {name: 'title', mapping: 'topic_title'},
    {name: 'topicId', mapping: 'topic_id'},
    {name: 'author', mapping: 'author'},
    {name: 'lastPost', mapping: 'post_time', type: 'date', dateFormat: 'timestamp'},
    {name: 'excerpt', mapping: 'post_text'}
    ]
    });
    4) My store is in store subdir as LiveSearchStore.js
    Ext.define('AM.store.LiveSearchStore', {
    extend: 'Ext.data.Store',
    model: 'AM.model.LiveSearchModel',
    pageSize: 10
    });
    5) My view file is under view/lsearch as LiveSearchView.js
    Ext.define('AM.view.lsearch.LiveSearchView' ,{
    extend: 'Ext.panel.Panel',
    alias : 'widget.liveSearchView',
    renderTo: Ext.getBody(),
    title: 'Search the Ext Forums',
    width: 80,
    bodyPadding: 10,
    layout: 'anchor',
    items: [
    {
    xtype: 'combo',
    labelField: 'Select Meter',
    store: 'LiveSearchStore',
    anchor: '50%',
    typeAhead: false,
    //hideLabel: false,
    //hideTrigger:true,
    listConfig: {
    loadingText: 'Searching...',
    emptyText: 'No matching posts found.',

    // Custom rendering template for each item
    getInnerTpl: function() {
    return '<div class="search-item">' +
    '<h3><span>{[Ext.Date.format(values.lastPost, "M j, Y")]}<br />by {author}</span>{title}</h3>' + '{excerpt}' + '</div>';
    }
    },
    pageSize: 10,
    listeners: {
    select: function(combo, selection) {
    var post = selection[0];
    if (post) {
    window.location =
    Ext.String.format('http://www.sencha.com/forum/showthread.php?t={0}&p={1}', post.get('topicId'), post.get('id'));
    }
    }
    }
    },
    {
    xtype: 'component',
    style: 'margin-top:10px',
    html: 'Live search requires a minimum of 4 characters.'
    }
    ]
    });
    Last edited by madmax797; 7 Sep 2012 at 6:28 PM. Reason: problem resolved

  7. #17
    Sencha User
    Join Date
    Aug 2012
    Location
    Dublin
    Posts
    72
    Vote Rating
    11
    iplanit will become famous soon enough

      0  

    Default


    Hi Loiane,

    At this moment I have your book in my desktop.

    I found it interesting, I am still reading, but it is not very useful for learning with no previous knowledge (I am new to Sencha ExtJS and I am using SenchaArchitect), but that is expected according to you.

    I see there is a lot of examples of graphics,etc. Always simple stuff, but when things starts to be more complicated, realistic, etc. You cannot find good documentation and complete examples.

    In your book, the most interesting part about Models, Associations and MVC architecture has a few pages. There is no information about authentication using the framework.

    I think this would be nice for people that is trying to learn Ext JS 4 with no previous knowledge of Ext JS 3. Even for experienced users is useful.

    Regards

  8. #18
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      0  

    Default


    Thanks iplanit!

    I am planing to write some posts about the topic you suggested.
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  9. #19
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      1  

    Default ExtJS 4 CRUD MVC app with Sencha Architect 2

    ExtJS 4 CRUD MVC app with Sencha Architect 2


    As requested, following is the link to the code of my ExtJS 4 CRUD MVC sample application using Sencha Architect 2.
    Hope it helps you.
    Soon I will post a video on my blog also showing how to do it step by step:

    https://github.com/loiane/extjs4-crud-mvc-architect
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  10. #20
    Sencha User
    Join Date
    Aug 2012
    Location
    Dublin
    Posts
    72
    Vote Rating
    11
    iplanit will become famous soon enough

      0  

    Default


    I appreciate that.

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