HTMLB - hbj:link - TARGET Parameter

Ok Everyone..
I have another issue..
I am trying to be a good SAP Portal citizen and use the developement framework I have been given and not going out on my own. But I am have an issue, which hopefully someone has sovled already.
I would like to use  hbj:link (with an OnClick) to create a link which will open up in a new browser window. I have tried to use the TARGET="_blank" command to open the result up in a new window. But it appears that you cannot use the TARGET parameter when you are using an onClick..
How have you guys solved this in the past?
Thanks

Hi Craig,
I haven't understood what you're actually wanna do, but here is some abstact that might clarify the issues.
onClick
Defines the event handling method that will be processed when the user clicks on the link. If 'onClick' is specified, the event handling routine is called.
onClientClick
Defines the JavaScript fragment that is executed when the user clicks on the link. If both events ('onClick' and 'onClientClick') are specified, the 'onClientClick' event handling method is activated first. By default the 'onClick' event handling method is activated afterwards. In the JavaScript fragment you can cancel the activation of the 'onClick' event handling method with the command
htmlbevent.cancelSubmit=true;
The 'onClientClick' event is useful to preprocess the form and only send the form to client if the preprocessing was successful (for example, date validation, valid number format etc.) to save client/server interaction.
target
Specifies the name of the frame where the document is to be opened.
-> onClick defines the event handler for server side processing
-> onClientClick calls an event handling method on client side (here you could place a window.open to open a separate window, e.g.)
-> target concerns only what's defined in the href attribute

Similar Messages

  • Problem using target="_blank" in hbj:link

    Hello,
    we are having some problems when using "link" with the next piece of code:
    <hbj:link id="<%=objAccountStatus.getAccountNo()%>" text="View Inventory" tooltip="Download as an Excel Spreadsheet document" reference="" onClick = "onInventoryLinkClick" target = "_blank">Download Excel</hbj:link>
    The target is set to _blank but the Excel generated by using the link is opened in the same page. This problem occurs by using the Internet Explorer; on the other hand, this works fine in Firefox (in this case is opened in a blank screnn.
    Thanks in advance.
    Regards,
    Raúl.

    Thanks for you reply Pankaj, but the version I am using is IE 6.0.29.
    I have fixed the problem by modifying some code used in the event handled in the JSPDynPage becuase we were doing some things in the HTTP header that could have destroy the effect of the "target" parameter in the link.
    It was solved by other way.
    Thanks a lot for the help.
    Regards,
    Raúl.
    Message was edited by:
            Raul Rodriguez

  • Hbj:link without onClientClick ?

    Hi,
    I'm writing jsp iviews under EP6 SP2. The documentation says that the element hbj:link can contain the attribute 'onClientClick'.
    But I get the following error when iview is executed:
    Attribute 'onClientClick' not found in tag library 'HTMLB' for the tag link.
    Any ideas?
    Thanks

    HI I cam accross the same issue
    but you can do it in the JSP code
    <hbj:link
                                       id="PatientAdministrationLink"
                                       text="<%=imgPatientSearchLink.getText() %>"
                                       reference="<%=imgPatientSearchLink.getReference() %>"
                                       target="<%=imgPatientSearchLink.getTarget() %>"
                                       tooltip="<%=imgPatientSearchLink.getTooltip() %>"
                                       linkDesign="<%=imgPatientSearchLink.getLinkDesign().toString() %>">
                                       <%--- Set only onClick if the value is "LinkClick" --%>
                                       <%
                                            if (imgPatientSearchLink.getLinkClick().equals("LinkClick"))
                                                 PatientAdministrationLink.setOnClick(
                                                      imgPatientSearchLink.getLinkClick());
                                                 PatientAdministrationLink.setOnClientClick(
                                                      "doNavigatePatientSearch()");
                                            PatientAdministrationLink.setFontSize(
                                                 imgPatientSearchLink.getFontSize());
                                       %>

  • Pass parameters from hbj link

    Hi,
        I want to pass parameters from hbj link to the component where the event method is going to be called. And also when I click the event how it is going to redirect other jsp.
    Regards,
    Suresh.B

    Hello Reinuka,
    It is possible to send parameter to Web Dynpro iview.
    In the iview application parameters add Param1 =.
    Place this code wherever  you want to call that iview.
    WDPortalNavigation.navigateAbsolute("ROLES:"+iview,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String) null,(String) null,"Param1 = ");
    "ROLES:"+iview=Iview Path
    "Param=Paramvalue"=Parameter and its value
    Youcan receive the value as
    String parmvalue=WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Param");
    Regards,
    Sridhar

  • Hbj:link

    HI All,
    Im trying to put an image in an iView. Now when I click on this image a Java Script function should get called to print the content of the iView.
    Im using the following code but it doesnt seemd to work.
    Please tell me what am I missing
    <%
        String  PrintURL=componentRequest.getPublicResourcePath()
                +   "/../images/";
        %>
    <hbj:link
        id="print"
        text=""
        reference=""
        target="_TOP"
        tooltip="Print this iView which contains my CV"
        onClick="printCurrentPage"
        <hbj:image
        src="<%= PrintURL+"sap.gif" %>"
        alt="Image not available"  />
    </hbj:link>
    When I run this on the portal it gives the following error.
    Expecting '=' instead of '<'. Error in file:/usr/sap/D75/JC46/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.ericsson.pct.hcm.cpcv/pagelet/cpcvphoto2.jsp at line:48 position:4.
    Line 48 is :   onClick="printCurrentPage"
    but I think the error sems to be in : <b>src="<%= PrintURL+"sap.gif" %>"</b> since the last delimiter is not turning red.
    Plz help.
    Regards
    Saurabh

    Hi Venkatesh,
    I First Checked
    <%= imageURL %>
    This is throwing an error itself.
    its not going beyond that !!
    This is a my Javascript code :
              <script language="JavaScript">
              function printCurrentPage() {
                    if (navigator.appName.indexOf("Microsoft") > -1 &&
                        navigator.appVersion.indexOf("5.") == -1) {
                        // IE4
                           OLECMDID_PRINT = 6;
                           OLECMDEXECOPT_DONTPROMPTUSER = 2;
                           OLECMDEXECOPT_PROMPTUSER = 1;
                           WebBrowser =
                           '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="' +
                           'CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
                           document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
                           WebBrowser1.ExecWB(OLECMDID_PRINT,   OLECMDEXECOPT_PROMPTUSER);
                           WebBrowser1.outerHTML = "";
                   else {
                        //N4 IE5
                        //window.print();
                          self.print();
              displayPrintButton();
         </script>
    Regards
    Saurabh

  • Target parameter is not being used

    Hello,
    while activating the transformation, i get an error saying" Target parameter 0058 is not being used". I have checked all the rules, infoObjects etc. but still im not able to activate the transformation at all.
    Eventhough the source field-target field mapping is correct, the system is throwing such errors. What could be the possible cause of it. Any idea?
    Regards Sucheta

    Hello Sarvanan,
    What do you mean by "the respective field not having the Unit/Curr Objects"..?..some of them are of the type "number" whereas others are CHARS.
    Everytime when i add some field i cannot re-create the whole transformation. There has to be some inconsistency as my mapping of source-target field is correct. I have also raised this to OSS but as usual they are taking thier own sweet time to reply.
    Surprisingly the transformation got activated yesterday and the dataload too was successful. Today again the same ols problem of "parameter is not being used"..!!
    still could you pls throw some light on Unit/Currency objects that u mentioned..??
    Thanks in adv.
    Sucheta

  • Using a style sheet with hbj:link

    Hi guys,
    I'm looking for a way to use a style sheet that I've created in my jsp with an hbj:link tag. Here's my style sheet:
    <STYLE type="text/css">
    a.button
    a.button:active, a.button:focus, a.button:hover
    </STYLE>
    Here's my link:
    <hbj:link
         id="<%=linkId%>"
         text="Sign Me Up"
         tooltip="<%=toolTip%>"
         onClick="signupLinkClick"
         linkDesign="REPORTING"
         >
    </hbj:link>
    I've tried wrapping an <a href="#" class="button"> tag around the hbj:link tag, but that didn't work. Any ideas?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    Hi,
    there is a possibility to change the default style, but is not really clean. The browser when rendering a tag uses the last defined style for this tag. So you can redefine it. I used it in a DynPage, it worked ok.
    First run the iview with standard style (normally). Look into the sourc of the page and find your "Sign Me Up" link. Check the class of the <a> tag. For instance it is a "urLnk".
    Now just modify your style definition:
    <STYLE type="text/css">
    urLnk.button {
    padding: 2px 10px 3px 10px;
    border: 2px outset #cccccc;
    background: #C0C0C0;
    color: #000;
    font-size: 11px;
    text-decoration: none;
    height: 19px;
    vertical-align: bottom;
    urLnk.button:active, a.button:focus, a.button:hover {
    border: 2px inset #c0c0c0;
    vertical-align: middle;
    background: #cccccc;
    color: #000000;
    text-decoration: none;
    </STYLE>
    and so on...
    Hope this helps,
    Romano

  • Link Target, Code Snips and Nag-Screens?

    I shelled out the cash to buy a copy of iLife '06 so I could get iWeb.
    I quickly found that it was missing the ability to specify targets in links, this is an incredibly basic feature that iWeb is strangely missing. Without it iWeb sites aren't frame-friendly and worse you can't have links load in new windows. For the purposes of a blog, the majority of links will be to external sites and the only work-around I've found is editing the html file (wait didn't I buy iWeb so i wouldn't have to do that?). While this works, as soon as i re-publish my site my edits need to be redone.
    Also, there is no way to edit the html or add snips that are useful for inserting widget-like items to your page, banner-ads, etc.
    Lastly, I'm slowly being driven insane by the nag-screen prompting me to buy a .mac account, not just during install or during the creation of a new site but every time I open iWeb.
    PLEASE, PLEASE, PLEASE someone tell me that I've just missed where to specify the link target (a feature iWeb or any web creation tool is useless without), that there is a way to add code, and that I don't have to be assaulted by a nag-screen every time I use my software.
    PowerBook G4   Mac OS X (10.4.5)   I named my Mac after Frank Sinatra

    No, you've not missed anything.
    iWeb does not allow you to specify target of link. Yes, it's a major omission of a basic function. We don't want everyone to navigate away from our sites, but that's what they'll do...
    iWeb does not allow you to paste in snippets of HTML. It must be done after publishing.
    iWeb does not allow you to bypass the buy .mac screen. No, I tell a lie. You can get round it by going to the .mac preference pane in System Prefs and entering a dummy name and password, and then allowing iWeb to try and authenticate it when it next opens. Once it's tried once (of course unsuccessfully), iWeb doesn't prompt you any more to buy .mac.
    Hope that helps.
    Michael
    Quicksilver G4 Dual 1GHz   Mac OS X (10.4.5)   http://www.rowan-cottage.co.uk

  • Looking for a 'view link target source' context menu item

    I'm looking for a 'view link target source' context menu item.
    I often open listings of servers' directories; they can include direct links to code files (*.py , *.pl, etc). When I click them directly, I'm asked to open them with an external editor which is not what I want to do; I want to view those files source inside of Firefox. I currently have to
    # right-click those links,
    # copy link location,
    # type "view-source:" in the Location bar,
    # paste the copied URL,
    # click Go.
    This gets time-consuming with the large amount of URLs I need to open.
    It's not a native feature for Firefox and a search at [http://addons.mozilla.org AMO] didn't come up with anything useful, for me at least.

    Hello,
    particularly, I performed the following steps:
    1. I created a SC in the local repository, which matches the SC of the track.
    2. I moved the exisiting DCs to the SC created in step 1.
    3. Now, I created new DCs in the SC in the track.
    4. I deleted all .project files from the local DCs.
    5. I copied all source files from the local DCs to the new track DCs.
    6. I checked-in these changes to the track.
    Kind regards
    Alexander

  • How do I remove the link target display?

    I do not want a status bar. I do not want that link target display on the bottom of the window either. How do I remove it please?

    See also:
    *[[/questions/1040120]] How can I hide "Read/Waiting/Transferring data..." status?

  • How to get Page link target with pl/sql

    I am using Oracle Portal Version: 9.0.4.0.99.
    I have a portal page that contains several different item types.
    I am able to display the majority of the portal items using pl/sql except for the page link item type.
    I can use pl/sql to get the display name and other attributes from the WWSBR_ALL_ITEMS table for the page link, but unable to determine the target of the page link.
    Is there an api to determine the target and where is the page link target stored.
    Thank you

    Christain
    I am using your suggestion.
    I have obtained a list of the portal pages the customer wants links to and have built the urls to the portal pages as a temporary work around.
    The customer does not have enough knowlegde to duplicate the work around.
    This is why I need to allow the customer to be able to use the page link item type to build links to other portal pages.
    Let me try to explain what I am doing.
    I have a portal page that the customer has manage content privileges.
    The customer can add file items, url items and page link items.
    I am using the content on this page to build a dynamic javascript menu.
    I run pl/sql querys on several tables to get enough information to build links to these items on the portal page.
    The problem is with the item type, page link.
    This page link is selected by the customer by going through the add item icon on the portal page.
    The target of the selected page link is another portal page.
    I can get some information on the page link by querying the WWSBR_ALL_ITEMS view, but can not determine the actual target of the page link.
    If I can get the target id or name then I can accomplish what I need.
    I hope this explains my situation.
    Thanks

  • DW 8.02 and link target (Point to File) tool

    After upgrading to IE 7 and DW 8.02, I have experienced
    problems with the target tool for links, in the properties bar, not
    functioning. (Please note: I am referring to the bullseye that is
    dragged to items in the files panel in order to set the link
    destination, not the drop-down labeled target for use with frames.)
    When I drag the bullseye to point to a file while within a
    link or while having text highlighted, either the previous link in
    the code has its href changed or there is no change at all. This is
    happening when I'm in code view. Because this is a ColdFusion page,
    the Design view does not display some of the dynamic content of the
    page for it to be edited. (That's not the problem I'm experiencing,
    just the reason I can't use Design view to solve the problem.) It
    appears that in the tag tree above the results/properties panel,
    it's not recognizing that the cursor is within an <a> tag,
    which is probably why the bullseye-dragging isn't working.
    I'm using Windows XP SP2.
    Thoughts? Suggestions? I can code this manually while I work
    on the solution, but would be nice to be able to use the bullseye
    tool again. It's probably one of my favorite parts of the
    Dreamweaver interface.
    Of course the best solution would be to convince the higher
    powers that this means we should upgrade to CS3. :) But until
    then....

    You don't really need to insert any of them. Just click
    through....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Prajnaparamita" <[email protected]> wrote
    in message
    news:e3t4vg$33g$[email protected]..
    > Now when I try to insert an object as a .swf file DW8.02
    asks me to define
    > the
    > tag Object with TITLE, ACCES KEY and TAB INDEX.
    > I just don't know which parameter i have to insert.
    > Can anybody help me??????
    >
    >

  • Link/Target label in PTG XML? (for service chain)

    Does any body know how to out value for Link or target label, to form a service chain? I have tried a lot, like service name, url, they are not work,
    Thanks a lot

    Hi Soniya,
    These are the steps:
    1. Log in into infoview
    2. Change the preferences (Click in the Preference button in the main tool bar), in the WebIntelligence section change the Select a default view format: to Interactive.
    3. Click OK
    4. Open the report where you want to add the hyperlink
    5. Right click in the column or cell to add the hyperlink
    6. Click Hypelink > New
    7. You will see the Create Hypelink window, click Browse the select which report do you want to link
    8. Fill in the parameter, prompts, etc.
    and that's it, hope it's clear now. If you have any question let me know.

  • Target for a .pdf  with the link target _blank does not open in a new window.

    I have a simple html document with links to .pdf documents all set to _blank but only one opens in a new window.  The others open as _self.  Changing the target doesn't seem to make a difference.
    Any idea as to why that is happening?

    The Template .dwt file is only used locally by DW itself, there's no reason to upload it to the server unless you intend to share it with someone. You have to upload each individual page that the Template updates, every time you update the template and propagate that change across the child pages.
    It would probably be better to use a server side include. That way, you could update one file then upload it and all of your pages would automatically carry that update...
    SSI for Apache: http://www.javascriptkit.com/howto/ssi.shtml
    PHP's version: http://www.tizag.com/phpT/include.php
    It's especially handy if your site gets to the point where you have more than about 20 pages.

  • How to include link with parameter in marketing emails?

    Hi, my client wants to send out personalized marketing emails to customers with a link back to the BC site that have a parameter on the end that passes the customer's email address the message was sent to. Then the landing page can parse that email off the end of the URL and insert it into the web form on the page where the customer can update his info, insuring he is using the same email that BC sent the message to rather than supplying a different one.
    If you insert a BC tag like {tag_recipientemail} into the body of the message it will replace that tag with the customer's email, but it doesn't work to use that BC tag within the HTML link in the email like this:
    <a href="https://mysite.worldsecuresystems.com/birthday?{tag_recipientemail}" > Click Here </a>
    That renders the TAG code {tag_recipientemail}on the end of the URL, not the email address.
    Anyone found a work around?
    If this was a web page I could use javascript to fix this, but of course email clients receiving messages don't allow javascript to run inside them, so this has to be fixed server side by BC.

    I suspect the same. That should work in the real campaign. I believe that it doesn't work in the e-mail me functionality because the user you are logged in is not connected to the CRM table, which is where that tag is pulling the info from.
    Cheers,
    -mario

Maybe you are looking for

  • How do i recover files from time capsule

    A couple of days ago my  macbook pro (mid 2009, 2.53 GHz intel core 2 duo running Mountain Lion) started getting slow almost to a crawl, and the hdd name was changed automatically from Macintosh HD to a really long and weird name, something like ////

  • Inventory analysis Cube 0IC_C03

    Hi Experts, I am unable to work with 0IC_C03 cube in BI 7.0. I didn't find standard transformations for this cube. Please let me know the data flow for  0IC_C03 cube in BI 7.0. Advanced Thanks, Chandra

  • Grid Format in JSP

    I just wanted to know whether any Grid form is available in JSP to display the result from the database as we do in VB.

  • Select document window title bar, cursor jumps to other screen

    This has been going on for a few days now. I've restarted the Mac, etc Mac dual G4 1.25 GHz with OSX 10.4.11 This started suddenly. I have had a dual monitor system for months now, and have never had this problem before last week. If I have documents

  • Error while Exporting project into MS Project

    Hi, Need your suggestion for one issue. While i am trying to export project into MS Project getting following error: Internal activeX error:[ 0x80020005] (null) Please suggest to fix the issue. Regards, Ranjan