Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: URL in a DataGrid
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 08 5:17 AM
Hi,

Does anybody know which properties to set to get a URL in a datagrid? I have the URL in the database (it is just a random web url), I need to have the hyperlink in the grid. Using the properties available in the Link column I can only ever get either the text to show for the link, and it takes you nowhere, or no text at all. I have even tried creating a custom property to wrap some <A> tags around the URL and place it directly in the grid as a bound column but no joy - Logix is replacing my tags with the HTML encoded characters instead so IE ignores them.

Any ideas which properties I should be setting?

Many thanks,
Nick
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Sep 08 11:17 AM
Which version is this for? I did this in 7.2.2 using a Custom column and I could add the hyperlink just fine. I can't remember what specifically I did in the format code for it, but I know it worked OK when I did it then. I did it in a 7.2.2 Web training class I was teaching (one of the students asked about it) so we did it in class and I'm not sure if I still have the database I used then, but I will check.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Sep 08 4:18 AM
Hi Ryan,

I thought it could be done that way - just couldnt figure out which format string to use! I changed it to custom smart part and did in ASP.NET instead

Cheers,
Nick
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Sep 08 12:28 PM
Quote:
Originally posted by Nick Hollis

Hi Ryan,

I thought it could be done that way - just couldnt figure out which format string to use! I changed it to custom smart part and did in ASP.NET instead

Cheers,
Nick


Maybe that is what the difference is. I didn't use a format string per-se, but used the FormatMethod for this. You basically get to create a code snippet where the value is passed in and you format it however using C# code. So I just used string.Concat to append the necessary values together to create the complete URL and that is what showed in the grid.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 08 9:41 AM
Hi Ryan,

I dont suppose you have a sample of that do you? I need to do the same thing again and would be good to do it in the QuickForm. I am not sure what value you need to pick up in the Concat?

Cheers,
Nick
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 08 9:44 AM
Ignore my above request, just re-read your post and it makes sense now
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 08 6:49 PM
Hi Nick,

I thought this would make a worthwhile blog post, so I've posted an example here: http://customerfx.com/pages/crmdeveloper/2008/09/11/Custom-Format-Columns-in-SalesLogix-Web-and-Linking-to-External-Sites-in-a-DataGrid.aspx

Enjoy

-Ryan
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: URL in a DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 08 5:28 AM
Hi Ryan,

Brilliant stuff thanks!

Nick
[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): 2/23/2025 11:00:26 PM