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: Calling SLX functions from a web browser enbedded in SLX
Keri
Posts: 17
 
Calling SLX functions from a web browser enbedded in SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Jul 06 4:09 AM
fiogf49gjkf0d
Hi Guys

As part of my opportunity form i have a webpage embedded which i use to display custom fields from the DB.
On the webpage are various buttons that launch an external VB app which posts data into my SLX DB and to my live production webservers.

Is it possible to call the "Application.BasicFunctions.RefreshMainView" function or something simular from the webpage embedded on my opportunity form.

Part of my code that generates the HTML being -

keriHTML = keriHTML + "<script language=""VBScript"">" + chr(13)
keriHTML = keriHTML + "Sub Quote(Clientname,Negotiator, AgentID, BranchID, Address,Price,TenureType, QuoteType, SLXID )" + chr(13)
keriHTML = keriHTML + " Dim x" + chr(13)
keriHTML = keriHTML + " Set x = CreateObject(""my.app"")" + chr(13)
keriHTML = keriHTML + " Call x.Generate_Quote(Clientname, Negotiator, AgentID, BranchID, Address, Price, TenureType, QuoteType, SLXID)" + chr(13)
keriHTML = keriHTML + " Set x = Nothing" + chr(13)
keriHTML = keriHTML + "End Sub" + chr(13)

That SUB is called from a form on the webpage, basically what i would like to do is put in the eqivalent of "Application.BasicFunctions.RefreshMainView" in at the end of my SUB so that after it is fired the opportunity screen is refreshed.

Do i have to go the route of creating a SLX object in the webpage or is there an easy way ?

Many Thanks,

Keri.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Calling SLX functions from a web browser enbedded in SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Jul 06 4:28 AM
fiogf49gjkf0d
If you are embedding a browser control within the SalesLogix client you should check out the Opportunity Detail form. You will find code that references "window.external" showing you how to access SLX objects from the browser.

Timmus
[Reply][Quote]
Keri
Posts: 17
 
Re: Calling SLX functions from a web browser enbedded in SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Jul 06 9:52 AM
fiogf49gjkf0d
Thanks for that, adding

keriHTML = keriHTML + " window.external.Application.BasicFunctions.RefreshMainView" + chr(13)

did the job perfectly
[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 8:40:01 AM