Dynamic Hyperlinks in DataGrid/AdvancedDataGrid

Forgive me, but when the web was build around hyperlinked text, it should be easier to create hyperlinks in a Rich INTERNET Application.
Ok - enough griping. I do have a legit question:
For historical reasons, I have to construct hyperlinks from a number of parameters passed in the URL (aka GET params). Since I write reporting systems, those hyperlinks usually have to appear in a table of some sort: a DataGrid or AdvancedDataGrid.
My typical code looks something like this:
<mx:Application blah=blah>
     <mx:Script>
          <![CDATA[
          ]]>
     </mx:Script>
     <mx:HTTPService id="getStuff" method="get" url="http://www.example.com/getData.php" result="processServerData(event)"/>
     <mx:AdvancedDataGrid blah=blah>
          <mx:columns>
               <mx:AdvancedDataGridColumn blah=blah itemRenderer="ADGcustomItemRenderer"/>
          </mx:columns>
     </mx:AdvancedDataGrid>
</mx:Application>

OK, I didn't mean to post that yet. Why can't I edit my post?
Anyways...
<mx:Application blah=blah>
     <mx:Script>
          <![CDATA[
               import a.bunch.of.stuff
               protected function onInitialize():void {
                    getStuff.send();
          ]]>
     </mx:Script>
     <mx:HTTPService id="getStuff" method="get" url="http://www.example.com/getData.php" result="processServerData(event)"/>
     <mx:AdvancedDataGrid blah=blah>
          <mx:columns>
               <mx:AdvancedDataGridColumn blah=blah dataField="dataFieldName" itemRenderer="ADGcustomItemRenderer"/>
          </mx:columns>
     </mx:AdvancedDataGrid>
</mx:Application>
ADGcustomItemRenderer.mxml
<mx:Canvas blah=blah>
     <mx:Script>
          <![CDATA[
               import mx.controls.dataGridClasses.DataGridColumn;
            [Bindable] protected var myURL :String;
            override public function set data(value:Object):void {
                    myURL = '<a href="http://www.example.com/dosomething.php?dept_num=00000&vendor='+value['dataFieldName']+'" target="_blank">'+value['VendorName']+'</a>';
          ]]>
     </mx:Script>
     <mx:Text htmlText="{myURLl}" height="100%" width="100%" />
</mx:Canvas>
Notice the dept_num? I need to pass that data to the itemRender, since it can change from page to page (though not row by row) in addition to the column-specific data passed via the "value" object. How can I access that data from the custom itemRenderer?
Thanks

Similar Messages

  • How to create a dynamic hyperlink which point to a BLOB column

    Hello,
    I am fighting with the issue for about 2 days.
    My purpose is to use Oracle Report Builder to build a report of our employee directory which contains employee's information and also employee's picture. The requirement is that our report is going to generate a html file to our web server. By creating a dynamic hyperlink to the Employee's name in the report output file (the html file generated to our web server), it should then display the corresponding employee's picture which is a BLOB column stored in our oracle database.
    I only can create the hyperlink for the employee's name if the link is static, like 'http://www.google.com
    But from the Oracle Reports 10g Release2 (10.1.2), about the exmaple 1: Dynamic hyperlink, I refered the link
    http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwcontxt%7Cprops%7Cpi_lay_hyperlink%7Ehtm/
    The link gave he following example shows a value for the Hyperlink property that specifies a link to a destination identified dynamically:
    'DEPT_DETAILS_' || LTRIM(TO_CHAR(:DEPTNO))
    where :DEPTNO is a column value retrieved from the database at runtime.
    I tried as the same way to want it dynamcially shows the column :EMP_PHTOT, which is one BLOB column, but it was failed.
    Anyone knows how to implement this? Any inputs is appreciated!
    Thanks,
    Jing

    This forum is for the SQLDeveloper tool. You might get better responses on the reports forum Reports

  • Dynamic hyperlink does not seem to work

    Hi,
    It looks like this same issue came up before in <
    Dynamic hyperlink in Word 2003 but it does not appear that anyone ever responded.
    My customer has created a dynamic hyperlink using {VM_URL} but when the template saves if you mouse over the hyperlink, you see a reference to the current location example:
    file:///E:\temp\%7bVM_URL%7d
    The xml data template looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <ContractDetails>
    <kid>238335</kid><usr>[email protected]</usr>
    <LIST_HDR>
    <HDR>
    <USER_PWD>4</USER_PWD>
    <USER_SSO>[email protected]</USER_SSO>
    <VM_URL>http://ora-apps-phnx-1.vmware.com:8000/oa_servlets/oracle.apps.fnd.sso.AppsLogin?requestUrl=APPSHOMEPAGE&amp;cancelUrl=http%3A%2F%2Fora-apps-phnx-1.vmware.com%3A8000%2Foa_servlets%2Foracle.apps.fnd.sso.AppsLogin</VM_URL>
    The hyperlink in the pdf then becomes the original path to the document:
    E:\tmp
    I have found a couple of issues in WebIV, one was a position loop problem and another was an absolute xpath issue, but this does not seem to fit either. I played a little with the link and url setting, but no luck.
    Tried in 5.6.3 and Word 2k2
    Any help would be appreciated.
    Thank You,
    Dale

    I am facing the same problem,
    Please can anyone give pointers to this?
    Regards,
    Amit Deshpande

  • Generate dynamic hyperlinks in PDF

    Hi,
    I am using CF8. I want to generate dynamic hyperlinks for each Form field in a PDF template. Could you please suggest a solution to achieve this?
    Many Thanks.

    thread re-created! :(
    please see: Dynamic PDF Bookmarks/Hyperlink Generation in RTF template.
    Edited by: Mukunthan L on Jan 20, 2010 1:35 AM

  • How to set boundry value in dynamic rows in datagrid

    hi friends,
    I am new to flex.i want to add dynamic rows to datagrid that means.once i enter the first record i want to press tab button then it will automatically  go to the second row.and update the record continuously.once it reach the maximum value means the next row will not be edit.
    mxkimum value =10000
    from value            to value        percentage
    0.01                        2000             10
    2000                         8000           20
    8000                        10000               30
    after it reach 10000 next row will not edit,this is i want how i do this please help.
    If any suggession tel
    thanks
    B.venkatesan

    Hi,
    As Armin said use the following:
    wdContext.nodeXXX().currentXXXElement().setAttributeValue("attributeName", value)
    Here you give the value as value of simpleType and not its description.
    thanks & regards,
    Manoj

  • Create a dynamic hyperlink in a picture.

    Hello forum,
    Can someone help me create a dynamic hyperlink in a picture? Essentially what I have is a drop down box with a list of games. On the same sheet, I have a picture with the Wikipedia icon. What I would like to do is select the game from from the drop
    down list and be able to click on the Wikipedia picture on the sheet and have my browser open to the Wikipedia page of the game. 
    Hopefully I've explained this pretty clearly. Thanks in advance for any help. 

    Hi,
    According to your description, my understanding is that you have a drop down box control and one Wikipedia icon picture in Excel
    sheet. And you add the hyperlinks which related to the game behind the picture. If you choose the game name from the drop down box, the Wikipedia icon picture will not change but the hyperlink will change to game introduction and we can click the Wikipedia
    picture to open the Wikipedia page in browser.
    If it is, your required might use VBA coding/programing. Please post your question to MSDN forum to get more help.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?

    I am using the following component as an item renderer for a
    <mx:DataGridColumn>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:HBox horizontalAlign="left" left="10">
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    </mx:HBox>
    </mx:Canvas>
    How do I give the radio buttons a buttongroup and id
    dynamically as the datagrid is populated?

    "nikos101" <[email protected]> wrote in
    message
    news:g83gfl$m8o$[email protected]..
    >I am using the following component as an item renderer
    for a
    ><mx:DataGridColumn>
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    > <mx:HBox horizontalAlign="left" left="10">
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > </mx:HBox>
    > </mx:Canvas>
    >
    > How do I give the radio buttons a buttongroup and id
    dynamically as the
    > datagrid is populated?
    What is your actual goal?

  • How do I add a dynamic hyperlink to an image in a CRM mail Merge?

    We have a mail merge template that is being used by a number of our sales reps.  The sales reps each have a unique URL they use to send out to potential customers.  Their unique URL is saved on their User record in MSCRM.  We want to
    send out marketing pieces to prospects but we need the ability to dynamically add the user's hyperlink to an image on the mail merge (ex: an image saying "Click here") and cannot find a way to do this.  Is this possible?

    Hi,
        This is not possible using OOTB CRM Marketing mail merge features for CRM 2013. However you can use 3rd party tools like Click Dimension for this Alternatively with MDM you are now able to use more advanced design features including what
    you are trying to achieve.
    http://www.microsoft.com/en-us/dynamics/marketing-customer-center/create-or-view-templates-for-email-marketing-messages.aspx
    http://www.microsoft.com/en-us/dynamics/marketing-customer-center/design-message-content-using-the-graphical-editor.aspx
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • Dynamic Hyperlinks in Acrobat Form

    Hi
    I am creating a suite of forms in Acrobat, in which I will need a number of hyperlinks.  I can see how to set up a standard hyperlink using the normal form edit functionality, but what I am looking for is a little away from the norm and will need some scripting, which is something I know very little about.
    Can anybody help me in how to script a button in Acrobat to hyperlink to a static address with a dynamic ending?
    Basically, what I am trying to acieve is a button that will link to Google Maps and show the property that is detailed in the form (so there will be the static element of www.google.co.uk/maps/, but I need the post code that has been entered in the address details to be pasted onto the end of that address so the button will take the user straight from the from to the correct location on Google Maps).
    Can anybody help me with this?

    You can use something like this (let's say the Postcode field is called just that):
    var postcode = this.getField("Postcode").valueAsString;
    app.launchURL("http://www.google.co.uk/maps/"+postcode);

  • Dynamic dataprovider in Datagrid combobox.

    Hi,
    i am using Flex 3. I have a data grid with first two rows having item renderers as ComboBoxes. What i want to implement is that, depending on my selection in the first combobox, the respective second combobox should get a dataprovider of my choice.
    For e.g.
    If I select the 1st combobox as India, then the adjacent combobox should have the cities in India.
    If I select the 1st combobox as France, then the adjacent combobox should have the cities in France.
    I dont have the values in any local variables. The values must be fetched at runtime because the list of Countries(in first combobox) is very exaustive so fetching the list of all cities for all countries would not be right. So for each selection of country i have to make an http service call to fetch the corresponding city list.
    My question is how do i dynamically give the cities as dataprovider to each of the combo boxes in each row.
    Hope my description is comprehensible enough.
    Thanks
    Sid.

    HI,
    Can you check the below code. If that is what you need.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                     layout="vertical"
                     creationComplete="application1_initializeHandler(event)">
         <mx:Script>
             <![CDATA[
                 import mx.collections.ArrayCollection;
                 import mx.events.FlexEvent;
                 // Defines your collections
                 [Bindable]
                 public var countriesData:ArrayCollection=new ArrayCollection([{label: 'India'}, {label: 'Brazil'}]);
                 [Bindable]
                 public var citiesData:ArrayCollection;
                 [Bindable]
                 public var collection:ArrayCollection=new ArrayCollection();
                 protected function application1_initializeHandler(event:FlexEvent):void
                     dataGrid.addEventListener("countryChanged", country_changed_handler);
                     collection.addItem({cityData:citiesData});
                // Change this method to the remote callings.
                // In the resultEvent you will change the citiesData collection.
                 protected function country_changed_handler(event:DataEvent):void
                     if (event.data == 'India')
                         dataGrid.selectedItem.cityData = new ArrayCollection([{label: 'Mumbai'}, {label: 'Delhi'}]);
                     else
                         dataGrid.selectedItem.cityData = new ArrayCollection([{label: 'São Paulo'}, {label: 'Rio de Janeiro'}]);
                     dataGrid.invalidateList();
                 public function addRow(event:MouseEvent):void{
                     //collection.addItem(new Object());
                     collection.addItem({cityData:citiesData});
                 public function dropRow(event:MouseEvent):void{
             ]]>
         </mx:Script>
         <mx:DataGrid id="dataGrid"
                      dataProvider="{collection}">
             <mx:columns>
                 <mx:DataGridColumn>
                     <mx:itemRenderer>
                         <mx:Component>
                             <mx:ComboBox dataProvider="{this.parentDocument.countriesData}"
                                          labelField="label"
                                          change="combobox1_changeHandler(event)"
                                          selectedIndex="-1">
                                 <mx:Script>
                                     <![CDATA[
                                         import mx.collections.ArrayCollection;
                                         import mx.events.ListEvent;
                                        protected function combobox1_changeHandler(event:ListEvent):void
                                             dispatchEvent(new DataEvent("countryChanged", true, true, this.selectedLabel));
                                     ]]>
                                 </mx:Script>
                             </mx:ComboBox>
                         </mx:Component>
                     </mx:itemRenderer>
                 </mx:DataGridColumn>
                 <mx:DataGridColumn>
                     <mx:itemRenderer>
                         <mx:Component>
                             <mx:ComboBox labelField="label">
                                 <mx:Script>
                                     <![CDATA[
                                              override public function set data(value:Object):void
                                                super.data = value;
                                                var prevSelectedItem:Object = this.selectedItem;
                                                this.dataProvider = data.cityData ;
                                                this.selectedItem = prevSelectedItem;
                                     ]]>
                                 </mx:Script>
                             </mx:ComboBox>
                         </mx:Component>
                     </mx:itemRenderer>
                 </mx:DataGridColumn>
             </mx:columns>
         </mx:DataGrid>
         <mx:HBox width="299" horizontalAlign="center" horizontalGap="51">
             <mx:Button label="Add" click="addRow(event)"/>
             <mx:Button label="Drop" click="dropRow(event)"/>
         </mx:HBox>
    </mx:Application>

  • Generate Dynamic Hyperlinks/Bookmarks in PDF Output.

    Hi,
    I'm trying to develop an RTF template which will generate the output with Bookmarks in PDF format. As per the Enterprise User Guide, <?copy-to-bookmark:?> or <?convert-to-bookmark:?> should be able to generate a static or dynamic bookmark, respectively. But, all my attempts in doing so go in vain.
    Again, I have a summary page in front, and detail pages suffixed; hence, I am trying to create a link on the summary page field, to the respective detail page. But, I am not sure of the steps.
    Example:
    Page1:
    Deptno. Dname Number of Employees
    10 Production 15
    20 Research 8
    etc...
    Page2 Onwards
    Deptno. 10
    Dname. Production
    EMPNO ENAME SAL
    7782
    Kindly advise if anyone has any idea about this.
    Thanks,
    L. Mukunthan.
    Edited by: Mukunthan L on Jan 20, 2010 1:33 AM

    thread re-created! :(
    please see: Dynamic PDF Bookmarks/Hyperlink Generation in RTF template.
    Edited by: Mukunthan L on Jan 20, 2010 1:35 AM

  • Dynamic Hyperlinks In Pivot Table

    Hi All,
    I'm trying to make a column in a pivot table have a hyperlink based on data, but it doesn't seem to work. Funny thing is I can do exactly the same thing with just a normal table and it works fine.
    Just putting {PAGE_URL} for the hyperlink address in word, where PAGE_URL is a column in my query.
    Any ideas?
    Thanks
    Matt

    Here is an example for dynamic PIVOT:
    http://www.sqlusa.com/bestpractices2005/dynamicpivot/
    You can also apply dynamic columns in SSRS:
    http://www.sqlservercentral.com/Forums/Topic1497220-2799-1.aspx#bm1497636
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5dbd178-1532-478f-90d3-b6354a561240/ssrs-dynamic-columns?forum=sqlreportingservices
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Creating hyperlink on DataGrid Cell Data

    Hi All,
    Having created a Datagrid with displays Product names in the 1st column, is it possible to create individual hyperlinks on the data in this column. The result would be that when the User clicks on any one of the Product names a Internet Explorer browser window would open showing more details about the Product selected?
    Thanks,
    J

    Here is my column definition for a link:
    <mx:DataGridColumn
    headerText="View" dataField="link" width="50" editable="
    false" textAlign="center">
    <mx:itemRenderer>
    <fx:Component>
    <mx:LinkButton label=". . ." color="blue" fontSize="16" fontWeight="
    bold">
    </mx:LinkButton>
    </fx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    You will need to set a click listener for LinkButton. To open a new window I use this:
    reportString =
    "window.open('" + reportString + "',
    ShipInfo', 'status=0,toolbar=0,resizable=yes')";ExternalInterface.call(reportString);
    Basically it is a JavaScript window.open method.
    HTH

  • Multiple dynamic Hyperlinks in Single Cell

    My Requirement is similar to
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c3f1cbeb-20b8-4457-9189-3e451c2a5af9/multiple-hyperlinks-in-single-cell-in-ssrs?forum=sqlreportingservices
    single Data column will be displaying csv values and need to build hyperlink for each item in new window.
    Eg- 
    Bike,car,bus
    Bike,car,Bus,Tram
    When user selected data,
    In an single cell of my ssrs, i need to display an column which can hyperlink to respective page
    The values are coming from an table column as comma separated values.
    ShanmugaRaj

    Hi,
      I think you can use place holders to put these three values seperatly and set an action property on the placeholder. Is the values in the hyperlink are static or dynamic ?
    Best Regards Sorna

  • Adding Dynamic column to datagrid at the begining of datagrid

    Hello friends,
    There is one datagrid which is static. and i m adding one dynamic column. it is get added to the end of the static datagrid
    but I want to add dynamic column at the begning of the datagrid can anybody help me on this.
    Thanking you,
    Regards,
    gajanan

    Thanks to everybody.
    finally i got the things to work using following code.
    private  function SwapGridColumns (DG:DataGrid, Col1:Number, Col2:Number):void
                    var i:Number; // Counter
                    var DP:ArrayCollection =ArrayCollection( DG.dataProvider);     //DataProvider
                    var Widths:Array = new Array ();     // the widths of the columns
                    var Columns:Array = new Array ();    // the column names
                    var Visibility:Array = new Array (); // visibility of columns
                    var HRenderer:Array = new Array ();   // Header Renderer of columns
                    var IRenderer:Array = new Array();
                    var datastore:Array = new Array ();
                    var Editable:Array = new Array();
                    var DFields:Array=new Array();
                    var Sortable:Array = new Array();
                    for (i = 0; i<DG.columns.length; i++)
                        if (i == Col1)
                            Columns.push(DG.columns[Col2].headerText);
                            Widths.push(DG.columns[Col2].width);
                            Visibility.push(DG.columns[Col2].visible);
                            HRenderer.push(DG.columns[Col2].headerRenderer);
                            IRenderer.push(DG.columns[Col2].itemRenderer);
                            Editable.push(DG.columns[Col2].editable);
                            Sortable.push(DG.columns[Col2].sortable);
                            DFields.push(DG.columns[Col2].dataField);
                        else if (i == Col2)
                            Columns.push(DG.columns[Col1].headerText);
                            Widths.push(DG.columns[Col1].width);
                            Visibility.push(DG.columns[Col1].visible);
                            HRenderer.push(DG.columns[Col1].headerRenderer);
                            IRenderer.push(DG.columns[Col1].itemRenderer);
                            Editable.push(DG.columns[Col1].editable);
                            Sortable.push(DG.columns[Col1].sortable);
                            DFields.push(DG.columns[Col1].dataField);
                        else
                            Columns.push(DG.columns[i].headerText);
                            Widths.push(DG.columns[i].width);
                            HRenderer.push(DG.columns[i].headerRenderer);
                            IRenderer.push(DG.columns[i].itemRenderer);
                            Editable.push(DG.columns[i].editable);
                            Sortable.push(DG.columns[i].sortable);
                            DFields.push(DG.columns[i].dataField);
                    // Reset the widths
                    var col:Array
                    for (i = 0; i < Columns.length; i++)
                        var DGC:DataGridColumn = new DataGridColumn(Columns[i]);
                        DGC.width = Widths[i];
                        DGC.visible = Visibility[i];
                        DGC.headerRenderer = HRenderer[i];
                        DGC.itemRenderer = IRenderer[i];
                        DGC.dataField=DFields[i];
                        DGC.sortable=Sortable[i];
                        DGC.editable=Editable[i];
                        datastore.push(DGC);
                    DG.columns=datastore;
                    // Load DP
                    DG.dataProvider = DP;
    Regards,
    gajanan

Maybe you are looking for

  • Keynote 6.0 copy-paste is not working

    I am not able to copy or paste anything (text nor images) within and from Keynote 6.0.1. Anybody else has this problem?

  • CS5 loss of eyedropper option in Color selection menu?

    Running CS5 on a MacPro 10.6.8 A few days ago, I suddenly cannot find the eyedropper to select color, either in type or color functions.  When I click the color boxes, it now opens up the color menu with the usual sliders, crayons, specturms, etc, bu

  • Quantity adjustment

    hi, against PO GRN was made for 140 qty, invoice and payment was done for 35 quantities.  Now the vendor would not supply the remaining quantities.  How to adjust it, since GR was raised for full qty.

  • Alerts For 'Uninvited' Users Outlook 2010

    Hi, one of our teams uses a shared Outlook calendar for tracking changes to systems (kind of a change diary), and would like for alerts for this shared calendar to notify them of upcoming changes. However because this calendar has other teams adding

  • Fireworks CS4 betaを使ってみた

    Fireworks CS4 betaを使ってみた.一言でいうと.私が改善して欲しかった部分は何も変わっていない.表面のみペンキを塗り替えたと言う印象である.アップグレードを見送ろうかと言う気もしてくる.環境 はIntel iMac, OSX 10.5.4 私はFireworks CS3を持っているが.殆ど使っていないので.指摘には間違いがあるかも知れない点はお許し下さい.またFireworks CS4は深く使い込んだ結果の意見でも無い点もご了承下さい. 私は今までウェブ制作はCSS対応のサイトを