how to select [25] output from below code (148 Views)
Reply
Frequent Advisor
himanshuk
Posts: 64
Registered: ‎12-17-2013
Message 1 of 2 (148 Views)
Accepted Solution

how to select [25] output from below code

I have 50 buttons on one page, from below code I want to click say [8]th button, how to modify web_button code , here value and name is same for all tags, only onclick value is changing have javascript and have event of button click on it

 

                          [1] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [2] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [3] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [4] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [5] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [6] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [7] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [8] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]
Action.c(81):  [9] Name="INPUT", Id="", Value="INPUT FORM"   [MsgId: MMSG-26000]

 

 web_button("INPUT FORM",
  "Snapshot=t23.inf",
  DESCRIPTION,
  "Type=button",
  "Tag=INPUT",
  "ID=",
  "Name=INPUT FORM",
  ACTION,
  "EvalJavaScript=this.document.getElementById('javascript&colon;self.location=\'<url>'').value",
  "EvalJavaScriptResultParam=myparam",
  LAST);

prod support
telecom

Smile tomorrow will be worse !!!
HP Expert
LeonidPekel
Posts: 17
Registered: ‎08-10-2011
Message 2 of 2 (143 Views)

Re: how to select [25] output from below code

Hi,

You can try to use "Ordinal" parameter inside DESCRIPTION section like below:

web_button("INPUT FORM",
  "Snapshot=t23.inf",
  DESCRIPTION,
  "Type=button",
  "Tag=INPUT",
  "ID=",
  "Name=INPUT FORM",

  "Ordinal=25",
  ACTION,
  "EvalJavaScript=this.document.getElementById('javascript&colon;self.location=\'<url>'').value",
  "EvalJavaScriptResultParam=myparam",
  LAST);

Thanks,

Leonid.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.