7/5/2025 2:29:27 AM
|
|
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!
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.
|
|
|
|
SData...
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 |
|
|
|
Re: SData...
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. |
|
|
|
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!
|
|
|
|
|
|
|
|