Memberlistvivit-worldwide.org  FAQFAQ   SearchSearch   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages Log in with your Vivit username and passwordLog in with your Vivit username and password 

Use SendKey method to invoke url box in defects dialog box

 
Post new topic   Reply to topic    Vivit Discussion Groups Forum Index -> HP Quality Center
View previous topic :: View next topic  
Author Message
imranasif17
Newbie


Joined: 29 Sep 2009
Posts: 1

PostPosted: Tue Sep 29, 2009 5:09 pm    Post subject: Use SendKey method to invoke url box in defects dialog box Reply with quote

Hi:

We are using:
Quality Center: 9.0 Patch 36
Web Server:JBoss
Windows Server: 2003
Database: Oracle 9.2

I have a very unique requirement. When a QC user select a value in a
defects field, 'Attach Uniform Resource Locator (URL)' must open. I am using the below code, but it does not
work.

Please resolve, thanks.

[Code]
Function Defects_Bug_FieldChange
if Bug_Fields("BG_USER_40").Value = "In progress" then
MsgBox "You are there"
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^W"
end if
End Function
[\code][/img]
Back to top
View user's profile Send private message
devanparikh
Newbie


Joined: 07 Jan 2010
Posts: 4

PostPosted: Thu Jan 07, 2010 1:15 pm    Post subject: Re: Use SendKey method to invoke url box in defects dialog b Reply with quote

Hi Imran,

Try this out , just a couple of changes in your code and there you go...
Function Defects_Bug_FieldChange
if Bug_Fields("BG_USER_40").Value = "In progress" then
MsgBox "You are there"
url_link = <url>
Set wShell = CreateObject("WScript.Shell")
wShell.Run url_link,9
end if
End Function
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Vivit Discussion Groups Forum Index -> HP Quality Center All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group