Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2019-09

iinndexedDB API TJSIDBObectStore.get() No 2.....Help!!!

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pedro Pablo Oviedo Vera

yes,I fighting even with inndexedDB API javaScript....I trying get data from database...look I did:

fSolicAlmMostrar           := fTransAlmacMostrar.get(gInfo.clave);
fSolicAlmMostrar.onsuccess := @MostrarLista;
function MostrarLista(aEvent: TEventListenerEvent):Boolean;
    var
      fResult : TJSEventTarget;
    begin
       fResult := aEvent.Target;
      gCajaDatos.innerHTML:='<div>'+ TInfo(fResult).clave +'--'+
 TInfo(fResult).texto +'----'+ TInfo(fResult).anno+'</div>';
    end;

but it does not compiles!!!!
I really dont know how can I recover the resulting data from an operation TJSIDBObjectStore.get()....
I thinking the point is how capture the correct value returning from this operation...or not?...any help please?

Thanks a lot!
pp

MSc. Ing. Pedro Pablo Oviedo Vera Dirección Técnica y Desarrollo Empresa de Proyectos e Ingeniería del Ministerio de la Agricultura.ENPA. Boyeros y Conill, Piso 10 Edif MINAG Telef. 884 7197 SIP:23000116 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190920/73857432/attachment.html>

Reply by email