findByKey(name) is null

43 views
Skip to first unread message

Sergey Morozov

unread,
Nov 19, 2018, 4:51:46 AM11/19/18
to mementodatabase
// Context: Library action
var LIB                = lib();
var NewEntry      = { Name: "Row1" };
var CurrentEntry = LIB.create( NewEntry );

message( CurrentEntry );                               // "[object Entry]"
message( CurrentEntry.name );                     // "Row1"

var Key = CurrentEntry.name;
CurrentEntry = LIB.findByKey( Key );

message( CurrentEntry );                               // "null"

// ?????????????????????
Reply all
Reply to author
Forward
0 new messages