TIMSS 6: Opening IE from TIMSS
This is really cool! So if you add a button to a screen in TIMSS and put the following in the OnClick event:
Dim myTargetURL As String = "http://www.google.com"
System.Diagnostics.Process.Start(myTargetURL)
When you click on the button it will open up IE outside of TIMSS and go to the given website.
So I added a "Google" button to my Company screen (CUS001C) and put in the following for the OnClick event:
Dim myTargetURL As String = "http://www.google.com/search?hl=en&lr=&q=%22" +Myform.getformControlByName("txtCustName").text +"%22&btnG=Search"
System.Diagnostics.Process.Start(myTargetURL)
This passes the company name to Google and does a search. I added quotes (%22) around the name so it would be an exact match.
Or if you wanted to search the news instead, replace http://www.google.com/search with http://www.google.com/news in the passed URL to search for the company name in the news.
Applies to: TIMSS6
1 Comments:
I actually added the label_name field to the screen & hid it, then passed that to Google. txtCustName was somtimes comming up as the search name which didn't work all the time.
Post a Comment
<< Home