Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #11
    Sencha User
    Join Date
    Mar 2012
    Posts
    17
    Vote Rating
    0
    ozkmat is on a distinguished road

      0  

    Default


    how do I do that without this?:
    Code:
    this.fireEvent
    I tried some ways, but Google doesnt help much. I found something with this code in the Controller:
    Code:
    this.getApplication().on({
                'disclosetest' : function(list, record, target, index, evt, options) {
                    ...
                },
                scope : this
    });
    but it all fails or I get Errors..

  2. #12
    Sencha User
    Join Date
    Mar 2012
    Posts
    17
    Vote Rating
    0
    ozkmat is on a distinguished road

      0  

    Default


    Okay, after a lot of searching I found this link:
    http://www.sencha.com/forum/showthre...ItemDisclosure

    This is what I changed in the Controller:
    Code:
    control : {
                     "#myList" : {
                         disclose : "onDetailCommand"
                     }
     },
    and later:
    Code:
    onDetailCommand : function(list, record, target, index, evt, options) {
            console.log("onDetailCommand");
           //..
    },
    In my listContainerList-File
    Code:
    var allList = {
                 xtype : 'mylist',
                 itemId : 'myList',
                 id : 'myList',
                 store : store
     };
    But I still see no Data in the following View! So Problem is still there..

    In the View I want to show the Data as follows:

    Code:
    var content = {
                xtype : 'platedetail',
    };
    and the xtype platedetail looks as follows:

    Code:
    Ext.define("Autokennzeichen.view.PlateDetail", {
        extend : "Ext.Component",
        alias : "widget.platedetail",
        config : {
            data : {},
            tpl : Ext.create('Ext.XTemplate', '<div><b>City</b> {City}</div>')
        }
    });
    How do I set the Data with the record? I set the Record like before:

    Code:
            var detail = this.getPlateDetail();
            detail.setRecord(record);
            list.select(index, true, false);
            Ext.Viewport.animateActiveItem(detail, {
            type : 'slide',
            direction : 'left'});

  3. #13
    Ext Premium User
    Join Date
    Mar 2007
    Posts
    89
    Answers
    2
    Vote Rating
    1
    Luc is on a distinguished road

      0  

    Default


    Try something like this:


    Code:
    var record = Ext.create(Myapp.model.MyModel, {
       City: 'Hamburg',
       ....
    })
    
    Ext.widget({
       xtype : 'component',
       fullscreen: true,
       record : record,
       tpl : Ext.create('Ext.XTemplate', '<div><b>City</b> {City}</div>')
    });
    or


    Code:
    Ext.widget({
       xtype : 'component',
       fullscreen: true,
       data : record.getData(),
       tpl : Ext.create('Ext.XTemplate', '<div><b>City</b> {City}</div>')
    });

  4. #14
    Sencha User
    Join Date
    Mar 2012
    Posts
    17
    Vote Rating
    0
    ozkmat is on a distinguished road

      0  

    Default


    I think I finally understood my Problem. I already tried a lot, working with record and this.record BUT the Problem (I think) is, that my whole Views render while starting my App. And at this Moment the record is still empty.

    The workaround I did now, pretty dirty - but I didnt knew how to reload a page or Element. So I set the record values of my Field in the Controller.
    Code:
    var detail = this.getPlateDetail();
            detail.setRecord(record);
            var discloseWorkaround = detail.down('#contentPanel');
            discloseWorkaround.setData({
                data1 : record.get('City')
            });
            list.select(index, true, false);
    And my 'contentPanel' looks like this
    Code:
    var content = {
                xtype : 'panel',
                itemId : 'contentPanel',
                id : 'contentPanel',
                cls : 'detailContainerContainer',
                data : {
                    data1 : ''
    },
                tpl : Ext.create('Ext.XTemplate', '<div class="detailContainer">City <b> {data1}</b></div>')
            };
    Is there a better way, to refresh a View? Or maybe just one Element. That I can set in the 'content' Element at data:
    Code:
    data : {
    data1 :  record.get('City')
    }
    Or something equal?