2
我正在使用MobileFirst Platform 6.3.0.00-20141218-1823。JSONStore push()給出「數據轉換錯誤」
使用下面的JSONStore推的代碼片段返回錯誤:
Procedure invocation error. Runtime: Data conversion error converting "{""FIRSTNAME"":""abcd"",""CONTACTNO"":9090909099,""ID"":2,""EMAIL"":""[email protected]"",""LASTNAME"":""xyz""}"; SQL statement:
delete from addressbook where id=? [22018-184].
Performed query:
delete from addressbook where id=?
代碼:
WL.JSONStore.get(collectionName).countAllDirty().then(function(numberOfDirtyDocs){
if(numberOfDirtyDocs > 0){
WL.JSONStore.get(collectionName).push().then(function(){
deferred.resolve(true);
}).fail(function(errorObject){
deferred.reject(false);
});
deferred.resolve(numberOfDirtyDocs);
}else{
deferred.reject(numberOfDirtyDocs);
}
}).fail(function(errorObject){
deferred.reject(errorObject);
})
如何調試此找到一個解決辦法?
1)始終提及您的Worklight版本和內部版本號。 2)編輯問題,並提供您的應用程序的執行所述JSONStore推送給出錯誤。 –
能夠正確地獲取髒數字文件,但是當我嘗試推送時,我收到了提及的錯誤。 – Balajee