Datasource how to add record - como agregar un record a un datasource

DS - add record.txt

Datasource how to add record

                endRow:false,startRow:false,
                title:"Add",ID:"btnAddRole", name:"btnAddRole",
                click:function (form,item){
                        dsRole.addData({roleid:randomID(5), name:txtEnterRole.getValue(), description:"test"},
                        function(){
                            alert("txtEnterRole.getSelectedRecord --> "+txtEnterRole.getSelectedRecord());
                        }
                    );
                },


como agregar un record a un datasource


Comments

Popular posts from this blog

how to access the DOM gwt smartclient

smart gwt allow only numbers in textfield