Notifications Devextreme推送通知
我是新来的DevExpress。我正在Devextreme多通道应用程序中开发一个移动应用程序Notifications Devextreme推送通知,notifications,push-notification,devexpress,push,devextreme,Notifications,Push Notification,Devexpress,Push,Devextreme,我是新来的DevExpress。我正在Devextreme多通道应用程序中开发一个移动应用程序 我有一个mssql数据库,该数据库与WCF ODataService连接到移动应用程序。将项目添加到mssql时,必须推送通知。我该怎么做呢?我想您应该使用数据源和ODataStore来访问您的OData服务。如果使用ODataStore.insert()方法添加项目,则可以在ODataStoreinserted事件处理程序中显示通知 var odataStore = new DevExpress.d
我有一个mssql数据库,该数据库与WCF ODataService连接到移动应用程序。将项目添加到mssql时,必须推送通知。我该怎么做呢?我想您应该使用数据源和ODataStore来访问您的OData服务。如果使用ODataStore.insert()方法添加项目,则可以在ODataStoreinserted事件处理程序中显示通知
var odataStore = new DevExpress.data.ODataStore({
url: "http://sampleservices.devexpress.com/Northwind.svc/Products",
key: "ProductID",
keyType: "Guid",
onInserted: function(){
DevExpress.ui.notify("Item inserted");
}
});
或者在insert()方法的done回调中
odataStore.insert({
ProductName: 'Some name',
CategoryID: 1,
. . .
}).done(function(){
DevExpress.ui.notify("Item inserted");
})
看
您还可以在中找到有关在DevExtreme应用程序中使用数据的有用信息。谢谢Victor,但有人问我如何在DevExtreme移动应用程序中执行推送通知。事实上,DevExtreme确实提供了此功能。我认为你需要使用合适的插件。看。你有没有看过像Signal-R这样的东西,可以将数据从服务推送到客户端(DevExtreme应用程序)?