Wrapping a htmlb link element

I have a long htmlb link that should be wrapped to fit in a FormLayoutCell.
The generated html page has the <nobr> element inside to indicate that the link will not be wrapped. Any ideas?

Hi Dethlev,
a.) The build time is Tue Nov 25 01:27:30 2003. Do I have  the possibility to choose an other one?
b.) a snippet of the code:
I use a dynpage, created from the templatedynpage. The layout in subject is:
     FormLayout fl = this.getForm();
//The layout row has several coloums, but the relevant
//is this one:     
     FormLayoutRow headerRow = fl.addRow();
     FormLayoutCell imgCell = headerRow.addCell();
     Link editQuestion = new Link( "edit" ,
                                   "Edit Question" );
     editQuestion.setOnClick("editQuestion");
     editQuestion.setFontSize( LinkFontSize.STANDARD );
     editQuestion.setLinkDesign( LinkDesign.RESULT );
     imgCell.addComponent(editQuestion);
This link produces the <nobr> tag in the html output. I tried to use the link element outside of a formlayout, but it's the same.
Thank you, Nick

Similar Messages

  • Regarding onClick event of htmlb:Link element.

    Hi All,
    We have a table in which we are displaying error messages.
    The requirment is that each message should be a link which , when clicked should set the focus on respective element in the form.
    I am displaying each message as link as follows:
    <%
      loop at itab_message into wa_message.
                  %>
    count = count + 1.
                  %>
                  </td>
                  <td bgcolor="#F0F0F0">
                  <htmlb:link id            = "link<%= count %>"
                              text          = "<%= wa_message-msg %>"
                              >
                  </htmlb:link>
                  </td>
                  </tr>
                  <%
      endloop.
                  %>
                  </table>
                  <%
      refresh itab_message.
                  %>
                  <%
      endif.
                  %>
    Displayng messages as links is fine , but how can i acchieve the functionality , that on clicking a particular link , the focus should be set on the respective field.
    For Ex:
    There are two error messages:
    1)Enter your name
    2)Select material group from drop down list box.
    If the user clicks 1st message the focus should be set on NAME element.
    Thanks,
    Anubhav.

    Hi,
    this is not gonna be easy but first, you´re not using
    <div class="jive-quote"> </div>
    so you should erase it.
    Second, you have to extend the use of label <htmlb:link> in this way:
    <htmlb:link id        = "link<%= count %>"
                      text          = "<%= wa_message-msg %>"
                      onClientClick = "set_focus('your_field')" >
    And then, some Javascript code:
        function setfocus(myfld) {
                if (document.forms.elements[myfld] != null) {
                    document.forms.elements[myfld].focus();
    Hope it helps.

  • Extended notification by email problems with htmlb:link

    Hi,
    Have problem with link
    using
    <htmlb:link id     ="action"
    reference= "<%= LINK_URL %>" >
    everything is fine till the END
    link is shown OK
    <a class="sapLnk" id="action" href="link" target="blank"> etc.
    but
    when i receive email
    link is with additional "D" char
    can`t get out where it is adding it.
    <a class="sapLnk" id="action" href=D"link"" target=blank"> etc.

    Did some investigation.
    After MHT file goes to SODD table (and all related ones, where page is parsed to HEX)
    In conversion from hex to soli
    all quotes in HTML e.g. " are converted to =3D=22 text =22
    3D is mark of '=' in HEX
    =22 is mark of " in HEX
    and in some part of document display soli table content all these 3D=22 are replaced by related ascii symbol.
    still can`t get why in all code those 3D=22 and =22 are replaced but in href not. Encoder (some where at point of hex-to-soli and vice versa )is adding only D after href in link (<a href="link">text</a>)
    tried to hardcode link without quotes
    e.g.
    <a href=link>text</a>
    encoder added "D" before link and quote after.
    <a href=Dlink">text</a>

  • HTMLB Link : opening in new window

    Hello,
    I have a custom worksetmap component (which extends AbstractPortalComponent).
    In one scenario it renders a list of sap systems, on click of which, opens a saplogonpad.
    Now the issue we are facing is that when user clicks on one such link, worksetmap component screen goes blank.
    We are using following way to set HTMLB link properties: -
    titleLink.setReference(<link to sap system>);
    Is there any way to open this in a new window so that worksetmap component stays on its current state?
    Thanks & Regards,
    Amey

    Hi Amey,
    you can use titleLink.onClick="EPCM.doNavigate(targetUrl....);"
    see this page to understand the navigation API.
    Navigation API - Running an Enterprise Portal - SAP Library
    in your case you should either use navigation mode 1 (new window),
    3 (new headerless window) or 10 (new headerless window standards mode).
    according to your previous statement I think you need navigation mode 1.
    BR,
    Saar

  • I am new to pages and want to know how to link elements together to create one unified element that I can then duplicate several times on the same page?

    I am new to pages and want to know how to link elements together to create one unified element that I can then duplicate several times on the same page?

    I think you are talking about grouping objects.
    1. They must all be floating objects
    2. Command click on each in turn
    Menu > Arrange > Group
    Peter

  • HTMLB Link issue

    Hi all,
    We have a trouble using htmlb link object.
    How can I link an image?
    I'm using the following code but no work's:
             <hbj:link
                       id="search"
                       text=""
                       target="_TOP"
                       onClick="search_now" />
                    <hbj:image                
                    src="advanced.gif"
                    alt=""  />                  
             </hbj:link>
    Can anyone help us?
    Thanks in advance,
    David

    Hi Anto,
    it's a bug within HTMLB, see hbj:link without onClientClick ?
    I don't know if someone (e.g. MS) has opened an OSS for this, but it seems that this is not the case, for in EP6 SP2 P27 the bug still exists...
    It's not my trouble, it's yours, so I kindly ask you to help SAP getting rid of this one-thousand-years-old-wearing-white-beard-bug... and open an OSS message.
    Hope it helps &
    have a nice weekend
    Detlev

  • HTMLB Link Control

    Hello All,
    I am using a HTMLB Link Control,
    Here my requirement i am generating the Link ID Dynamically and also it is in loop.How can i call onClientClick and jsObjectNeeded
    <hbj:link
              id="<%=ID+i%>"
              text="link"
              reference=""
              target=""
              tooltip=""
              >
         <% *?*.setOnClientClick("myFunction()");%>
    </hbj:link>
    How can i call the ID for Link?
    Regards,
    Aksiti

    Hi,
       I get your question. Can think of one solution. You can create JSP2 with new portal component. Create a dumy JSP. Now When else statement is called, call dummy JSP with javascript to open JSP2 in new window like this.
    window.open(Project.portalcomponentname,title);
    Let me know if it works.
    Regards,
    Harini S

  • Htmlb link setOnClientClick giving NullPointerException

    I have a htmlb link tag in a JspDynPage that I'm trying to execute some javacript with when the link is clicked.  The problem I'm having is that when I run the component I get a NullPointerException.  Here is the code that is failing...
    <hbj:link id="link1" text="test link" reference="" tooltip = "This is a test link" target="_blank" >
         <%
         link1.setOnClientClick("alert('Click')");
         %>
    </hbj:link>
    The error is
    Caused by: java.lang.NullPointerException
    at com.sapportals.htmlb.event.EventManager.renderJavaScriptFragment(EventManager.java:436)
    at com.sapportals.htmlb.event.LinkClickEvent.renderJSFunction(LinkClickEvent.java:95)
    at com.sapportals.htmlb.unifiedrendering.ie5.LinkRenderer.render(LinkRenderer.java:42)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:982)
    at com.sapportals.htmlb.taglib.LinkTag.doEndTag(LinkTag.java:95)
    I've also try the .setClientEvent(EventTrigger.ON_CLICK,"....") method with simular results.

    Hey Scott
    As it is a link the keyword should be
    onClientClick  and not setOnClientClick
    I guess  now u wont be getting this error
    Chk this
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/sap%20htmlb%20guidelines">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/sap%20htmlb%20guidelines</a>
    Swathi

  • GUID vs. LINK elements in RSS feeds

    I'm reading an RSS feed whose entries contain both a GUID and a LINK element. For each entry, the GUID element contains a notes:// URL (that opens in Lotus Notes when clicked), and the LINK element contains an http:// URL.
    For this feed, Mail and Safari display clickable hyperlinks that point to GUID. The LINK elements in the feed appear to be ignored. This means that when I click any of the links in the feed, it is opened in Lotus Notes instead of the default web browser I have chosen.
    Is there any way to configure the way Mail and Safari parse and display feeds, so that the LINK element is displayed instead of, or in addition to, the GUID one?
    Thanks!
    /Michael

    If you want to change the way the rss feed looks you can use
    a website like
    http://rssfeedreader.com/ and
    change the options to display headlines only etc. Hope this is what
    you want.

  • Inserting Link element

    Hi
    I am creating a text link using link element and after adding it in paragraph element.When the link is created it requires ctrl key pressed together with link to operate.Can i insert a link in my text that doesn't require the ctrl key pressed while clicking the link.
    thanks.

    If your text is editable, then it will require the control key to interact with the link (this is so that you can edit the link text without activating the link).
    If you want to interact with the link without the control key, you have to make your text is either non-editable or merely selectable. If you're working with TextFlows directly, you make the text non-editable by setting TextFlow.interactionManager to null, or merely selectable by setting TextFlow.interactionManager to a SelectionManager rather than an EditManager.

  • How to link element to a person

    Hello all,
    I have a query
    How do I link element to a person
    I need to show up my data in this way
    Employee_name     Relocation_element     Car_allowance_element
    Employee_x            10,000                         5,000
    Employee_Y           15,000                         5,000
    Employee_z            15,000                         5,000
    Thanks in advance

    Hi 917621,
    Please do not outsource your work. Appreciate others time as well.
    The data you need is stored in the following tables -
    PAY_ELEMENT_ENTRIES_F
    PAY_ELEMENT_ENTRY_VALUES_F
    PAY_ELEMNET_TYPES_F
    PAY_INPUT_VALUES_F
    PER_ALL_PEOPLE_F
    PER_ALL_ASSIGNMENTS_F 
    Try writing a query and I'm sure others would help you correct it.
    Cheers,
    Vignesh

  • Nested controllers and htmlb:link

    Hi,
    I have an bsp application with the following architecture:
    Main controller and some subcontrollers created by <bsp:call> on the main page controlled by the main controller.
    Everything in these subcontrollers and main controller works fine, but when I add next subcontroller by calling it from main page using <htmlb:link> - reference to newController.do the application stops working properly.
    I have an instance of model class, created at the beginning in do_init of main controller and I'd like to have the same instance in all of my subcontrollers.
    I'm calling the model class in subcontrollers like this:
    DATA: lo_main_controller TYPE REF TO app_main_controller.
      lo_main_controller ?= m_parent.
      m_model = lo_main_controller->m_model.
    For subcontrollers created by <bsp:call> it works fine, but subcontrollers created by <htmlb:link> have this instance set to initial after every click on the link.
    It is crucial for me to have links in my application and also to have one instance of model for all my subcontrollers.
    Does anyone knows how to solve my problem, maybe creating links in different way?

    This application is really helpful, but I think that there is no <htmlb:link> example.
    My problem is that subcontrollers called by <htmlb:link> are  missing class instance created in the main controller.
    I was trying to create subcontrollers in do_init of main controller, but when I call them by <htmlb:link>, not by <bsp:call> the connection with the main controller is lost.

  • Htmlb link to binary content

    I'd like to have a htmlb link and when processing the onClick action I'd like to output some binary content. I've tryed to write the following on the onClick(Event event) handler:
                IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
                response.setContentType(new PortalComponentContentType("application/json"));
                try{
                    response.getWriter().write("[1, 2, 3, 4]");
                    binary = true;
                catch(IOException ex){
                    throw new PageException(ex);
    but without success since i get lots of htmljscss and pre appended to my binary output and more htmljscss after.
    Can someone enlighten me on this subject?

    If you want to create a link to the file in the repository, I suggest you use the ShowBinaryServlet.
    From javadoc...
    public class ShowBinaryServlet
    extends ShowPropertyServlet
    Writes a Binary property of a Node to the response OutputStream. The available paramater options are as follows:
    # 1) Pass the node Id in as a request parameter. Eg. http://server:port/app/ShowBinary?nodeId=/repo/12345.
    # 2) Pass the node path as part of the the request pathInfo. Eg. http://server:port/app/ShowBinary/repo/path/file.ext.
    # 3) Pass the node path in as a request parameter. Eg. http://server:port/app/ShowBinary?nodePath=/repo/path/file.ext

  • Htmlb link error

    Hi all,
    I have a jsp with only one htmlb link, pressing the link triggers a server event. The link works fine, but when i put this iview in the home page, i get a JavaScript error: 'all(...)' is null or not an object.
    working with EP6 SP14.
    Any suggestions ?
    Best regards,
    Keren

    Hi,
    Can you give more details about the application and the error.
    Thanks
    Senthil

  • Re:Using css for HTMLB ui elements

    Hi All,
    I have used css for html elements and i got it.But if i do the same for htmlb elements its not working.I have searched for many blogs and forums but i couldn't get it. Is there any procedure to apply the css for htmlb element.
    Thanks in advance

    Hi Margaret.,
    If u post this thread in web dynpro ABAP forum then u may get some use ful help..!! As per my concern., whatever u like go for tat, which will give u more work satisfaction.,  pls go through this link and post it there.,
    [Web DynPro ABAP Forum|Web Dynpro ABAP;
    Thanks & Regards
    Kiran

Maybe you are looking for

  • How to Test SSRS Custom Data Extension in TSql

    Hi There, I have created a custom data extenstion for SSRS 2008 Reporting Service. I can test the CDE in the Report DataSet -> DataSet Properties -> Query Designer -> Run Query. In the Command Text I pass parameters to the invoked VB code which is of

  • Problems with Workbench 1.2.1

    Oracle Migration Workbench 1.2.1 gives me the following errors in converting MS SQL 6.5 to Oracle 8i: Error 1: second column (DBName)is converted to length of 1 instead of 2. MS table create: CREATE TABLE dbo.DBRecordCounts Date datetime NULL, DBName

  • Help! - Need wwpro_api_parameters functionality in Report Component

    I am in need of accessing the URL parameters that are coming into a Report Application Component. The Report is not running as a portlet. I attempted to use wwpro_api_parameters.retrieve() in the "before page displayed" PL/SQL block. Unfortunately, I

  • Check in vis Programmat​ically

    Hi, I want to develop a program which can: Check in Get Latest version check out Assign Labels VIs, Folders/ Documents from Microsoft visual source safe (VSS). Will it be possible to check out the folder/ document/ vi with a perticular "Label"? Can a

  • Missingf SQL Statements in v$sqlarea

    Hi, i´m tracing some sql statements and from time to time they disapear very quickly from the shared pool. i´m looking into v$sqlarea and the funny thing is, i thought "all" historical statments will be copied to dba_hist_sqltext. But thery are missi