Link to URL in a table

Hi,
I want to insert a link to url in a column of a table dynamically.
Iam able to create the column and the link to url also.But i dont know how to set thid link in the column of the table.
Please suggest.
Regards,
Padmalatha.K
Points will be rewarded.

hi,
  use this code for creating dynamic table and link to action  as a table cell editor.
public static void wdDoModifyView(IPrivateDynamicCompView wdThis, IPrivateDynamicCompView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    //@@begin wdDoModifyView
       if(firstTime){
            IWDGroup theGroup = (IWDGroup)view.getElement("InputGroup");
// name of the group in the view layout
       IWDTable table = view.createElement(IWDTable.class);
       IWDTableColumn column = view.createElement(IWDTableColumn.class);
       IWDLinkToAction linktoaction = (IWDLinkToAction) view.createElement(IWDLinkToAction.class);
  IWDAction action = view.getAction("Action");
linktoaction.setOnAction(action);       linktoaction.bindText("test.test");
// context node (test)and attribute(test) binding the path to the link to action text property
       linktoaction.setEnabled(true);
       linktoaction.setImageFirst(true);
       linktoaction.setVisible(WDVisibility.VISIBLE);
       column.setTableCellEditor(linktoaction);
IWDCaption caption = view.createElement(IWDCaption.class);
       caption.setText("header");
       column.setHeader(caption);
       IWDNodeInfo node = wdContext.nodeTest().getNodeInfo();
       table.bindDataSource(node);
       table.setEnabled(true);
       table.setFooterVisible(true);
       table.setRowSelectable(true);
       table.setVisibleRowCount(5);
       table.setDisplayEmptyRows(true);
       table.setSelectionMode(WDTableSelectionMode.AUTO);
      table.addColumn(column);
           theGroup.addChild(table);
    //@@end
Note: create a Action in the View Controller , in the above code the action is named as Action.
hope your problem gets resolved
thanks and regards
fazal

Similar Messages

  • Regarding Link to URL UI Element in a table

    Hi All,
    I am using "link to url" UI Element in a table column. I have mapped the column (i mean the "reference" property of "link to url" UI to a bapi node). Now, when I am populating the table, for some rows the bapi is not returning the url links. So, the column is getting disabled and not even showing the links for the rows which are getting the url link from the bapi.
    Is there any way to set the mapping row wise, so that the rows which have data get enabled with the link and which do not have data will be disabled.
    Also, can I make the whole table readonly, except for one column.
    Please help me in this regard.
    Regards,
    Murthy.

    Hi Armin,
    Thank you very much. The problem is solved. 10 points for you.
    Another Question.......
    Can we make the table readonly, leaving just one column to select.(that is the column with link to url). Is it possible? If so, please tell me how....
    Also, can you tell me the reason for the following exception.....
    <b>com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: DataNodeInfo(CreateTemplateComp.Zad_Bapi_Get_Template_Details_Input.Output.T_Template_Details): structure field Ad_Height not found
        at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:299)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:687)
        at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:238)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
        ... 49 more</b>

  • Add "target=newwin" to link component URL?

    I want to be able to have a link open in a new browser window. There does not seem to be a parameter or setting that allows for this, so I want to find the link url in the portal30 schema and manually add the target. I found the Application Id and the componenent Id, but can fidn the table that contains the link url. Does anyone know what table contains this detail?

    If you are linking to an portal application component, I fear you won't be able add "_new" link in url as the url is generated at runtime.

  • Linking Java to Access Database tables

    Hello,
    I need use JCreator to link Java to Access Database tables.
    Could any one tell me what kind of drivers I need use?
    Also, where could I find the examples of linking Java to Access Database tables?
    Thank you,
    Daniel

    Thanks.
    I have read the tutorial and downloaded the sample code from the web http://java.sun.com/docs/books/tutorial/jdbc/
    In the CreateCoffee.java programming, I made the following changes:
         //     String url = "jdbc:mySubprotocol:myDataSource";
              String url = "jdbc:odbc:DB1";
    DB1 is an Access Database file located in the same folder as CreateCoffee.java.
    //Class.forName("myDriver.ClassName");
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Every time when I run the CreateCoffee.java programming, it shows the following running error:
    SQLException:[Microsoft][ODBC Driver Manager]
    Data source name not found and no default driver specified.
    Could any one have any suggestions for solving the above problem?
    Thank you,
    Daniel

  • Getting exception in log - Invalid external link base url

    Hi,
    I am using BI-Publisher Release 10.1.3.4 and I see that for all the reports I have in it, the below line is coming in my bi-publisher log.
    [092010_053617793][][EXCEPTION] Invalid external link base url: 'http://10.177.219.162:9704/xmlpserver/' -- the ip is my machine ip address.
    This line comes for every executing of the report. This is not causing any unwanted behavior but having an exception in log is always a concern from field.
    Can any one let me know what could be the reason for that exception?

    Hi,
    I come across the issue when I tried to view the BI Publisher report, the pdf report didnt load up and throws "[072811_123101921][][EXCEPTION] Invalid external link base url:" on the server console.
    with some the Acrobat error like "there is no page to display"
    Then I checked if the data was there or not in database table to which i had connected through the jdbc conection. I found that no data was present in the database tables. So i run the ETL process again setting some flags in the source database and then the data came up in the BI Publisher connected database.
    Then when I started Bi Publisher server and viewed the reports, it worked.
    Regards,
    krish

  • Link the URL to SAP web Lists

    hi,
    how to Link the URL to SAP web Lists using the ITS server
    please help me ASAP
    regards,
    vijay
    Message was edited by:
            vijay Aru

    to do this while writing the list you have to use WWW_SET_URL function.
    example
    write: 38(3) itab-ob color col_normal intensified off .
    url = 'http://www.google.com' .
        clear : leng .
        leng = 3 .
        call function 'WWW_SET_URL'
             exporting
                  offset        = 37
                  length        = leng
                  func          = url
             tables
                  query_string  = qstring
             exceptions
                  invalid_table = 1
                  others        = 2.
        if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
    Regards
    Raja

  • LINK TO URL FOR SENDING MAIL Doesnot work if more than 255 chars

    Hi Experts ,
    I am Using Link to URL to open the mail browser with details passed as below
    lv_refr = mailto:<mail_addr>?Subject=<subjectof mail>&body=<text of the mail>.
    Above one works fine as long as  length is LE 255 chars
    if length lv_refr GE 255 does not work any more . I have body (Mail text) more than 500 chars . How can go about this issue ?
    Please reply
    Patil

    >
    Matt Ferguson wrote:
    > Hi Thomas
    >
    > Got a guestion! pertaining to this URL cutting off in emails.
    >
    > The situation is that we have a workflow in which a task sends out email, in the email the URL does not display the whole link.
    > Can you help me display the whole URL when the workflow send out the EMAIL. 
    >
    > regards
    > MAtt
    The same solution that I suggested above applies here. Build your email message as a single string.  Line lenght won't matter.  Then convert the string to the binary table.  The binar table won't be restricted to 255 character line lenghts - and in fact wont' care about line lenghts at all.  Your long URL in your hyperlink will be fine.

  • Interface Controller and Link to URL

    Hi Experts,
    Could some give me the step by step process(PDF's suggested) for the Interface controller and Link to URL.
    Regards.

    hi,
    The application of downloading data from table to excel sheet
    will give a very good idea and the solution to ur problm
    Exporting Context Data into Excel Using the Web Dynpro
    Binary Cache
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353
    Regards
    Nikhil Tapkir

  • Link to URL -- pdf should open in new window - Error

    Hi experts,
    I have a Web Dynpro Application with an ALV and a link to url in one column. The code is ok. It works fine. When I click on the URL a new browser window opens with the correct URL, but I get an Error --> "The requested URL could not be retrieved".
    It should be a pdf. But Acrobat Reader does not open. If I put the URL in Firefox Browser, it works perfect. Acrobat Reader opens and shows the pdf.
    The same happens when I use Windows 2000 System with Internet Explorer version 6.0.2800.1106.
    I have normally Windows XP with Internet Explorer version 6.0.2900.2180 with sp2.
    What can that be? On both computers I have the same version of Acrobat Reader with the same configuration.
    Had someone of you this problem, too? Who can help?
    Thanks a lot.
    Best regards,
    Ingmar

    I answered it myself. I had to look that for the called server no proxyserver will be used...

  • "Create links from URLs" preference no longer working in sticky notes

    I work with reading other people's sticky notes in Adobe Acrobat X Pro (now version 10.1.1). When they wrote URLs in the sticky notes it used to recognize them as links; now they're just plain text. My Preferences > General > "Create links from URLs" option is checked ON. I aso tried View > Tools > Document Processing > "create Links from URLs" and it added two links but only outside of the sticky notes. I am on Windows 7 Professional 64-bit. Thanks.

    AFAIK, URLs inside annotations were never converted into actual links. I'm not even sure it's technically possible to do so.
    It might have happened if the annotations were flattened and the text in them became a part of the static text of the PDF. Then the URLs in it could have been converted into "live" links, but not before.

  • How to hide the URL path on click of an link to URL element,from user

    Hi All,
          I have an link to URL element, on click of the link it opens the specified url in a new window. But in new window the user is able to see the entire URL path. I want to hide this path from the user. Can any one please suggest me how to do it.
    Regards,
    lakshmi.

    hi,
    just check this help
    http://help.sap.com/saphelp_nwce10/helpdata/en/f7/f289c67c759a41b570890c62a03519/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/fdc99ab37a8d42892e0d39bbd23be8/frameset.htm
    Link to URL Question

  • How to make a magnifying glass link to a look up table ?

    Dear Friends,
    Hello. I am developing the accounting application of journal entry. In journal line, I use the image "magnifying glass" next to each chart field. When we click on the magnifying glass, it's supposed to come up a look up table( a chart and name mapping table), and we select the proper chart to input into the chart field.
    I understand to create another record and page for the look up table. But I don't understand how to make a magnifying glass link to a look up table. Can anybody tell me how to do that ? Thanks.
    Lucy

    This is how it works,
    Table A (which stores chart fields). You have used fields from table A on a page so that users can input data.
    You don't need to put a magnifying glass image or create a new page to achieve look up page.
    all you need to do is create another table say Table B which should have the chart field and corresponding description you want to show on lookup page. Then open record-field property of the chart field on Table A and mention Table B as prompt table.

  • Link to Url properties problem

    Hello all,
    i am working on link to url UI element.
    the url that i have is larger than that i can put in reference property of link to url UI Element.
    How may i put whole of the url in reference properties of  link to url UI Element without length problem.
    Thanks & Regards.
    Vikash

    workaround:
    create an action and open the link via WINDOW API or with an exit plug
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm
    regards
    stefan

  • Links to URLs don't work in published file - Captivate 4

    In Captivate 4, my links to URLs do not work in my published file.  I am rolling this out via email to a small number of people.

    Hi there
    Likely you will need to ask each user to configure their list of Trusted Locations for the Flash Player to allow your Captivate to operate the URLs.
    Here is a small tutorial on configuring the trusted locations:
    Click here to view
    Cheers... Rick

  • Linking between PP and SD tables

    Hai friends,
    I want one link between PP and SD tables. My requirement is i have planned order PLAF table. i want to link Sales table. Please guide me.
    Thanks and Regards
    visvanath

    Hi
    You can simply link the Sales order No and ITEM
    VBAP-VBELN and VBAP-POSNR with the PP order item table
    AFPO-KDAUF and AFPO-KDPOS and get the Pp related info
    or in Sales tables there is a field called AUFNR in VBAP
    use that for PP order number
    SD tables
    http://www.erpgenie.com/abap/tables_sd.htm
    PP tables
    http://www.erpgenie.com/abap/tables_pp.htm
    Regards
    Kiran Sure

Maybe you are looking for