Getting error "Cannot read property "t" from undefined" while transferring variable from client controller to server script in widget

Community Alums
Not applicable

Hi All,

I am working with widget, while transferring data from client controller to server script, I am getting error.

Server JavaScript error Cannot read property "t" from undefined

Client controller:

c.closemodel = function() {
c.data.t=c.note;
c.server.update();
alert("Your notes are saved");
}

Server Script:

gs.setProperty("notes",input.t,"description");

5 REPLIES 5

Glad to know it worked for you.

Could you please close the question by marking appropriate response as correct answer, it would be helpful for other users to refer correct solution in future.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande