Upgrading RC1 to RC2

  1. #1

    Upgrading RC1 to RC2

    Hello,

    I upgrade my app from Ext.Net RC1 to RC2, then the application stop work!!!!. what's consideration i need to perform this upgrade ?, what's changes is maded to RC2 from RC1.

    please help me!!!....

    Thanks,
  2. #2
    Geoffrey McGill
    Founder & CEO
  3. #3

    Upgrading RC1 to RC2

    This code work fine un RC1 but in RC2 the page display nothing, but the code html and javascript is rendered.

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Lista.aspx.vb" Inherits="GAPS.Web.Lista" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <script type="text/javascript" src="../Scripts/windowManager.js"></script>
        <script type="text/javascript" src="../Scripts/dialogManager.js"></script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <script type="text/javascript">
                var submitValue = function (grid, hiddenFormat, format) {
                    hiddenFormat.setValue(format);
                    grid.submitData(false);
                }
    
                var template = '<span style="color:{0};">{1}</span>';
                var currentQuestion = null;
    
                var change = function (value) {
                    return String.format(template, (value > 0) ? 'green' : 'red', value);
                }
    
                var pctChange = function (value) {
                    return String.format(template, (value > 0) ? 'green' : 'red', value + '%');
                }
    
                var wDynamic;
                var title = '';
                function showInfo(w, pagename, cmd, r) {
                    wDynamic = w;
                    var params = '';
    
                    if (!cboGroup.hidden) {
                        params = "encuesta=" + cboGroup.value;
                        title = cboGroup.lastSelectionText;
                    } else {
                        title = '<%=title%>';
                    }
                    if (cmd == 'Delete') {
                        Ext.Msg.confirm('Borrar', 'Desea borrar el registro?', function (btn) {
                            if (btn == 'yes')
                                Ext.net.DirectMethods.deleteRecord(r.id, pagename.value, { success: OnSuccessDelete, failure: OnFailureDelete });
                        });
                    } else if (r) {
    
                        Ext.net.DirectMethods.GetPageTarget(r.id, title, pagename.value, 0, params, { success: OnSuccess });
                    }
                    else
                        Ext.net.DirectMethods.GetPageTarget(0, title, pagename.value, 0, params, { success: OnSuccess });
                }
                var OnSuccessDelete = function (result) {
                    Store1.reload();
                }
    
                var OnFailureDelete = function (result) {
                    Ext.Msg.show({
                        title: 'Error',
                        msg: 'No es posible borrar el dato, hay información relacionada con este',
                        minWidth: 200,
                        modal: true,
                        icon: Ext.Msg.ERROR,
                        buttons: Ext.Msg.OK
                    });
                };
    
                var OnSuccess = function (result) {
                    wDynamic = wManager.showDirectDialog(title, result, 600, 700, {}, false, window);
                }
                function remoteLoad(grid) {
                    grid.body.mask('Cargando...', 'x-mask-loading');
                    delete grid.store.lastParams;
                    grid.store.load({ callback: function () { grid.body.unmask(); } });
                }
            </script>
            <ext:Hidden ID="FormatType" runat="server" />
            <ext:Hidden ID="pagename" runat="server" />
            <ext:Store ID="Store1" runat="server">
                <Reader>
                    <ext:JsonReader>
                    </ext:JsonReader>
                </Reader>
                <BaseParams>
                    <ext:Parameter Name="start" Value="0" Mode="Raw">
                    </ext:Parameter>
                    <ext:Parameter Name="limit" Value="20" Mode="Raw">
                    </ext:Parameter>
                </BaseParams>
            </ext:Store>
            <ext:Store ID="stGroup" runat="server">
                <DirectEventConfig>
                    <EventMask ShowMask="true" />
                </DirectEventConfig>
                <Reader>
                    <ext:JsonReader IDProperty="id">
                    </ext:JsonReader>
                </Reader>
                <Listeners>
                    <Load Handler="if(#{cboGroup}.store.getAt(0)!=null){#{cboGroup}.setValue(#{cboGroup}.store.getAt(0).get('id'));}" />
                </Listeners>
            </ext:Store>
            <ext:GridPanel ID="grpList" runat="server" StoreID="Store1" StripeRows="true" Height="550"
                AutoWidth="true">
                <TopBar>
                    <ext:Toolbar ID="tbrTool" runat="server">
                        <Items>
                            <ext:ComboBox ID="cboGroup" Hidden="true" FieldLabel="Encuesta" runat="server" Width="600"
                                DisplayField="name" ValueField="id">
                                <Listeners>
                                    <Select Handler="#{Store1}.reload();" />
                                </Listeners>
                            </ext:ComboBox>
                            <ext:ToolbarFill ID="tbrFill" runat="server">
                            </ext:ToolbarFill>
                            <ext:Button ID="btnNew" runat="server" Text="Nuevo" Icon="PageAdd">
                                <Listeners>
                                    <Click Handler="showInfo(#{wDynamic},#{pagename});" />
                                </Listeners>
                            </ext:Button>
                            <ext:Button ID="btnExport" runat="server" Text="Exportar" Icon="PageExcel">
                                <Listeners>
                                    <Click Handler="submitValue(#{grpList}, #{FormatType}, 'xls');" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <BottomBar>
                    <ext:PagingToolbar ID="pgBar" runat="server" PageSize="20" StoreID="Store1">
                        <Items>
                        </Items>
                    </ext:PagingToolbar>
                </BottomBar>
                <SelectionModel>
                    <ext:RowSelectionModel ID="rsModel" runat="server" SingleSelect="true" />
                </SelectionModel>
                <ColumnModel ID="clModel">
                    <Columns>
                        <ext:CommandColumn Width="60">
                            <Commands>
                                <ext:GridCommand Icon="Delete" CommandName="Delete">
                                    <ToolTip Text="Borrar" />
                                </ext:GridCommand>
                                <ext:CommandSeparator />
                                <ext:GridCommand Icon="NoteEdit" CommandName="Edit">
                                    <ToolTip Text="Editar" />
                                </ext:GridCommand>
                            </Commands>
                        </ext:CommandColumn>
                    </Columns>
                </ColumnModel>
                <View>
                    <ext:GridView EnableRowBody="True" />
                </View>
                <Listeners>
                    <Command Handler="showInfo(#{wDynamic},#{pagename},command,record);" />
                </Listeners>
                <LoadMask ShowMask="true" />
            </ext:GridPanel>
        </div>
        </form>
    </body>
    </html>

    the picture 1, show the correct display.
    the picture 2, show the incorrect display.

    the copde no change, the page not change only has upgrade from RC1 to RC2

    what's the problem ???

    Thanks!!!!

    Quote Originally Posted by geoffrey.mcgill View Post
    Attached Thumbnails Result1.png   Result after update to RC2.png  
  4. #4
    Hi,

    Add Delay="10" for the Load event
    Last edited by geoffrey.mcgill; Apr 26, 2016 at 1:13 AM.
    Vladimir Shcheglov
    Sr. Developer
  5. #5

    Upgrading RC1 to RC2

    Hi,

    adding Delay="10" and the problem persist, the tab in the picture is a IFRAME, loading the page posted in the thread,
    Ext.Net not draw the page.

    Thanks!!!
    Last edited by geoffrey.mcgill; Apr 26, 2016 at 1:13 AM.
  6. #6
    Hi,

    Do you have js errors? If yes then please post it
    Vladimir Shcheglov
    Sr. Developer
  7. #7
    No errors is present but this is the code generated.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        
        <head>
            <link rel="stylesheet" type="text/css" href="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNtMCw8BJYJsNtEWWFTchSsi59qDNrmczRMSQLj-BPEY5XDXoYN8tBwn6t3LmJUeuys1&amp;t=634424806840000000"
            />
            <link rel="stylesheet" type="text/css" href="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNtMCw8BJYJsNtEWWFTchSsiFJELJ98gmLAnbxk0i87MiMFdLr4yCFDU5uw_rcLE8_U1&amp;t=634424806840000000"
            id="ext-theme" />
            <link rel="stylesheet" type="text/css" href="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_cmnMJW3fzwgsYkt1TjrO-eh1OuMerlOIcLs7s043xWfUxfLKo1PeMeaZNQLd-OOygo0JKNnUXCAK5TNUp6S3KpW6ahfWcCZJNf3apT2nNQ0&amp;t=634424806840000000"
            />
            <link rel="stylesheet" type="text/css" href="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_cmnMJW3fzwgsYkt1TjrO9-2iRiMAvNYCvfn2wEV7DuXgqkUpnbCixaVFgNH05333NmHSbdzfpDoYcqrCcttpDKQWZpReWaVs6aWJJdQ1sh0&amp;t=634424806840000000"
            />
            <title>
            </title>
            <script type="text/javascript" src="../Scripts/windowManager.js">
            </script>
            <script type="text/javascript" src="../Scripts/dialogManager.js">
            </script>
            <script type="text/javascript" src="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNsYxtXuuHzvsrVXeo322BlFl8Pe_8sCxUlM5rm9SyiboA2&amp;t=634424806840000000">
            </script>
            <script type="text/javascript" src="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNvgCgnIPpehuUQPDjgHz9uY0&amp;t=634424806840000000">
            </script>
            <script type="text/javascript" src="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNu9lmTLPOkK5vXB-3ZE6ZwqdHTXbWgmUQ352diZfhIxOA2&amp;t=634424806840000000">
            </script>
            <script type="text/javascript" src="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNsF-8A7HeY8XNRk_gDRNAVrwRfuMo2K653OtVoYyrtKvw2&amp;t=634424806840000000">
            </script>
            <script type="text/javascript" src="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNvZE4fa0F10flmpnB5ZFtBRBmTMewmOwDi_qyEGd4pm-w2&amp;t=634424806840000000">
            </script>
            <script type="text/javascript" src="/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_cmnMJW3fzwgsYkt1TjrO9-2iRiMAvNYCvfn2wEV7DueRqcLE95O_E_zF2R3yCqcPbAiQMH_c82CovCqf4Dmew1&amp;t=634424806840000000">
            </script>
            <script type="text/javascript">
                //<![CDATA[
                Ext.net.ResourceMgr.init({
                    id: "ResourceManager1",
                    BLANK_IMAGE_URL: "/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn_ifNSbcfV5QGxwfsKxdgNvH5yS0bYjMXvGxiEHoy7K3eC_L4ncxdN7fiE6NWPA73v5diqisM4HHWSA2uzYUKcY1&amp;t=634424806840000000",
                    aspForm: "form1",
                    theme: "gray",
                    appName: "GAPS.Web",
                    icons: [{
                        name: "PageAdd",
                        url: "/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn88lsA2uoFtAV4cQdf5lQQ35GTKWONxwHVghYkXXv-7hXOjbvpimkVOJHcxftRWCcQ2&amp;t=634424806840000000"
                    }, {
                        name: "PageExcel",
                        url: "/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn88lsA2uoFtAV4cQdf5lQQ1fm5P-LdZsC-V-JaWiiojnvY5LBDc5L8q3QwO7GvZqEQ2&amp;t=634424806840000000"
                    }, {
                        name: "Delete",
                        url: "/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn88lsA2uoFtAV4cQdf5lQQ0nQ_HygIavkerbei5nlwaa0&amp;t=634424806840000000"
                    }, {
                        name: "NoteEdit",
                        url: "/GAPS.Web/WebResource.axd?d=UmFDsqVlJRfkAhxi0EEcn88lsA2uoFtAV4cQdf5lQQ10jfPDG4Ef1c4l_Iqrz3vv9DUe6kIv3dkN5aXOuwfSsA2&amp;t=634424806840000000"
                    }]
                });
                Ext.onReady(function() {
                    Ext.QuickTips.init();
                    Ext.apply(Ext.net.DirectMethods, {
                        GetPageTarget: function(Id, Title, PageName, ParentId, otros, config) {
                            Ext.net.DirectMethod.request("GetPageTarget", Ext.applyIf(config || {}, {
                                params: {
                                    Id: Id,
                                    Title: Title,
                                    PageName: PageName,
                                    ParentId: ParentId,
                                    otros: otros
                                }
                            }));
                        },
                        GetInfoString: function(parametros, url, config) {
                            Ext.net.DirectMethod.request("GetInfoString", Ext.applyIf(config || {}, {
                                params: {
                                    parametros: parametros,
                                    url: url
                                }
                            }));
                        },
                        deleteRecord: function(Id, PageName, config) {
                            Ext.net.DirectMethod.request("deleteRecord", Ext.applyIf(config || {}, {
                                params: {
                                    Id: Id,
                                    PageName: PageName
                                }
                            }));
                        }
                    });
                    new Ext.form.Hidden({
                        id: "FormatType",
                        renderTo: "FormatType_Container"
                    });
                    new Ext.form.Hidden({
                        id: "pagename",
                        renderTo: "pagename_Container",
                        value: "../Encuestas/Categoria.aspx"
                    });
                    this.Store1 = new Ext.ux.data.PagingStore({
                        proxyId: "Store1",
                        autoLoad: true,
                        reader: new Ext.data.JsonReader({
                            fields: [{
                                name: "NOMBRE",
                                type: "string"
                            }, {
                                name: "DESCRIPCION",
                                type: "string"
                            }],
                            idProperty: "ID_CATEGORIA_ENCUESTA"
                        }),
                        directEventConfig: {},
                        proxy: new Ext.data.PagingMemoryProxy([{
                            "ID_CATEGORIA_ENCUESTA": 1.0,
                            "NOMBRE": "Actores",
                            "DESCRIPCION": "Actores"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 86.0,
                            "NOMBRE": "Categoria1",
                            "DESCRIPCION": "Desc Categoria1"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 4.0,
                            "NOMBRE": "Entorno Saludable",
                            "DESCRIPCION": "Familia saludable"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 3.0,
                            "NOMBRE": "Inspección, vigilancia y control",
                            "DESCRIPCION": "Inspección, vigilancia y control"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 25.0,
                            "NOMBRE": "Módulo para el programa de Prevención Primaria y Secundaria de Enfermedades Crónicas",
                            "DESCRIPCION": "Programa de Prevención Primaria y Secundaria de Enfermedades Crónicas"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 26.0,
                            "NOMBRE": "Módulo para el programa de Vigilancia Epidemiológica",
                            "DESCRIPCION": "Vigilancia Epidemiológica"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 106.0,
                            "NOMBRE": "PRUEBAS",
                            "DESCRIPCION": "PRUEBAS"
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 52.0,
                            "NOMBRE": "VyC Agroquimicos y Centros de Bienestar al Anciano",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 51.0,
                            "NOMBRE": "VyC Aguas",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 47.0,
                            "NOMBRE": "VyC Alimentos",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 49.0,
                            "NOMBRE": "VyC Belleza",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 48.0,
                            "NOMBRE": "VyC Carnes",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 66.0,
                            "NOMBRE": "VyC Centros Estetica Ed Edu",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 50.0,
                            "NOMBRE": "VyC Farmacias y Tienes naturistas",
                            "DESCRIPCION": null
                        }, {
                            "ID_CATEGORIA_ENCUESTA": 46.0,
                            "NOMBRE": "VyC Peluquerias",
                            "DESCRIPCION": null
                        }], false),
                        beforeLoadParams: function(store, options) {
                            if (!options.params) {
                                options.params = {};
                            };
                            Ext.apply(options.params, {});
                            Ext.applyIf(options.params, {
                                "start": 0,
                                "limit": 20
                            });
                        }
                    });
                    this.stGroup = new Ext.ux.data.PagingStore({
                        proxyId: "stGroup",
                        autoLoad: true,
                        reader: new Ext.data.JsonReader({
                            fields: [],
                            idProperty: "id"
                        }),
                        directEventConfig: {
                            eventMask: {
                                showMask: true
                            }
                        },
                        proxy: new Ext.data.PagingMemoryProxy({}),
                        listeners: {
                            load: {
                                fn: function(store, records, options) {
                                    if (cboGroup.store.getAt(0) != null) {
                                        cboGroup.setValue(cboGroup.store.getAt(0).get('id'));
                                    }
                                }
                            }
                        }
                    });
                    new Ext.net.Viewport({
                        id: "ctl04",
                        renderTo: "form1",
                        items: {
                            id: "grpList",
                            columnPlugins: [0],
                            xtype: "netgrid",
                            plugins: this.ctl15 = new Ext.ux.grid.GridFilters({
                                local: true,
                                menuFilterText: "Filtro",
                                filters: [{
                                    dataIndex: "NOMBRE",
                                    type: "string"
                                }, {
                                    dataIndex: "DESCRIPCION",
                                    type: "string"
                                }]
                            }),
                            autoWidth: true,
                            height: 550,
                            layout: "fit",
                            bbar: {
                                id: "pgBar",
                                xtype: "ux.paging",
                                displayInfo: true,
                                store: Store1
                            },
                            tbar: {
                                id: "tbrTool",
                                xtype: "toolbar",
                                items: [{
                                    id: "cboGroup",
                                    xtype: "combo",
                                    fieldLabel: "Encuesta",
                                    hidden: true,
                                    width: 600,
                                    displayField: "name",
                                    hiddenName: "cboGroup_Value",
                                    mode: "local",
                                    queryDelay: 10,
                                    triggerAction: "all",
                                    valueField: "id",
                                    store: new Ext.data.SimpleStore({
                                        fields: ["text", "value"],
                                        data: []
                                    }),
                                    submitValue: true,
                                    listeners: {
                                        select: {
                                            fn: function(item, record, index) {
                                                Store1.reload();
                                            }
                                        }
                                    }
                                }, {
                                    id: "tbrFill",
                                    xtype: "tbfill"
                                }, {
                                    id: "btnNew",
                                    iconCls: "icon-pageadd",
                                    text: "Nuevo",
                                    listeners: {
                                        click: {
                                            fn: function(item, e) {
                                                showInfo(Ext.get("wDynamic"), pagename);
                                            }
                                        }
                                    }
                                }, {
                                    id: "btnExport",
                                    iconCls: "icon-pageexcel",
                                    text: "Exportar",
                                    listeners: {
                                        click: {
                                            fn: function(item, e) {
                                                submitValue(grpList, FormatType, 'xls');
                                            }
                                        }
                                    }
                                }]
                            },
                            loadMask: {
                                showMask: true
                            },
                            sm: this.rsModel = new Ext.grid.RowSelectionModel({
                                proxyId: "rsModel",
                                singleSelect: true
                            }),
                            store: Store1,
                            stripeRows: true,
                            view: this.ctl06 = new Ext.grid.GridView({
                                proxyId: "ctl06",
                                enableRowBody: true
                            }),
                            selectionMemory: false,
                            cm: this.clModel = new Ext.grid.ColumnModel({
                                proxyId: "clModel",
                                columns: [new Ext.net.CommandColumn({
                                    hideable: false,
                                    width: 60,
                                    commands: [{
                                        xtype: "tbbutton",
                                        command: "Delete",
                                        tooltip: {
                                            text: "Borrar"
                                        },
                                        iconCls: "icon-delete"
                                    }, {
                                        xtype: "tbseparator"
                                    }, {
                                        xtype: "tbbutton",
                                        command: "Edit",
                                        tooltip: {
                                            text: "Editar"
                                        },
                                        iconCls: "icon-noteedit"
                                    }]
                                }),
                                {
                                    dataIndex: "NOMBRE",
                                    header: "Nombre"
                                }, {
                                    dataIndex: "DESCRIPCION",
                                    header: "Descripción",
                                    width: 254
                                }]
                            }),
                            listeners: {
                                command: {
                                    fn: function(command, record, rowIndex, colIndex) {
                                        showInfo(Ext.get("wDynamic"), pagename, command, record);
                                    }
                                }
                            }
                        },
                        layout: "fit"
                    });
                    Store1.addField({
                        name: "NOMBRE",
                        type: "string"
                    }, -1, true);
                    Store1.addField({
                        name: "DESCRIPCION",
                        type: "string"
                    }, -1, true);
                });
                //]]>
            </script>
        </head>
        
        <body>
            <form name="form1" method="post" action="Lista.aspx?info=QnAjL29i6ubkp5nS%2fQFI1cfV%2fPfFPtG%2feYnc3%2fvDRfDVDb0OLFezMdIuZO%2bGgQzcbi6mPmv2Hk1q2zZjtx9K16NnV4V7HNpykB%2b3cq4kU9ZldKm%2fdPgU28APYMCs2e8m"
            id="form1">
                <div>
                    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
                    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
                    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzOTgwNjk2NzcPFgIeBlBhZ2luYQUOQ2F0ZWdvcmlhLmFzcHgWAgIDD2QWCgIBD2QWAmYPFgIeBWNsYXNzBQh4LWhpZGRlbmQCAg8UKhJTeXN0ZW0uV2ViLlVJLlBhaXIBDwUEYmFzZQ8WAh4FVmFsdWUFGy4uL0VuY3Vlc3Rhcy9DYXRlZ29yaWEuYXNweGQWAmYPFgIfAQUIeC1oaWRkZW5kAgMPFCsEAQ8FCXZzTWVtYmVycxQrAAIPBQpCYXNlUGFyYW1zDwICFCsAAhQrBAEPBQRiYXNlFgYeBE5hbWUFBXN0YXJ0HwIFATAeBE1vZGULKWhFeHQuTmV0LlBhcmFtZXRlck1vZGUsIEV4dC5OZXQsIFZlcnNpb249MS4wLjQxNjguNDAxMzcsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49MmUxMmNlM2QwMTc2Y2Q4NwAUKwQBDwUEYmFzZRYGHwMFBWxpbWl0HwIFAjIwHwQLKwUADwUGUmVhZGVyFCsEAQ8FBGJhc2UWAh4KSURQcm9wZXJ0eQUVSURfQ0FURUdPUklBX0VOQ1VFU1RBZAIEDxQrBAEPBQl2c01lbWJlcnMUKwABDwUGUmVhZGVyFCsEAQ8FBGJhc2UWAh8FBQJpZGQCBQ9kFgJmD2QWBgIDD2QWCmYPZBYCZg8WAh8BBQh4LWhpZGRlbmQCAQ9kFgJmDxYCHwEFCHgtaGlkZGVuZAICD2QWAmYPFgIfAQUIeC1oaWRkZW5kAgMPZBYCZg8WAh8BBQh4LWhpZGRlbmQCBA8WAh8BBQh4LWhpZGRlbmQCBA9kFgJmDxYCHwEFCHgtaGlkZGVuZAIGDxYCHwEFCHgtaGlkZGVuZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WCAUQUmVzb3VyY2VNYW5hZ2VyMQUKRm9ybWF0VHlwZQUIcGFnZW5hbWUFB2dycExpc3QFCGNib0dyb3VwBQZidG5OZXcFCWJ0bkV4cG9ydAUFcGdCYXIxfr9pzbok6Dl+OnygNvy0G8ty5MQsQV7SLipGTsYXcw=="
                    />
                </div>
                <script type="text/javascript">
                    //<![CDATA[
                    var theForm = document.forms['form1'];
                    if (!theForm) {
                        theForm = document.form1;
                    }
    
                    function __doPostBack(eventTarget, eventArgument) {
                        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
                            theForm.__EVENTTARGET.value = eventTarget;
                            theForm.__EVENTARGUMENT.value = eventArgument;
                            theForm.submit();
                        }
                    }
                    //]]>
                </script>
                <link href="../Coolite/extjs/resources/css/xtheme-envigado.css" rel="stylesheet"
                type="text/css" />
                <script type="text/javascript">
                    //<![CDATA[
                    var helpUrl = '';
                    var helpTopic = '';
    
                    function openPopup(winfo, iresize, modal) {
                        if (modal && modal == true) {
                            if (window.showModalDialog) {
                                window.showModalDialog(winfo, "", "dialogWidth:700px;dialogHeight:410px;scroll:no");
                            } else {
                                if (iresize != null && iresize == true) window.open(winfo, '_blank', 'left=100,top=100,height=410,width=700,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,modal=yes,dependent=yes');
                                else window.open(winfo, '_blank', 'left=100,top=100,height=410,width=700,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,modal=yes,dependent=yes');
                            }
                        } else if (iresize != null && iresize == true) {
                            window.open(winfo, '_blank', 'left=100,top=100,height=410,width=700,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,dependent=yes');
                        } else {
                            window.open(winfo, '_blank', 'left=100,top=100,height=410,width=700,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,dependent=yes');
                        }
                    }
                    window.status = 'Usuario:Administrador'; //]]>
                </script>
                <div>
                    <script type="text/javascript">
                        var submitValue = function(grid, hiddenFormat, format) {
                                hiddenFormat.setValue(format);
                                grid.submitData(false);
                            }
    
                        var template = '<span style="color:{0};">{1}</span>';
                        var currentQuestion = null;
    
                        var change = function(value) {
                                return String.format(template, (value > 0) ? 'green' : 'red', value);
                            }
    
                        var pctChange = function(value) {
                                return String.format(template, (value > 0) ? 'green' : 'red', value + '%');
                            }
    
                        var wDynamic;
                        var title = '';
    
                        function showInfo(w, pagename, cmd, r) {
                            wDynamic = w;
                            var params = '';
    
                            if (!cboGroup.hidden) {
                                params = "encuesta=" + cboGroup.value;
                                title = cboGroup.lastSelectionText;
                            } else {
                                title = 'Categorias';
                            }
                            if (cmd == 'Delete') {
                                Ext.Msg.confirm('Borrar', 'Desea borrar el registro?', function(btn) {
                                    if (btn == 'yes') Ext.net.DirectMethods.deleteRecord(r.id, pagename.value, {
                                        success: OnSuccessDelete,
                                        failure: OnFailureDelete
                                    });
                                });
                            } else if (r) {
    
                                Ext.net.DirectMethods.GetPageTarget(r.id, title, pagename.value, 0, params, {
                                    success: OnSuccess
                                });
                            } else Ext.net.DirectMethods.GetPageTarget(0, title, pagename.value, 0, params, {
                                success: OnSuccess
                            });
                        }
                        var OnSuccessDelete = function(result) {
                                Store1.reload();
                            }
    
                        var OnFailureDelete = function(result) {
                                Ext.Msg.show({
                                    title: 'Error',
                                    msg: 'No es posible borrar el dato, hay información relacionada con este',
                                    minWidth: 200,
                                    modal: true,
                                    icon: Ext.Msg.ERROR,
                                    buttons: Ext.Msg.OK
                                });
                            };
    
                        var OnSuccess = function(result) {
                                wDynamic = wManager.showDirectDialog(title, result, 600, 700, {}, false, window);
                            }
    
                        function remoteLoad(grid) {
                            grid.body.mask('Cargando...', 'x-mask-loading');
                            delete grid.store.lastParams;
                            grid.store.load({
                                callback: function() {
                                    grid.body.unmask();
                                }
                            });
                        }
                    </script>
                    <div id="FormatType_Container" style="display:inline;">
                    </div>
                    <div id="pagename_Container" style="display:inline;">
                    </div>
                </div>
            </form>
        </body>
    
    </html>
    Thanks,

    Quote Originally Posted by Vladimir View Post
    Hi,

    Do you have js errors? If yes then please post it
  8. #8
    I found the problema in the store stGroup, just in the Listener, when remove the load listener, the page work fine!!

            <ext:Store ID="stGroup" runat="server">
                <DirectEventConfig>
                    <EventMask ShowMask="true" />
                </DirectEventConfig>
                <Reader>
                    <ext:JsonReader IDProperty="id">
                    </ext:JsonReader>
                </Reader>
                <Listeners>
                   <%-- <Load Handler="if(#{cboGroup}.store.getAt(0)!=null){#{cboGroup}.setValue(#{cboGroup}.store.getAt(0).get('id'));}" />--%>
                </Listeners>
            </ext:Store>
    the question is:

    what's wrong in

    <Load Handler="if(#{cboGroup}.store.getAt(0)!=null){#{cboGroup}.setValue(#{cboGroup}.store.getAt(0).get('id'));}" />
    work fine in RC1 but not in RC2

    .....


    Thanks,
  9. #9
    Hi,

    As I mentioned before, you have to add Delay to Load listener because combobox is not rendered yet when Load event is fired
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Upgrading from V1.3 to V2.0
    By Birgit in forum 2.x Help
    Replies: 1
    Last Post: Mar 29, 2012, 4:47 PM
  2. [CLOSED] Upgrading from 1.0 RC to 1.0.
    By mchim92 in forum 1.x Premium Help
    Replies: 11
    Last Post: Nov 29, 2010, 9:06 PM
  3. upgrading from 0.8.1 to 0.8.2
    By Kamal in forum 1.x Help
    Replies: 4
    Last Post: Apr 08, 2010, 5:52 PM
  4. [CLOSED] Before upgrading to 1.0- Needs your help
    By Hari_CSC in forum 1.x Premium Help
    Replies: 2
    Last Post: Mar 16, 2010, 4:45 PM
  5. Getting exception after upgrading to v0.7
    By mthird in forum 1.x Help
    Replies: 5
    Last Post: Apr 21, 2009, 5:43 PM

Tags for this Thread

Posting Permissions