Hello people!,
Im facing this problem:
var
fTransPeliculas: TJSIDBTransaction;
fTransAlmacen : TJSIDBObjectStore;
fSolicitud : TJSIDBRequest;
begin
(......)
fTransPeliculas := gMyDB.transaction(['peliculas'],'readwrite');
fTransAlmacen := fTransPeliculas.objectStore('peliculas');
gInfo.clave := gedtClave.value;
gInfo.anno := gedtFecha.value;
gInfo.texto := gedtTexto.value;
fSolicitud := fTransAlmacen.add(gInfo,'clave');but from browser consola I recieve the message:
DataError: Data provided to an operation does not meet requirements.
but when use this alternative....
asm
fSolicitud =
fTransAlmacen.add({id:$mod.gInfo.clave,nombre:$mod.gInfo.texto,fecha:$mod.gInfo.anno});
end;everything works!!!!
perhaps fSolicitud := fTransAlmacen.add(gInfo,'clave'); is incorrepts ...then how it will be OK?
Thanks
pp
