How to add a Hyperlink to open popup in dynamic data grid?

Hi,
I am a new bie in FLEX, the question which I am asking might be very easy but i am not able to find solution to it. Please can some one help me.
I am creating a data grid dynamically using action script code now I want to add a Hyper link to couple of columns in a row. How can I do it in FLex?
Thanks.

HI Prashant,
Thanks for the reply.
This is what I am currently doing right now:
for 
(var i:int=0; i<colNameList.length;i++) { 
var headerText:String = colNameList[i] + ""; 
callSellGridCol = cols[i];
callSellGridCol.headerText = headerText;
if(headerText != null && headerText == "RIC"){
var myRenderer : ClassFactory = new ClassFactory(com.db.carving.synthetic.dma.view.UrlLinkRenderer);
In My Renderer class :
public 
class UrlLinkRenderer extends LinkButton{
 public var clickFunction:Function; 
public function UrlLinkRenderer() { 
super();}
// Override the set method for the data property. 
override public function set data(value:Object):void{
super.data = value; 
if (value != null){
label = value[DataGridListData(listData).dataField];
else{
label =
super.invalidateDisplayList();}
Now what i want is to add a new Event Listner to this object so that I can click it?
In your suggestion you said:
                     var classFacory:ClassFactory = new ClassFactory(LinkRenderer); // here LinkRenderer is any mxml/ as file Having Link Button defined.
Where should be the Link button defined??
Thanks.

Similar Messages

  • How to add a hyperlink to javamail attachment?

    Hi friends:
    I am writing a mail systems.I can receive email attachment using javamail API. But I don't know how to add a hyperlink to the attachment so when user click the hyperlink the file will be download to disc.
    I means that I want to add a hyperlink to the attachment,the hyperlink will get the file's path in mail server.Because the mail's attachment are stored in mail server so I don't know how to get it in my servlet.
    what I can do is get a inputstream using messagePart.getInputStream();. I only can get a inputstream in servlet.&#65320;&#65359;&#65367; to change the inputstream to a File when user click it and download it?
    Help!
    Thks

    I am making a same application now...
    You have 2 possibilities:
    1. Save all the data from the stream to a file That is accessible from the outside through HTTP and then put a link to it
    2. Make a link to a seperate JSP page with the following parameters: Folder name (describing where the desired message is), Message id (the number of the message inside the folder) and Part number (you will have to count it yourself). The JSP page then returns all the data.
    If you do the second thing, you will have to take care that the first line in the jsp starts with <% because if it does not, the JSP will send an \r\n and that will modify the data.
    You will also have to do the following:
    response.setHeader("Content-Disposition", "attachment; filename=myfile.txt");
    response.setContentType("application/octet-stream; name=myfile.txt");If you know the MIME type, replace application/octet-stream with the MIME type.
    Michael

  • How to add a hyperlink to my Frame?

    Hi everyone:
    I want to add a hyperlink to my swing application .When user click it whick will open a IE and go to mywebsite.But it is so difficult ,my code don't work property.
        je.setPreferredSize(new Dimension(180, 22));
        je.setEditable(false);
        je.setPage("http://localhost:3030/lyomail/html/link.htm");
        final JTextField jf=new JTextField("http://java.sun.com");
        jf.setEditable(false);
        jp.setBackground(Color.orange);
        jp.setDoubleBuffered(false);
        jp.setEditable(false);
        jp.setPage("http://localhost:3030/lyomail/html/mailpic.htm");
        JLabel MyLink = new JLabel("http://www.hotmail.com");
        MyLink.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent e) {
            //Do whatever you want to do here
            URL u = null;
            try {
              u = new URL("http://www.hotmail.com");
            catch (MalformedURLException ex1) {
            try {
              URLConnection ur = (URLConnection) u.openConnection();
            catch (IOException ex) {
        jp.addHyperlinkListener(new HyperlinkListener(){
          public void  hyperlinkUpdate(final HyperlinkEvent ed){
            if (ed.getEventType()==HyperlinkEvent.EventType.ACTIVATED){
              SwingUtilities.invokeLater(new Runnable(){
                public void run(){
                  try{
                    Document doc=je.getDocument();
                    URL u=ed.getURL();
                    je.setPage(u);
                    jf.setText(u.toString());
                  }catch(Exception e){
                    System.out.println(e.toString());
        });The Runtime.getRuntime().exec can do this well.But how to get user's Explore 's path? Where he install IE?
    THks!

    Hi
    I change my code to :
    try{
                        Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler http://localhost:3030/lyomail");
                      }catch(IOException ed){
                         System.out.println("E:"+ed.toString());
                }But it can't work now. It report error when I run it
    java.net.ConnectException: Connection refused: connect

  • How to add a hyperlink in Keynote 6.2 ???

    Hi all,
    I am trying to do something that should be really simple: add a hyperlink to a text object in Keynote. I have not found any way of doing this. In some articles I read something about a hyperlink inspector, but my Keynote doesn't have such an inspector.
    So: how on earth do I accomplish this ???

    my Keynote doesn't have such an inspector.
    All versions of Keynote have an Inspector.
    You have decided not to say what version of Keynote you are using:
    In the latest version 6.5, the Inspector is not used for hyperlinks, instead select the text box, right click and choose add link    

  • How to add a hyperlink in the text caption?

    Hi,
    I am using Captivate 5. Anybody knows how to insert a hyperlink in a text caption? For example, the texts in the text caption are "See Adobe Captivate Forum for details." How to create a hyperlink for "Adobe Captivate Forum" which leads to the forum website?
    Thanks,
    Helen

    There is no tru hyperlink object in Captivate as such.
    You can use a button or a click box to provide users with an interactive object that when clicked will call a URL or document.
    However, this doesn't really give you a mouse rollover effect the way users are accustomed to seeing in normal web hyperlinks.
    If you really want to add a piece of on screen hyperlinked text (with rollover effect) to a Captivate project, the closest you'll come to it is this widget: http://www.infosemantics.com.au/hyperlink

  • How to add music to idvd opening menu?  How To's don't work

    how to add music to opening theme of idvd slide show.  How To's haven't worked???

    Hi
    In what format was the Audio You used ?
    I only use
    • .aiff 48kHz 16-bit (as from miniDV tape Camera - or -
    • .aiff 44.1kHz from Audio-CD (as You play on the Stereo)
    I never use (directly without converting to .aiff)
    • .mp3
    • .wma
    • - from iTunes
    all of them I convert to .aiff 48kHz or 44.1kHz
    then iDVD (and iMovie and FinalCut Express AND Pro) takes them without any problems
    Yours Bengt W

  • How to add a hyperlink to a jpg banner image

    Where the here is i need to add a hyperlink, the image is a jpg.
    Regards Peter

    Here is the HTML simply substitute your web page and image path:
    <a href="http://www.ama-assn.org/"><img border="0" img src="
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5087740-299746/257-106/bannerf an.png
    ">

  • How to add an index to a materialized view in Data Modeler 3.3

    Hello everyone,
    I'm looking for a how-to to add an index to a materialized view in Data Modeler 3.3.0.747, as I coudn't find a way to do it so far.
    I looked here:
    Relational Model
    Physical Model
    Oracle 11g
    Materialized Views
    "my_mv_name"
    "INDEXES" IS NOT HERE IN THE TREE
    "Tables" does not include it either
    Thank you & Best regards,
    Blama

    Hi David,
    thanks a lot. I did so and it worked, but I found a minor bug while doing so:
    I marked the table as "Implement as Materialized View" and went to File->Export->DDL (for Oracle 11g).
    The generated code (I checked all options in "Drop Selection") includes a row:
    DROP MATERIALIZED VIEW mv_mymatview CASCADE CONSTRAINTS ;
    which produces a syntax error.
    Best regards,
    Blama

  • How to click on linkbuttons in the rows of a data grid

    I'm trying to write automation test cases for a flex application using Flex Selenium.
    The flex selenium API provides only 2 click events: click(String objectId) and click(String objectId, String optionalButtonLabel)
    There are no click events for rows or columns for a data grid.
    The application has a  DataGrid with 2 linkbuttons in a column for each row (besides other columns).
    The linkbuttons have an id. But clicking it only clicks the one in the first row.
    Now, I have to perform these tasks:
    - Click on the link buttons in any row
    -  Click on any row
    -  Click on column  header to sort
    How can I accomplish these?

    Hi Suman,
    thanks for your prompt reply.
    I am trying it but it doesn't work. I started to run the query for a while but it is still running and there is no result for it. I still see the variable popup I filled after the first running of the query.
    Any other idea?
    Kind regards,
    Ali

  • Calling a method on click of a hyperlink which opens popup

    Hi,
    I am new to the technology.
    I have a hyperlink on .jspx page. Upon clicking it a pop up should open. I need to pass an object to a methd in the bean which will pre populate data in the pop up as soon as it opens. i.e. want to populate the data in the pop up from the data base. Please tell me how that can be done?
    Using adf 11g jsf 2.0

    1.On click of the hyper link, call a managed bean method. You can set the value to be passed to managed bean method on click of hyperlink via setActionListener.
    Check this for setActionListner example: http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_setActionListener.html
    2.And based on that parameter, populate the data from the data base.
    3. After that launch the popup programatically. Read the article with heading How to launch a popup programatically from Java in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf
    -Umesh

  • How Do I Prevent Hyperlinks from Opening in a New Window?

    Hi,
    Does anyone know how to make links in the current presentation open in the same window?
    While I understand that ordinarily it would make sense to have links in the middle of the presentation open in new windows so as to not make users lose their current place in a presentation when they click on a link, my presentation ends with a link to a quiz on a secure server.  Because the link in Presenter forces a new window to open, it is not evident to all users that the link does anything.  This is especially true for IE users. 
    Thanks for the help,
    Todd

    You do not need to move your cursor much when pressing the mouse button to cause the tab to tear-off/tear-away into a new tab. No "sensitivity" setting that I am aware of. The tab in the new window can be dragged back to the original window.
    To disable the feature, install this: https://addons.mozilla.org/en-US/firefox/addon/bug489729-disable-detach-and-t/
    *Read the information on the above page
    *Set options for the add-on: Add-ons > Extensions, click Options next to the specific Extension (the 2 options are defined/explained in the above page).
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to add several hyperlinks in a graph on different location

    Hi,
    I have been able to create hyperlink using srw.set_hyperlink() for text report.
    I create a bar graph to show data monthly, (Jan, Feb, ..., Dec), thus showing 12 bars in a bar graph.
    I need to make different hyperlink (to drill down) for each month.
    So when user click one of the bar (i.e January bar), then it will drill down to data for January.
    Is there possible to create several hyperlinks in a graph, to link to different location?
    If possible, where should I put the srw.set_hyperlink()?
    How can we handle, the location to be placed with the srw.set_hyperlink()?
    What if it is a pie graph, can we do the same?
    Many thanks,
    Buntoro

    Hi Fazith,
    thanks for your answer.
    I have tried it:
    a=CROSSTAB_1.getSelectedMember("OD_NW_Regio").text;
    APPLICATION.opennewWindow("http://www.wetter.net/47/"+a);
    For testing, I want that the name of the city which is filtered with Dimension OD_NW_REGIO should be added to the url wetter.net (it should show me the weather for the selected city).
    But this script didn't work. I think i have to define "a" or not?
    And according to the onselect function, will the separate report (in this case the weather-side for the selected city) open automatically, or must I click anything?
    Thank you for your help.
    Kind regards,
    Heike

  • How to add My Documents to Open and Save as

    Hi,
    How can I add My Documents to the list of places under File ->"Open" and "Save as" in Office 2013 applications?
    Users in my organization are truly frustrated by having to click on "Computer" and then choosing the "My Documents" folder every time they need to access their My Documents.  Any suggestions?
    Thanks!
    -sul.

    Can you make a screen capture, or diagram showing exactly what you want to do?  I just can't picture it.
    If what you want to do is place it directly under the Open command in the File menu it would not be easy.  The only slight possibility I can think of would be to create custom ribbon XML code to modify the "Backstage Pane".  I
    How do I change Backstage(File) view in Excel 2010
    Customize the Office User Interface in Office 2010
    http://technet.microsoft.com/en-us/library/ff468686.aspx
    Updated: September 9, 2010
    This article lists resources that will help you customize the Microsoft Office Fluent user interface (UI) in Microsoft Office 2010 applications.
    Microsoft introduced the ribbon extensibility model in the 2007 Microsoft Office system as part of the Office Fluent UI. This was a new way to customize the user interface and create custom tabs and groups that
    were specific to users’ needs. Office 2010 extends the span of the UI extensibility platform by providing support for customization of the new Microsoft Office Backstage view.
    Customize the Backstage view
    In Office 2010, the Microsoft Office button is replaced by the
    File tab. The File tab brings you to the Backstage view. The Backstage view is customizable and lets organizations customize the UI to suit their needs.
    For information about how to use and customize the Backstage view, see the following resources:
    Introduction to the Office 2010 Backstage View for Developers (http://go.microsoft.com/fwlink/?LinkId=182189
     http://msdn.microsoft.com/en-us/library/ee691833%28v=office.14%29.aspx
    Customizing the Office 2010 Backstage View for Developers (http://go.microsoft.com/fwlink/?LinkId=184245
    Change the Ribbon in Excel 2007 or Excel 2010
    http://www.rondebruin.nl/ribbon.htm
    Ron de Bruin (last updated 6-Oct-2010
    <snip >
    More RibbonX examples
    You can download 8 Excel files here with basic RibbonX examples for Excel 2007 and Excel 2010.
    Download Example Excel files Last Updated : 27-June-2010
    Add custom group in built-in tab.xlsm
    Add menu and buttons to Backstage or Office Button.xlsm
    </snip>
    I haven't seen any documentation about customizing the 2013 backstage.

  • How to make a hyperlink to open new small window?

    HI!
    I try to make Dreamweawer to do next action when i click on
    some hyperlink on my page:
    - open new small sized window that does not have any
    navigation buttons from browser (back, forward, stop,...)
    - in that window there should be only picture and some text
    Probably stupid question ...but i would be happy if someone
    can help me.
    Thanks all
    Xedor!

    Go to Dreamweaver Exchange and search for "Smart Link." The
    extension is free, and it will meet your needs mentioned above.
    Good luck!

  • Anyone know how to add a hyperlink to the HTML Gallery template?

    In previous versions, I created a modified HTML template which included a link back to a specific page. This placed the link on ALL of the Index pages. Now I must modify HUNDREDS of indices to accomplish the same thing. There has GOT to be a better way!

    With iOS 5 in the Autumn (from http://www.apple.com/ios/ios5/features.html#more) :
    Even add and delete mailbox folders on the fly.

Maybe you are looking for

  • Using CAST function to convert to timestamp

    I have a select statement that runs via JDBC and is not using any index as timestamp is explicitly used. I would like to be able to convert to Date so the proper index can be used as this column is of Date datatype. I'm having "ORA-25137: Data value

  • No reviews in iOS 7 App Store.

    Maybe I'm the only one, but I generally check reviews on new app versions before downloading updates. In iOS 7, you can no longer see current reviews from the updates screen in App Store. Is there any workaround for this?

  • Do you have to have the nike shoes in order for the senior to work?

    Can you just use any shoe with the Nike and Sport kit?

  • Calendar, start_date through end_date

    I'd like to use the calendar to display personnel information (out of office, meetings, training, etc.) These things typically span more than one day, but I do not see anything in the calendar to specify a date range for an "event". Any chance anyone

  • HTMLLoader Scrollbars

    I'm working in Flash and have added an HTMLLoader to a movieclip via actionscript. I can't seem to figure out how to add scrollbars. The content is clearly bigger than the window, and the content scrolls if you drag it. What I've ended up doing is ad