cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot read property 'setData' of undefined

former_member185507
Active Participant
0 Kudos

pass-error.txtHi All,

I am passing value from one view to another view,useing simple form .

I am getting error unable to read Cannot read property 'setData' of undefined.

A)

B)

Code:

pass-error.txt

Can anyone help me ,what is missing in code.

Thanks and Regards,

SAM



Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos
                                  		          new sap.ui.commons.Button({
                                  		    	                              text : "SubmitData",
                                  		    	                              width : "100px",
                                  		    	                              height : "25px",
                                  		    	                              press : [oController.senddata,oController]
                                  		    	                              
                                  		          })
                                  		      

Answers (1)

Answers (1)

former_member185507
Active Participant
0 Kudos

Hi Jun Wu,

Thanks for your input..

It's not working..

Regards,

SAM

junwu
Active Contributor
0 Kudos

what's the error now?

former_member185507
Active Participant
0 Kudos

Hi,

@Jun Wu..Thanks a lot

Now error gone, but getting blank page.

There is no data in second view.

I am using same code.

pls give input for fix this issue.

Thanks and Regards,

SAM

junwu
Active Contributor
0 Kudos

set the correct answer and close this thread for now.

thanks,