Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Hanuman_U Absent Member.
Absent Member.
948 views

How to display available Releases as a Drop down in the popup in Test Plan module.

HI Guys, 

 

I have to provide Release/Cylce ID as input to an action, as of now I am providing by entering the Releae name in the input box.

 

Is there a way to retrieve the available Release list and display them as the drop down menu , So that user can select the appropriate Release.

 

Please find the image attached...( This is how I want  to get the release list )

 

 

Thanks in advance.

 

 


Regards,
Hanumanth
0 Likes
5 Replies
Hanuman_U Absent Member.
Absent Member.

Re: How to display available Releases as a Drop down in the popup in Test Plan module.

Hi all,

 

I got the solution using HTML code inside the workflow script.

Here is the sample

Dim objIE,REL_NAME,CYC_NAME
Set WScript = CreateObject("WScript.Shell")

Set objIE = CreateObject("InternetExplorer.Application")

objIE.Navigate "about:blank"
objIE.Document.Title = "Enter Password"
objIE.Toolbar = False
objIE.Resizable = False
objIE.StatusBar = False
objIE.Width = 300
objIE.Height = 300

With objIE.Document.ParentWindow.Screen
objIE.Left = (.AvailWidth - objIE.Width) \ 2
objIE.Top = (.Availheight - objIE.Height) \ 2
End With


objIE.Document.Body.InnerHTML = "<DIV align='center'><P>" & myPrompt _
& "</P>" & vbCrLf _
& "<H2> Test Instances/Release </H2>" _
& "<P>  Please select Release :"_
& " <SELECT NAME='RELLIST'>" _
& " <OPTION>REL1</OPTION>"_
& " <OPTION>REL2</OPTION>"_
& " <OPTION>REL3</OPTION>"_
& " </SELECT> <BR><BR>"_
& "Please select Cycle   :"_
& " <SELECT NAME='CYCLIST'>"_
& "    <OPTION> CYC1</OPTION>"_
& "    <OPTION>CY2</OPTION>"_
& "    <OPTION>CY3</OPTION>"_
& " </SELECT>"_
& " </P> " & vbCrLf _
& "<P><INPUT TYPE='hidden' ID='OK'"_
& "NAME='OK' VALUE='0'>"_
& "<INPUT TYPE='submit' VALUE='Submit'"_
& "OnClick='VBScript&colon;OK.Value=1'></P></DIV>"

objIE.Visible = True
Do While objIE.Document.All.OK.Value = 0
''WScript.Sleep 1000
Loop

 

I want to replace the above code with HTA code  as the Look and Feel of HTA code is a bit good compared to HTML.

 

Can we use HTA code inside Workflow script. If so How ? 

Is there any one uses HTA in QC workflow

 

any input is appreciated.

 

 


Regards,
Hanumanth
0 Likes
Massimo De Rosa Acclaimed Contributor.
Acclaimed Contributor.

Re: How to display available Releases as a Drop down in the popup in Test Plan module.

Hi Hanuman,

 

I think the problem must be split in 2 arguments:

 

  1. How to retrieve all the Releases (and then Cycles).
  2. How to get these info from a dialog as you create.

 

If I had to perform some operation and I'd need to select first Release and Cycle I would use 2 inputboxes as a menu. The First InputBox show me all the Releases, something like this

 

Select the number of the Release

 

1. Release1

2. Release2

3. Release3

...

...

N. ReleaseN

 

 

After the user selected the correct number I show the second InputBox that contains only the Cycle link to the Release choosen:

 

"Select the Cycle of the Release " & ReleaseName

1. Cycle1

2. Cycle2

...

N. CycleN

 

After this you have the 2 information and you could perform all the operation you need.

 

I think that this is the easier manner because to dynamic fill the DropDown List in hta could be not so easy. I don't know how to do it... I would study it.

 

Ciao,

Massimo.

https://www.motu4qc.it
https://motu4qc-en.jimdo.com
0 Likes
Highlighted
Hanuman_U Absent Member.
Absent Member.

Re: How to display available Releases as a Drop down in the popup in Test Plan module.

Hi Friend, 

 

last week I was on vacation..

I'll try what you suggested. 

Thanks !!


Regards,
Hanumanth
0 Likes
Hanuman_U Absent Member.
Absent Member.

Re: How to display available Releases as a Drop down in the popup in Test Plan module.

Hi Massimo,

 

I am trying to load CYCLES in Listbox2 dynamically based on the RELEASE chosen in the Listbox1.

 

I tried with the following code, I 've written Function with the name 'retrieveCycles()' 

<SELECT NAME='RELLIST' ONCHANGE='retrieveCycles'>

But the function is not getting executed...

 

Let me know the following.

Is the HTML OnChange EVENT from the IE browser object can be listen in QC Workflow ?

Do I need to rename function name as 'retrieveCycles_OnChange()' instead of 'retrieveCycles'

 

I even tried with VBSCRIPT in the onchange, but did not get it done

 

Please suggest.

 


Regards,
Hanumanth
Tags (2)
0 Likes
Massimo De Rosa Acclaimed Contributor.
Acclaimed Contributor.

Re: How to display available Releases as a Drop down in the popup in Test Plan module.

Hi,

 

try to use double quote " instead of the single quote ' .

 

Ciao,

Massimo.

https://www.motu4qc.it
https://motu4qc-en.jimdo.com
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.