on 01-28-2013 7:02 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.