Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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: SData...
Jeffrey Johnson
Posts: 69
 
SData...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Aug 09 12:59 PM
Is it possible, perhaps a dumb question, to use SData from a compelety seperate .net 2.0 dll ? For example, I would like to be able to click on a link button (which shows a name) in a GridView which then somehow brings up the SalesLogix web contact portal page with that contact in the details view... is this possible? not sure how I would pass the slx user, account, password and which database....


or would i have to pull down the contact data from SLX and display it myself ?

Jeff
[Reply][Quote]
A. Oseguera
Posts: 4
 
Re: SData...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Aug 09 5:03 PM
Yes, it is possible:

WebClient client = new WebClient();

client.Encoding.UTF8;
client.Credentials = new NetworkCredential("SLXUser", "SLXPassword");

client.Headers.Clear();
client.Headers.Add(HttpRequestHeader.ContentType, "application/atom+xml");

string result = client.DownloadString(http://server:port/sdata/slx/dynamic/contacts(contactid);

if (result[0] == (Char)65279)
{
result = result.Substring(1);
}

XElement contact = XDocument.Load(new StringReader(result)).Descendants(ATOM + "entry").First();

Then, in the 'contact' variable you have all the data from the sdata portal.

Hope it helps.
[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/5/2025 2:54:55 AM