Skip to Content
0

pass a parameter from view to controller

May 30, 2017 at 03:55 PM

115

avatar image

Hi All,

I have an issue.

In my table, I have a toolbar. In my toolbar, I have an "execute button". Now when user selects a row of the table, and clicks the execute button, a " dialog box" opens up.

In my dialog box, there are 2 options for the question " do you want to execute this item". If the user selects " YES", then the item should be executed ( i have used update method of my DPC class for the same). if user clicks " no", the dialog box is closed.

The problem comes, when I have to pass few parameters to my "execute button" in the toolbar. Everytime i try to pass a parameter, i get an error that it is not defined.

I have added the code which i am using. Please let me know what should I correct here. ( This code was working earlier with SAP.UI.COMMONS library).

capture.png (44.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Rohit Darwade May 31, 2017 at 07:31 AM
0

Hi,

can you post the that error.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Rohit,

Thanks for your reply. I am getting an error -

I have to pass oEntry from my view to the controller. But I get an error that it is undefined.

Code for my button is as follows -

Press event of my button -

capture.png (19.5 kB)
button.png (14.7 kB)
press-event.png (3.9 kB)
0

What is undefined?

0