How to add a Link to a custom Search Componnent (HTMLB)
Hi all,
i developed a custom Search Component for the Search iView based on the <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/41cbcb56-0701-0010-43b4-fbc138ea2b6a">Tutorial</a> (CodeSamples Section) from Thilo Brandt. It extends the BaseCompositeComponent and implements the iSearchComponent. In the Tutorial he creates the Elements (Checkboxes, links, etc.) in the Method "renderComponent()". He also creates a Link, but i need it with a different function. The link in the tutorial a releases a new search roundtrip. I need to open a new Bowserwindow and show the content of a specified URL. How can i do that?
The second Problem is that i have to show an icon for the Link. I added an Image to the the Project to the /dist/images Path. But how can i access this resource? The following code shows xou the Problem. I need to fill the variable pathToImage.
Link linkToHelp = new Link(this.createCompositeComponentId("HELPLINK"));
Image helpImage = new Image(<b>pathToImage</b>,"Help");
linkToHelp.addComponent(helpImage);
Thank you for answers.
Marcus
hi
you don't need to use custom actions in order to add links to the quick launch menu. It allows to add links programmatically to the menu items collections directly, see e.g.
Adding Links to Quick Launch. From this link check the following example which adds an item under the Lists heading in Quick Launch.:
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Navigation;
namespace ConsoleApp
class Program
static void Main(string[] args)
using (SPSite site = new SPSite("http://localhost"))
using (SPWeb web = site.OpenWeb())
// Get the Links list or create it if it does not exist.
SPList list = web.Lists.TryGetList("Links");
if (list == null || list.BaseTemplate != SPListTemplateType.Links)
// Create the list.
Guid listId = web.Lists.Add("Links", "Interesting hyperlinks", SPListTemplateType.Links);
list = web.Lists.GetList(listId, false);
// Check for an existing link to the list.
SPNavigationNode listNode = web.Navigation.GetNodeByUrl(list.DefaultViewUrl);
// No link, so create one.
if (listNode == null)
// Create the node.
listNode = new SPNavigationNode(list.Title, list.DefaultViewUrl);
// Add it to Quick Launch.
listNode = web.Navigation.AddToQuickLaunch(listNode, SPQuickLaunchHeading.Lists);
Console.Write("\nPress ENTER to continue....");
Console.ReadLine();
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com
Similar Messages
-
How to add .js link in custom list form through sharepoint designer 2013
hi friends
so far i was adding jquery code to script editor webpart in custom list form.
but i need to know how to add .js link in custom list form through sharepoint designer 2013
please help me.Hi,
We can add the "JS Link Property" in the “WebPart” node in the custom list form page through SharePoint designer 2013.
Here is an example for your reference:
<JSLink xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">~site/Style Library/js/custom.js</JSLink>
Noticed that, we should not lose the 'xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm' attribute.
Best Regards
Dennis Guo
TechNet Community Support -
How to add a validator to a custom tag
Hello,
I would like to know how to add a validator to my custom tag as an attribute.
<mytags:custom validator=???/>
Thanks.
SebastienAre you wanting to use one of the JSF validators or a home brewed one?
-
How to add F4 help for the custom field of a custom table
Hi All,
How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
PROCESS ON VALUE-REQUEST.
FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
Thanks&Regards
maheshHi,
Create a subroutine under the event and call the following FM
1. Select all the related data into an itab, for ex i_kunnr
2. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'KUNNR'
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = '1000'
dynprofield = <selection screen field>
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = <b>i_kunnr</b>
FIELD_TAB =
return_tab = < return table >
DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3 -
How to add a link to your message
Does anyone know how to add a link to a message?
laptopman,
As Klaus1 posted, you can also use the Character Palette.
In the Palette, select View : Glyph > Glyph Catalog. You will find the , among others, there.
You can copy & paste, or position the cursor where you want the glyph in a document, highlight the glyph, and click on Insert with Font.
If the Character Palette is not in your Menubar, open System Preferences > International > Input Menu: Checkmark Show input menu in menubar.
To open the Palette, click on the Flag icon in the Menubar, and select Show Character Palette.
ali b -
How to add a link button in system form?
how to add a link button in system form in the edit text?
HI
see the following code
This creates an item "55" caption, and exittext ("550") and creates linked button "51" linked to "550"
oItem = otmpform.Items.Add("55", SAPbouiCOM.BoFormItemTypes.it_STATIC)
With oItem
.Top = 315 + 30 + 15
.Left = 12
.Width = 100
.Specific.Caption = "Többlet"
End With
otmpform.DataSources.UserDataSources.Add("550", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
oItem = otmpform.Items.Add("550", SAPbouiCOM.BoFormItemTypes.it_EDIT)
With oItem
.Top = 315 + 30 + 15
.Left = 120
.Width = 100
.Specific.DataBind.SetBound(True, "", "550")
.AffectsFormMode = True
.Description = otmpform.Items.Item("55").Specific.Caption
.DisplayDesc = True
End With
oItem = otmpform.Items.Add("551", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
With oItem
.Top = 316 + 30 + 15
.Left = 120 - 14
.Width = 13
.LinkTo = "550"
.Specific.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
End With
Regards,
J. -
How to add an embedded report to custom UI?
Dear colleagues:
Since now I am doing investigation on this:How to add an embedded report to custom UI , so do you have some guideline doc for this?
Requirement is:
Customer want to add a custom report to a custom FS page. And it has some standard fields from contract. So do you have any ideas about this?
Thanks & Best Regards,
QiangHi Jens,
Attachment is the guideline for how to add an embedded report to custom UI. However, so far as i know, there still a limitation that is about inport parameter.
For example, now can show all data of accounts. but i just only want show one account data when click account. so you can share to us if you have any idea about it.
Thanks &Best Regards,
Qiang -
how to add mail link in muse?
Just type the e-mail address in the Hyperlink control in the Control Strip.
-
CRM IC Winclient - How to add new fields in the BP Search of TRX CIC0
Hello Experts,
I want to know how to add new fields in the BP Search of TRX CIC0. In the HTML that we're using here I need to add the URL of the BP.
Can you help me?
Thanks in advance.
Caíque EscalerHi
make append to tables in se11 - CCMBP1FIELDS, CCMBP2FIELDS
in spro in Define customer-specific search control -> mark fields with X.
and enhance html template CRM_CIC_SEARCH_DISPLAY. -> tcode smw0, look for package CRM_CIC_COMPONENTS for html CRM_CIC_SEARCH_DISPLAY. export it from SAP, edit, and import.
you will need to enhance function module used for searching - you will find him in spro in Search Strategies.
Regards
Radek -
How to add Column field in the custom Query Link search page as a header
Hi,
I have created a Query page link in web layout editor. Now, I want to customise the view of the result. I see an option to change the "Text1" and "text2", but how do I add other fields as a colum in the search result ?
The only column I see by default Id, Title, release date and author. I want to see some of the custom metadata in the search result. I don't wan't to apply user specific custom search page.
Overall, I want a common search view across all the user such that each user doesn't have to create a custom search view.
Please help.
Thankshi
By adding context node, you will not be able to fetch value. To fetch value in BTSubject, you need to have following nodes in your context node.
Node Relation Higher level node
BTAdminH
BTBOSSet BTHeaderBOSSet BTAdminH
BTSubjectSet BTSubjectSet_A BTBOSSet
BTSubject BTSubjectAll BTSubjectSet_A
Right now you dont have BTBOSSet and BTSubjectSet in your view. That is why component is unable to pull data in BTSubject.
My suggestion would be to create cuco with above nodes
Bind BTAdminH with BTAdminH of Component controller
and bind BTSubject of details view with BTSubject of your Cuco.
If you want code code gp catalog as it comes in complaint then there is seperate procedure for that.
Best regards
Pankaj Kumar -
How to add a link under quick launch using custom actions?
http://msdn.microsoft.com/en-us/library/office/bb802730(v=office.15).aspx
Custom actions allow us to create feature to add a link under site settings, site actions menu and even central admin.
Is there any way we can extend this feature to allow links being added under quick launch? I tried providing location Microsft.SharePoint.Navigation but that had no effecthi
you don't need to use custom actions in order to add links to the quick launch menu. It allows to add links programmatically to the menu items collections directly, see e.g.
Adding Links to Quick Launch. From this link check the following example which adds an item under the Lists heading in Quick Launch.:
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Navigation;
namespace ConsoleApp
class Program
static void Main(string[] args)
using (SPSite site = new SPSite("http://localhost"))
using (SPWeb web = site.OpenWeb())
// Get the Links list or create it if it does not exist.
SPList list = web.Lists.TryGetList("Links");
if (list == null || list.BaseTemplate != SPListTemplateType.Links)
// Create the list.
Guid listId = web.Lists.Add("Links", "Interesting hyperlinks", SPListTemplateType.Links);
list = web.Lists.GetList(listId, false);
// Check for an existing link to the list.
SPNavigationNode listNode = web.Navigation.GetNodeByUrl(list.DefaultViewUrl);
// No link, so create one.
if (listNode == null)
// Create the node.
listNode = new SPNavigationNode(list.Title, list.DefaultViewUrl);
// Add it to Quick Launch.
listNode = web.Navigation.AddToQuickLaunch(listNode, SPQuickLaunchHeading.Lists);
Console.Write("\nPress ENTER to continue....");
Console.ReadLine();
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com -
How to add a Link with children in the SuiteLink bar?
Hello,
I have developed a code to add a new link in the SuiteLink bar using delegate control that works as expected. Now I want to include a new link
but with children, I have tried many options in my code but with not luck.
What I need in the SuiteLink bar is something like:
My Services Newsfeed OneDrive Sites
Service 1
Service 2
Service 3
Any idea on how to achieve this?
Thanks,
Daniel
Daniel VillacisHi,
According to your post, my understanding is that you want to add sublink in the top navigation bar.
There is an article about this issue, it contains the steps about how to create a link with sublink in the top navigation bar, you can have a look at it.
http://www.helpmeonsharepoint.com/2012/03/custom-sharepoint-top-menu-and.html
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
How to add youtube link?
I'm desperate to add a youtube link to appear as the video itself !! how to do that ?
I always copy and pasted youtube embedded code into HTML code; however, I don't know how to add and edit html code in hereIt's possible by placing the embed code in your own Dashcode widget, and making sure that a default image of the right size is included, along with a few javascript callbacks.
If you do not want to code this yourself, we've put together a widget wizard at http://www.classwidgets.com/ that will generate a custom YouTube widget for you, if you give it the web url address of the video you want. -
How to add a link in the masthead in the portal
Hi,
Actuallly i want to add a new link for ex-help link or user info etc..in the masthead in theportal,can any one please suggest me how to go about it as iam completely new to E.P and have not done any development ,till now have been dealing with support issues ,so your help will be greatly appreciated.
Regards
PoojaHi,
Follow this link,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d07bf112-1705-2a10-1a9f-d0a705e550fa
This article will clearly explain how to add a new link in masthead.
I hope this is helpful for you. You have any doubt regards this ask me, i will help you.
Regards
Prakash T -
How to add a link to an interactive svg using edge commons library
Hi,
I've been playing around with this wonderful Edge Commons interactive SVG tutorial
My question is : How to add an external link "url" to an interactive svg using edge commons library ?
Edge commons example file :
http://edgedocks.com/market/interactive-svg-example-project-edge-commons
Edge commons video tutorial :
http://www.youtube.com/watch?v=4UEB6gaLKuw
I have adapted this tutorial to an interactive map, http://madudesign.com/works/france/ every thing is going fine until I couldn't figure out to link a particular url on each part of the region of the map.
I managed to figure out how to change colors on the different parts of the map on mouse over and mouse out but I'm not quite comfortable with JavaScript since I don't use it every day...
I have tryed to link to an url by passing it on the illustrator layer and via the onclick event (event.target.id) to a simple url
http://redpen.io/6svh5u
then working in Edge and publishing on the browser the link returns me a weird url line by replacing the original url slashes "//" by "_x2F_" and I must have misunderstood the proper JavaScript line to open that link from there...
for example on my actual exemple "http://madudesign.com/works/france/"
the first top region of France is normally a link to "http://www.google.com" and it returns "http:_x2F__x2F_www.google.com" plus the complete path to the file too...
I don't know how to get around this trick and have back for each region a particular clean link from the event target id of the svg...
thank-you for any help
matt
link to my edge animate file if needed :
http://madudesign.com/works/france/carte_de_france.zipI got an answer from the Edge Commons dream team and I am very grateful to them :
"The problem that you bumped into was that you hadn't included a valid URL so far. We weren't sure if you wanted to include them within the SVG file or if you wanted to implement the functionality within Edge Animate. We came up with a solution for the latter one, with a simple switch in the js code:
You have to type in the appropriate URL of course for all the cases."
I have to share the final result:
http://www.madudesign.com/works/france/france_map/
And the zipped project file:
http://www.madudesign.com/works/france/france_map.zip
Thanks to Daniel & Simon
Matt
Maybe you are looking for
-
Open Orders are negitive in ODS and Info cube
Hi, Our ODS is getting data from sales order Item data and from ODS data is going to Info cube. The problem is that: for few sales orders some open orders are deleting in R/3 but same records are reversing the old records due to this in the ODS and i
-
To start... I have searched and found some answers to these questions that don't seem to work well. I have created a Keynote Presentation with 4 slides, two with animated backgrounds, one sound effect on each one, animated Move-In, Out, & Actions, a
-
Why i can't import myOwnPackage.myOwnClass ?
Hello. I am using NetBeans 6.5 I want to import this code wish is located in D:/NetBeansProjects/BoardGame/scr/Board.java import javax.swing.JPanel; public class Board extends JPanel public Board() }To another java source code with is located in D:/N
-
Switch order of full screen apps
Hello, I was wondering how you switch the order of full screen apps. For example, If I have 2 full screen apps going (Safari and Mail) then while looking at my desktop I decide to make iTunes a full screen app. It will place iTunes as the 1st full sc
-
G780 : Windows 7 Home Premium 64bit
Hi,, can anyone point me towards bios download for g780 laptop, i mistakedly installed the wrong bios and after hours of searching this site i can't find the origional bios download.