Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, July 6, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Tservice cannot be inferred when sage.platform.application.applicationcontext.current.service.get()
Jeff Ng
Posts: 34
 
Tservice cannot be inferred when sage.platform.application.applicationcontext.current.service.get()Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 09 10:50 PM
Hi all,

I would like to seek your advice. I get error when I compile my code.

Imports Sage.Platform
Import System.Data
Dim service as Sage.Platform.Data.IDataService
service = Sage.Platform.Application.ApplicatonContext.Current.Services.Get()



[Reply][Quote]
Jeff Ng
Posts: 34
 
Re: Tservice cannot be inferred when sage.platform.application.applicationcontext.current.service.get()Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 May 09 1:00 AM
the error code is Tservice cannot be inferred when sage.platform.application.applicationcontext.current.service.get()
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Tservice cannot be inferred when sage.platform.application.applicationcontext.current.service.get()Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 May 09 1:18 AM
You have to tell it which service type you're getting. The C# syntax is like this (haven't done VB.NET generics and can't remember the VB.NET equivalent)

service = Sage.Platform.Application.ApplicatonContext.Current.Services.Get<IDataService>();
[Reply][Quote]
Jeff Ng
Posts: 34
 
Re: Tservice cannot be inferred when sage.platform.application.applicationcontext.current.service.get()Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 May 09 2:11 AM
Hi Ryan,

Thank you for your reply. I would try your suggestion. I have always encounter this eror message problem when I remove and add the code in on_change. for eg. "txtstore_on_change can not be found". Could you advise on this issue ?

Thank You
[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 © 2025 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): 7/6/2025 1:42:09 PM