The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
How to find if a session is already open in a browser
Posted: 20 Jul 06 11:30 AM
|
fiogf49gjkf0d Hi
I have a command button in the Account Screen that opens a browser with a URL. When the user clicks the button again it opens another browser rather than using the already existing browser. Is there a way to accomplish this.
Thanks Raju.R |
|
|
|
Re: How to find if a session is already open in a browser
Posted: 20 Jul 06 7:24 PM
|
fiogf49gjkf0d Where are you launching from? By Account Screen do you mean the web client or the fat client?
Can it be modal? If the fat client, just launch a form with a browser control in it rather than launching a browser externally.
If this is the web client, take a look at the how the schedule phone call menu item works.
Timmus |
|
|
|
Re: How to find if a session is already open in a browser
Posted: 21 Jul 06 8:16 AM
|
fiogf49gjkf0d I use this approach in another application. Try something like...
Dim ie Dim sw Dim shellApp As Object Dim bFound As Boolean Dim sProp As String Dim vtPropVal Dim rptURL As String rptURL = "http://www.mysite.com/reports/myreport.asp?itemnum=" & ItemNumber.Value bFound = False sProp = "MyProperty" vtPropVal = 101 'any value
'see if our report browser window is still open If bFound Then 'found it ie.Navigate rptURL ' load report Else 'not found, open a new browser window Set ie = CreateObject("InternetExplorer.Application") ie.Visible = True ie.Navigate rptURL ' load report ie.PutProperty sProp, vtPropVal 'mark this window as ours End If
|
|
|
|