Make datafield in datagrid a hyperlink to website

I makes an HTTPService request which returns data to a datagrid. One of the returned fields is a website (without the "http://www" and ".com" so basically just the guts ("mywebsite"). I want to make the datafield an active link but do not know where or how to do this.
THanks

You can Use A Renderer For that and can use Link Buttton as a component.
Sample code below: I have Hard coded URL you can use data.url from your HttpService result.
Application:::
<?xml version="1.0"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white" backgroundGradientColors="[0xFFFFFF, 0xFFFFFF]">
<mx:Script><![CDATA[import 
mx.collections.ArrayCollection; [Bindable]
public 
var myAC:ArrayCollection = new ArrayCollection([{firstName:"Prad",lastName:"Shek",url:"http://www.compassites.net"},{firstName:
"Alex",lastName:"Harui",url:"http://www.adobe.com"}]);
]]>
</mx:Script><mx:DataGrid id="dg" width="500" height="100" dataProvider="{myAC}"><mx:columns>
<mx:DataGridColumn
dataField="firstName" headerText="First Name"/><mx:DataGridColumn
dataField="lastName" headerText="Last Name"/><mx:DataGridColumn
headerText="URL" itemRenderer="LinkREnderer"/>
</mx:columns>  
</mx:DataGrid>
</mx:Application> 
Renderer::::
<?xml version="1.0" encoding="utf-8"?><mx:LinkButton
xmlns:mx="http://www.adobe.com/2006/mxml" label="Click On Me" click="navigateToURL(new URLRequest('http://www.compassites.net'))"/> 
If this post answers your question or helps, please mark it as such.
Cheers,
Prad.

Similar Messages

  • Who makes the nicest, easiest to use Flash website design software?

    Please forgive the beginner's question. I would like to build
    a flash site like
    http://www.hockaday.org from an
    easy to use Flash template. You get what you pay for so my first
    choice isn't something for free but a 30-day free trial version
    would be nice.
    What I like best about
    http://www.hockaday.org is the
    great menus and that pictures continually reload in interesting
    ways.
    Maybe a template is too restrictive. Who makes the nicest,
    easiest to use Flash website design software that allows fast
    creation of those fancy menus and with other fast features to do
    nice things with pictures and motion?
    I need to create a site like
    http://www.hockaday.org
    immediately so I don't have the time to learn Flash first. What's
    my best bet?

    you are in a catch 22 - you don't have time to learn flash -
    yet you need to build an entire site
    immediately - you can't - sure you can download a template
    that is similar but if this forum is any
    proof, you almost need more flash knowledge trying to
    decipher most templates in order to edit them
    - search this forum, there are several posts per week from
    non-flash users who purchased templates
    and have no clue how to edit them. Often times it is hard for
    an educated flash user to
    reverse-engineer a FLA made by somebody else - Flash
    documents are blank canvases that can be setup
    a myriad ways by different users making the same thing - some
    developers are more organized than
    others - most templates are not organized but rather thrown
    together for a quick profit.
    You will simply need to learn enough flash to understand how
    it works or hire somebody to edit the
    template for you.
    hope this helps.
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    e.Shubee wrote:
    > Please forgive the beginner's question. I would like to
    build a flash site like
    >
    http://www.hockaday.org from an
    easy to use Flash template. You get what you
    > pay for so my first choice isn't something for free but
    a 30-day free trial
    > version would be nice.
    >
    > What I like best about
    http://www.hockaday.org is the
    great menus and that
    > pictures continually reload in interesting ways.
    >
    > I need to create a site like that one immediately so I
    don't have the time to
    > learn Flash first. What's my best bet?
    >
    >
    >

  • A script to make all page references into hyperlinks

    Hi,
    I have a customer request to make all pages references into hyperlinks.
    For example: when you see in the text of the PDF "page 4", you can click on it and move to page 4. This of course can be done manually with InDesign. The problem starts when you have whole load of them. In addition to that, I have this project as a book, with several different documents...
    I used the script "Automatic hyperlink of each word in a file" from http://www.nobrainer.dk/automatic-hyperlink-of-each-word-in-a-file/ as a base, and modified it for my porpuse. Currently it still produces errors. Any idea what's the bug?
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var myHyperlinkStyle = myDocument.characterStyles.item("hyperlink"); // replace hyperlink with name of your char style for links
    //alert(myHyperlinkStyle);
    main();
    } else {
    alert("Please open a document");
    function main() {
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //the value to find
    myFindVal = "page (\\d+)";
    doSearchAndReplace(myFindVal, app.activeDocument);
    // reset search
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    function doSearchAndReplace(stringfind, searchin) {
    app.findGrepPreferences.findWhat = stringfind;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    var myFoundItems = searchin.findGrep();
    for (i = 0; i < myFoundItems.length; i++) {
    var item = myFoundItems[i].contents;
    //the destination page
    var destPage = item.slice(5);
    var myHyperlinkDestination = myMakeHyperlinkDestination(destPage);
    myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
    myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
    try {
    var myHyperlinkTextSource = myDocument.hyperlinkTextSources.add(myFoundItem);
    var myHyperlink = myDocument.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
    myHyperlink.visible = false;
    catch(myError){
    function myMakeHyperlinkDestination(myDestPage){
    //If the hyperlink destination already exists, use it;
    //if it doesn't, then create it.
    try{
    var myHyperlinkDestination = myDocument.hyperlinkDestinations.item(myDestPage);
    myHyperlinkDestination.name;
    catch(myError){
    myHyperlinkDestination = myDocument.hyperlinkPageDestinations.add(myDestPage);
    myHyperlinkDestination.destinationPage = myDestPage;
    myHyperlinkDestination.name = myDestPage;
    //Set other hyperlink properties here, if necessary.
    return myHyperlinkDestination;

    well, after some more digging into it, I found the bugs and corrected, here is the corrected version (now I only need to figure out how to do it on an entire book...):
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var myHyperlinkStyle = myDocument.characterStyles.item("hyperlink"); // replace hyperlink with name of your char style for links
    //alert(myHyperlinkStyle);
    main();
    } else {
    alert("Please open a document");
    function main() {
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //the value to find
    myFindVal = "page (\\d+)";
    doSearchAndReplace(myFindVal, app.activeDocument);
    // reset search
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    function doSearchAndReplace(stringfind, searchin) {
    app.findGrepPreferences.findWhat = stringfind;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    var myFoundItems = searchin.findGrep();
    for (i = 0; i < myFoundItems.length; i++) {
    var item = myFoundItems[i].contents;
    //the destination page
    var destPageNumber = item.slice(5);
    var destPage = searchin.pages.itemByName(destPageNumber);
    var myHyperlinkDestination = myMakeHyperlinkDestination(destPage);
    myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
    myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
    try {
    var myHyperlinkTextSource = myDocument.hyperlinkTextSources.add(myFoundItem);
    var myHyperlink = myDocument.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
    myHyperlink.visible = false;
    catch(myError){
    function myMakeHyperlinkDestination(myDestPage){
    //If the hyperlink destination already exists, use it;
    //if it doesn't, then create it.
    try{
    var myHyperlinkDestination = myDocument.hyperlinkDestinations.item(myDestPage);
    myHyperlinkDestination.name;
    catch(myError){
    myHyperlinkDestination = myDocument.hyperlinkPageDestinations.add(myDestPage);
    myHyperlinkDestination.destinationPage = myDestPage;
    //myHyperlinkDestination.name = myDestPage.name;
    //Set other hyperlink properties here, if necessary.
    return myHyperlinkDestination;

  • I have set hyperlinks within my ibook author document, they work perfectly until i export and view on the ipad, when only one or none work, (hyperlinks to website not working at all) what am i doing wrong?

    I have set hyperlinks within my ibook author document, they work perfectly until i export and view on the ipad, when only one or none work, (hyperlinks to website not working at all) what am i doing wrong?

    An external hyperlink should handoff to Safari and leave iBooks.
    If that's not happening, perhaps there is something misconfigured on your iPad? Have you manually confirmed those links work in Safari on your iPad?

  • Automator: how to make an app that accepts hyperlinks dropped on it?

    I tried using the 'get specified url' action but it doesn't make the app capable of accepting hyperlinks dropped on it. what i am trying to do is...
    1. drop hyperlinks from a certain webpage onto the app.
    2. make the app scan that hyperlinks webpage for urls in it.
    3. filter urls i want
    4. download those urls.
    when i use the workflow it works fine. but automator freezes all the while it downloads it and i can't run more such download in parallel. so i want to make and app. when i saved the work flow as an app it wont accept any input. any help?

    See http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html
    And, http://www.automatedworkflows.com/tips/podcast.html and
    http://www.macosxautomation.com/automator/examples/ex04/index.html
    And, http://discussions.apple.com/thread.jspa?threadID=2241804 for a four-parter by Sal Saghoian on *Automation in Snow Leopard*
    Finally, here's a new episode that demonstrates the differences between AppleScript Studio and AppleScript-Objective-C application development. http://pixelcorps.cachefly.net/mbkd036_540ph264.mov
    It references this page on MACOSXAUTOMATION.COM: containing the example project files: http://www.macosxautomation.com/applescript/develop/index.html

  • How to make the row as a hyperlink in Crystal 2008

    Hi,
    Could you give me advise on how to make the row as a hyperlink and call another report.
    Thank you in advance.
    Rose

    Hi Sastry,
    I was able to create the subreport and its working.
    Thank you so much.
    Regards.
    Rose

  • Hyperlinks in website doesn't work

    I design my own website using Publisher. All/Most of my hyperlinks does not work with Mozilla Firefox. All is perfect with IE, but not with Mozilla Firefox. Please could you help me explain how I can get all my hyperlinks to work. This affects my business major, as I have a marketing website for Accommodation in South Africa.

    That is an MS Office document with VML code and not valid HTML code.<br />
    If you look at the page source (View > Page Source) then you will notice the VML code that shows as green comment.
    Make sure that you disable VML code when you save the page in the editor.<br />
    VML (MS Office code) only works in IE and not in other browser like Firefox.<br />
    * http://en.wikipedia.org/wiki/Vector_Markup_Language

  • Can you make a tab/page a hyperlink?

    i can't get a another website showing on my iweb site w/o having to scroll around to see the entire page so i thought about hyperlinking to it instead. i understand i can make text or an image into a hyperlink but can i have it so that when you click on "blog" in my navigation menu the page is redirected to my blog?
    TIA
    ~amber

    Yes. Create an empty page titled Blog. On that blog page add an HTML snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "URL TO SITE YOU WANT TO REDIRET TO"; </script>
    Thanks to Cyclosaurus for the code
    The visitor will immediately be redirected to your external page/site.
    The Contents pages of my 3 demo sites are setup that way to redirect to a common Contents site. Go to this page, Embedtests, and click on Contents in the navbar and watch the URL field.
    OT

  • Hyperlinks to websites not working in Notes

    Why is it that a website hyperlink is highlighted in Notes, but when I click on it, nothing happens?

    I'm not sure how some of the links in one of my notes were created. 
    My thinkng is that there are many applications that can make the determination that something that starts with http:// or https:// can be made to behave as a hyperlink
    I do know that I did not purposely create a hyperlink and then paste it into my note.
    Also, the only time that I receive the Open URL option in the services is when I select text.  E.G  if i have text in my Note like  jguitar.com  and I select the text and then choose Notes > Services, the Open URL option appears and the link will open.  If I select the word jguitar all by itself/alone, the option doesn't appear, so the application can tell if it is a possible choice for opening a URL.
    Something isn't quite adding up......

  • How do I make a shop page on my Muse website

    Hey BC people,
    I have built a website with Muse and have got my client to sign up to a BC account that suits their needs. I am wanting to insert a shop page on my Adobe Muse built website. From what I read I could drop a module (created in BC) onto the page and it would work. I built my inventory and placed the module code but I can't get it to display the content with on the page. in the shop http://luckwoodshop.businesscatalyst.com/luckwood-range
    Here is the website http://luckwoodshop.businesscatalyst.com/index.html I'd like to have the 'store' page display the items, rather than link them via another button. Is there an easier way to build templates?
    Is there a better way to do this? Should I export the site to DW and try and do it there?
    I'd rather not use a BC template and I only want the shop module. Is this even possible?
    Any help or support appreciated.
    Cheers
    Rose

    I don't use Muse but from what I hear it's a good starting point but once you publish your Muse site to BC any edits you make on the BC server won't sync back to Muse and vice versa.  So-- once you've moved the site over from Muse to BC you should start using BC/Dreamweaver to make future changes to your site.
    To that end-- since you are now on BC and want to take advantage of advanced features not in Muse (ie- an online shop) you'll need to start using some BC methods like using sitewide templates.
    If you don't have one already, you should create a default page template... basically, just take one of your pages created in Muse and copy the page source and then create a new Template on BC and paste in your code.  Anywhere you have main page content, just remove it from the source and replace it with {tag_pagecontent} which is where all the page content like shop products and catalogs will appear.  Then, make this site-wide template the default template and have your shop use that template and you should be all set.
    On a side note-- you should optimize the background image for your website.  Right now you've got a 3mb file as the background image in your link to index.html above.  A lot of people are on tablets nowadays using 3g and you are essentially having them download a file the size of a full mp3 song just to see an image that isn't necessary for the site to function-- it's just for the experience layer so you need to make it smaller.  For one thing-- if your image has a lot of gradients or colors (like yours does-- it has many gradients) and/or is going to be a high resolution image (like yours) you should be using JPG instead of PNG.  JPG gives you more compression options-- try compressing that image to 65-70 compression which should get that image down to size in bits/bytes.
    Your whole site is about 4.5 Kilobytes and 3 Kilobytes of that is that one image for the background so you should optimize it/update it to JPG.

  • Does Classic report provide facility to make report total to be hyperlink

    Hi ,
    Does Classic report in apex provide provision to make the report-total row editable(hyperlinked) ? if so how to implement that.
    Acq     WIP     Closed
    Abc     1     3
    Def     2     5
    report total :     3     8
    Also is it possible to provide more than 2 downloadable options for classic report :
    For eg: now i have provided options to export a report to csv and excel format, along with these two can i provide pdf option!!!!
    Thanks in advance

    You didn't mention what version of Apex you are using. If you are on 4.0, this can be done easily using dynamic actions.
    Here is an example http://apex.oracle.com/pls/apex/f?p=24317:92
    One DA that looks like this http://screencast.com/t/djyAG6F4WFM
    The first TRUE action (fire on page load) changes the cursor style to indicate that the row is clickable http://screencast.com/t/Z3YIXo6c
    The second one actually does the redirect http://screencast.com/t/jHMtyDwK8lM in the example it just shows an alert message but you can modify it to pass in whatever parameters you need and construct the location.href to redirect to.

  • How to make a PDF file downloadable on my website?

    Hi,
    I'm trying to create a PDF that can be downloaded from
    people that are on my website.
    I tried to point a link to the PDF file that's on my sever
    but all it does open the PDF file in a new window.
    How can i make it so that people can download that PDF file
    when they click on the link.
    the url to that website is
    Link">http://www.hostlyon.com/pizza-demo/[L=Link
    to website
    There will be a link on the navigation bar that says
    "download menu" . Thanks!!!

    .oO(watzursn)
    > I'm trying to create a PDF that can be downloaded from
    people that are on my
    >website.
    >
    > I tried to point a link to the PDF file that's on my
    sever but all it does
    >open the PDF file in a new window.
    >
    > How can i make it so that people can download that PDF
    file when they click on
    >the link.
    <a href="thepdf.pdf">Document Title (PDF, size in
    KB)</a>
    Micha

  • How to make things other than text hyperlinks

    I was looking to make a group of pictures link to some bookmarks but have so far failed. While making a simple box then filling the background with an image, then filling the box with space characters and then selecting the spaces to link to a bookmark, works in iBook Author,
    it does not do so when I preview, or export to iTunes.
    I'm using an iPad 3/new ipad. Any help in creating images that act as hyperlinks would be grand!
    Also while some links work in landscape somehow the link gets messed up and no longer works in portrait orientation.
    I miss the days where you could run over to your apple store and have your questions answered, I thought maybe a genius would help, but alas this a new age and they don't know s**t
    In short, is the only way to link to bookmarks through simple text?

    See 'How to link an image' in iBA Tips and Tricks 01..
    As for portrait....layout in landscape, edit in portrait. Duplicate where needed to make portrait work as required.
    Also, see
    Publishing With iBooks Author
    http://shop.oreilly.com/product/0636920025597.do

  • Can I make the spotlight search on my iweb website search through comments

    I just recently created a website using iweb. I was wondering if anyone knows how to make the spotlight search on my blog page search within the comments of that page or the whole site? That would be the best way, but I would also consider generating an internal search engine for the site through google, ect... if anyone has any information on either off these topics I would greatly appreciate it. Thank you.

    Spotlight won't do, .mac blog comments are stored on server side.
    Spotlight only works when things get indexed and spotlight can't index them.
    don't think google site search will do either..

  • Keynote Hyperlinks on Website

    When I add hyperlinks to other Keynote pages they work fine in Keynote and on the exported Quicktime movie. However, when I then embed the Quicktime into a web page and upload it, the links are dead on the webpage. Any suggestions?

    I believe this is due to a security fix in QuickTime. Some scammers would make a QuickTime movie LOOK like a normal image but, as it "played", it would start opening up browser windows at certain points in the movie. All they'd have to do is create a few malicious sites, have that movie open those sites, and your Windows machine is infected before you even realize it!
    So, as a compromise, those links still work in QuickTime player, BUT they don't work when played in the browser anymore.

Maybe you are looking for