Skip to Content
0

How do you resolve Uncaught Error 'setValue' of undefined

Mar 08 at 07:10 AM

11

avatar image
Former Member

handleEditCafeItemMasterPress: function () { this._toggleButtonsCafeItem(true); var getCafeItemEditDesc = sap.ui.getCore().byId("editCafeItemName"); var getCafeItemEditCode = sap.ui.getCore().byId("editCafeItemCode"); var getCafeItemName = this.getView() .byId("setItemName") .getText(); var getCafeItmCode = this.getView() .byId("setItemCode") .getText(); getCafeItemEditDesc.setValue(getCafeItemName); getCafeItemEditCode.setValue(getCafeItmCode); },

10 |10000 characters needed characters left characters exceeded

Can i see the xml?

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Prachi Chaskar Mar 08 at 09:21 AM
0

getCafeItemEditDesc = sap.ui.getCore().byId("editCafeItemName");

Is this "sap.m.Text" or "sap.m.Label" ?

If it is text then use "setText()" instead of "setValue()".

Share
10 |10000 characters needed characters left characters exceeded