Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: How to find if a session is already open in a browser
Raju
Posts: 18
 
How to find if a session is already open in a browserYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: How to find if a session is already open in a browserYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: How to find if a session is already open in a browserYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 5:51:41 AM