Link to Url in ALV
Hi,
We have the Tracking number being displayed along with all the other order details.
Requirement is to call the frieght forwarder url once the Tracking number is clicked.
Looking forward for a quick response.
Thank U,
Kedar
Hi Kedar,
Please refer to the below code for creating an URL.
It was developed and tested exclusively for your requirement.
Here i created a node 'TABLE_ALV' which has three attributes BUKRS, BUTXT, PERIV.
Out of which i made BUKRS as LTU, and bounded to a URL.
METHOD wddoinit .
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
DATA lt_columns TYPE salv_wd_t_column_ref.
DATA ls_column LIKE LINE OF lt_columns.
DATA lo_column TYPE REF TO cl_salv_wd_column.
DATA lo_ltu TYPE REF TO cl_salv_wd_uie_link_to_url.
lo_cmp_usage = wd_this->wd_cpuse_use_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
lo_interfacecontroller = wd_this->wd_cpifc_use_alv( ).
lo_value = lo_interfacecontroller->get_model( ).
CALL METHOD lo_value->if_salv_wd_table_settings~set_read_only
EXPORTING
value = abap_true.
CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
RECEIVING
value = lt_columns.
LOOP AT lt_columns INTO ls_column.
lo_column = ls_column-r_column.
CASE ls_column-id.
WHEN 'BUKRS'.
CREATE OBJECT lo_ltu.
CALL METHOD lo_ltu->SET_TEXT_FIELDNAME
EXPORTING
value = 'BUKRS'.
CALL METHOD lo_ltu->set_reference
EXPORTING
value = 'https://www.google.com'.
lo_column->set_cell_editor( lo_ltu ).
ENDCASE.
ENDLOOP.
Hope it answers your question.
Regards,
Shashikanth. D
ENDMETHOD.
Similar Messages
-
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,
IngmarI answered it myself. I had to look that for the called server no proxyserver will be used...
-
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> -
"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 -
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.
Vikashworkaround:
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 -
Link to URL - How to Open a New Tab
I have created some PDF's in Adobe Acrobat and I am hosting them on my website. So for example here is one: <possible spam link removed - kglad>
I have created links to URL's using the Link Properties tool, Actions tab. However it will only open the URL in the same tab.
Is it possible to have the URL's open in a new tab?
Hope someone can help.
HeathYou need to use the target="_blank" attribute to make links open in a new window or tab. Where the link actually opens is up to the browser settings. So if you have Tools > Internet Options > Tabbed Browsing Settings > "Always open pop-ups in new tabs" selected, a target="_blank" link will open in a new tab. Note that this type of link will open in a new window by default on most browsers.
-
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 -
URGENT: pass parameters from report to report without usting a link or URL
HI.
I want to send an ID field from a report to a report (like master-detail) and that should be done by pressing the next or previous button. So, not with a LINK or URL link.
Is that possible? I used the wwsto_api_session package in several ways, but no luck so far.
Thanks,
Paul.If your requirement is to provide buttons that take the users to another report, you have to do the following:
In your source report (report A), create a form containing a button. Use hidden fields for the parameters you have to pass to the target report (report B).
You'd need to base your report A on a SELECT statement. One of the columns in the SELECT statement can be a string where you actually construct the entire HTML form, something like:
SELECT ...., '<form action=... method=post> ... ' FROM ...Hope this helps. -
Issue linking external URL's in task list
When I link a URL to a task list, a pop-up at the bottom of the screen saying "Only secure content is displayed" with a button saying "Show all content"
When I select "Show all content" an Internet Explorer pop-up appears asking to either "Leave this page" or "Stay on this page."
Selecting "Stay on this page" does nothing, but selecting "Leave this page" logs me out of Planning. When I log back in, the web page appears when I click on the task list.
When I log off and close my browser, I have to go through the same steps.
Is there any way to have the URL task list work without having to go through those steps? Is this an IE security setting?
Thank you in advance for any input.
TiffanyWhat URL are you using, is that an FR or WA report? If so check this Oracle - Hyperion Labs......: Generate Smartcuts for all objects under a folder
Regards
Celvin -
Calling tcode using link to url
hi friends,
i want to call tcode SE38 in webdynpro application by using linktourl.
here i am going to
shuffler
system
webgui in internet service
and then right click on it then
publish->complete service.
and later i am going to tcode sicf
here i am giving the path /sap/bc/gui/sap/its/webgui and activate it
what is the need of giving the path here
and who is going to give the path as default....?
can anyone explain clearlly..
Thanks in advance
karunakar
Edited by: bkarunakar on Jul 19, 2011 3:56 PMHi Karunakar,
Goto SICF.
Select the path as : /sap/bc/gui/sap/its/webgui
right click on webgui and click on "test" to execute the servies.it will open the sap screen in web browser.
**NOTE : if it gives an error you need to do some setting Reply if you want the steps for setting.**
create LINK to URL or LINK TO ACTION according to requirement.
use URL as URL = 'http://<url>:portno/sap/bc/gui/sap/its/webgui?~TRANSACTION=SE38'. //
"Note : you can find this url in ur WEBDYNPRO Application Properies
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
ld_url = FINAL_URL.
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING URL = url
RECEIVING WINDOW = lo_window.
lo_window->open( ).
Also check this...
Re: Reg calling Transaction code in Webdynpro ABAP
Cheers,
Kris. -
To Include link to URL in FORM_UIBB for Personal Deatil view
Hi Experts,
I have requirement to include the Link to URL in the Form UIBB for Personal Deatil . The form UIBB is built using the Fedder Class - CL_HRESS_PER_DETAIL.
The Fedder class get the Structure in the - IF_FPM_GUIBB_FORM~GET_DEFINITION fom the BOL component - HRPAD Object Name - IT0002_10 which are included as the Fedder Class Parameters.
Please let me know how include the Link to URL in the View.
Thanks
AmolHi Amol
Can u let me know what exactly u have done?? have you run'd HRESS_CC_PER_OVP?? or changed any Individual DTL screen???
Cheers
Pradyp -
How to open the pdf document from KM through Link to URL UI element
Hi All,
I have Link to URL UI element in webdynpro java layout - on click of the link we need to open the pdf document from KM respository.
KM Document location : irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf.
Once this is transported to Test and Production portals , we need to retrieve the KM document from the respective portal location through the Link to URL UI element .
Thanks,
Portaluser100Hi,
If you set the link to your document in a Context attribute by using a relative path this should work just fine.
Example:
wdContext.currentContextElement().setUrl("/irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf");
Bind that attribute to the reference property of the LinkToURL element.
Cheers,
Leo -
Linking another URL to an existing iWeb site?
Is it possible to link another URL that I have registered (with GoDaddy) so that it connects directly with the URL associated with my iWeb site?
Thanks so much for any advice.
Steve PressmanUse masked web forwarding and forward your domain name to web.me.com/username/sitename.
If you have used CNAME forwarding once, then you need to use web forwarding for your other domain name.
Maybe you are looking for
-
I would like to know what is ABAP class creation (Table API). Also would like to know how is it related to SAP BW reports.
-
Hide the "Try" list. I don't want any CC apps.
I don't have any CC apps only CS6 apps. On a Mac you can install this Adobe utility that puts a little icon in the upper right at the Finder for Creative Cloud that when you click on it once you get a handy pull down that lets you see which apps need
-
Firefox prompts me to update. when i do, it will not allow internet connection.
Firefox will prompt me to update. After the installation is complete, I cannot connect to the internet. I've checked the firewall and this is an allowed program. I do not have any proxy settings specified in firefox. I have to restore the earlier ver
-
Switch configuration distributed environment
Hi I have ISE 1.2 and catalyst 2960 Please I nedd a document of controller and switch configuration exemple in distributed environement (primary and secondary ISE MNT PSN) Thanks
-
Gedit problem. Can't use find or replace functions.
I'm using Xfce, I installed gedit. It works but I can't use the "Find" and "Replace" functions. I receive the following error: Could not find the required widgets inside"/opt/gnome/share/gedit-2/glade/replace.glade2". Please, reinstall gedit. Reinsta