AnsweredAssumed Answered

last button clicked indicator?

Question asked by jfalberg on Jul 13, 2012
Latest reply on Jul 13, 2012 by philmodjunk

Title

last button clicked indicator?

Post

I intend to have 8 different buttons which will utilize the same script but will behave differently depending on what is clicked, so instead of having 8 separate scripts, is there a way I can indicate which button I had pressed (all 8 have been given a different name) so that when I start my script I could have something like:

if ($$last_button_pressed = "Btn01Prev")

   (series of calculations)

endif

if ($$last_button_pressed = "Btn01Next")

  $$ReqRecType = 1

  (more calculations)

endif

if ($$last_button_pressed = "Btn10Next")

  $$ReqRecType = 10

  (more calculations)

endif

Outcomes