You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where $row()[$col().DBKey] = Object().GLCode in this:
Object=ko.observable({ID: 1,ItemCode: "Net Amount",// This needs to be observable for dataValue propGLCode: ko.observable({ID: 1,// This needs to be observable otherwise it will throw string is not a functionGLCode: ko.observable("sometext")})});
and myOptions is:
myOptions=function(s,callback){callback([{ID: 2,// Notice this is not observable, because if it was// then input value would be [input HTMLInputElement] or something like thatGLCode: "someothertext"}]);}
Problem I was having was adjusting correct observables and object structure to get back object but show in input box only one value of object.
Declaration:
Where
$row()[$col().DBKey] = Object().GLCode
in this:and
myOptions
is:So the problem was that these lines:
were overwriting this:
to
So I changed those line to this to preserve observables:
I hope this will help anyone struggling with the same issue.
The text was updated successfully, but these errors were encountered: