cancel
Showing results for 
Search instead for 
Did you mean: 

How to check no. of times button clicked

Former Member
0 Kudos

Dear Experts.

Can anyone let me know " How to check no. of times button clicked ? ".

The scenario is : I have APPROVE button on the screen

1) If APPROVE button is clicked 1st time,i want to update first 2 fields in the database.

2) If APPROVE button is clicked 2nd time,i want to update next 2 fields in the database.

Please help me out to achieve this functionality.

Katrice

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

you can use assistance class sttatic_attribute  to save value  on button on_action if you are using assisatnce class in your application.

or

if not you can create a class and instanciate in your webdunpro component and fill stataic attibute when button is clicked.

or

create a attribute in component controller use it to save your value

m_aravindan
Active Participant
0 Kudos

Hi katrice,

               When you are creating a button , there will be method for that button.

so create a attribute ..

        INtially set the value of the attribute to zero.

      when ever the button is  clicked  , add 1 to the attribute.

so that on reading the attribute value , you can find how many times a button is clicked..

based on the value you can perform your actions further..

Hope it helps.

Regards

Aravindan