Skip to content

getIndex on array #131

@BNO79

Description

@BNO79

I've a "table" called "CONFIG" with an array "VAL", the "push" code is the following..

myObj["nome"] = nome.toLowerCase();
myObj["valore"] = valore;
myObj["ultima_modifica"] = jsonDate;
myObj["id_utenti"] = id_utenti;
db.push("/CONFIG/VAL[]", { obj : myObj }, true);

..but I can't use "getIndex" like describe in documentation, to retrive a specific value into the array, I've try this code..

let myIndex = db.getIndex("/CONFIG/VAL", pnome, "nome");

..but doesn't work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions