New page on click of absolute url

I need IE to open new page of the absolute url when user click the url on initial page, but as result the new page always replace the inital page but not open a new session, I also refer to the threads in the forum like adding "sap-sessioncmd=open" or "syscmd=nocookie" but still does not work, can anyone give me any suggestion?following is my coding:
Layout of the page1.htm:
<htmlb:link id = "link1"
            text = "google with new session"
            reference = "http://www.google.com"
            target    = "_BLANK"
            onClick   = "LinkClick">
<htmlb:link>
OnInputProcessing:
  if event_id = cl_htmlb_manager=>event_id. " HTMLB event?
    data: lr_htmlb_event type ref to cl_htmlb_event.
    lr_htmlb_event = cl_htmlb_manager=>get_event( request ).
    if lr_htmlb_event is not initial.
      if lr_htmlb_event->server_event = 'LinkClick'.
        call method navigation->use_absolute_url.
        call method navigation->goto_page
          exporting
            url = 'http://www.google.com/ncr?sap-sessioncmd=open'
*          url = 'http://www.google.com/ncr?sap-syscmd=nocookie'
            session = 'NEW'.
      endif.
    endif.
  endif.
Message was edited by: Patrick Yan

now i got a few minutes to work on this.
here is a sample code.
in the layout of the flow logic:
i am using button for example,
1) <htmlb:button id = 'CONTINUE'
      text          = "Continue"
      onClick       = "OnInputProcessing(continue)" />
2) create a page attribute called index and also link the 'continue' page to the same page in the BSP
3)in the layout
<% IF INDEX = '1'.(use the dynamic link)
l_url = 'http://www.google.com/'. %>
    <script type="text/javascript">
  <!--
    window.open("<%=l_url%>","ErrorLog","width=400,height=250,left=250,top=200 dependent=yes resizable=yes");
  //-->
</script>
4) in the oninput processing of this page
assign event
  l_event = cl_htmlb_manager=>get_event( runtime->server->request ).
  IF l_event->id = 'CONTINUE'.
  l_index = '1'.
       navigation->set_parameter( name  = 'INDEX'
                             value =  l_index ).
    navigation->NEXT_page( 'CONTINUE' ).
endif.
so when you click on the button you should get the google page in a popup.
this is working for me. let me know if you are still having problms.
regards,
manasa

Similar Messages

  • Opening a New page on click of a link in Struts PDK portlet

    Hi All,
    Please help me to sort out my issue..
    I created a portlet(say P1) using struts Portlet.That portlet is added to a portal page..which has some other portlets already(p2,p3,p4)...So my portal page has 4 portlets p1,p2,p3,p4..In Portlet P1 There is JSP which has a link inside...When i click on the link..I need to open a new JSP page with some prepopulated data inside it..Now the problem is..it is opening a page with data..but in the new page i am seeing all the remaining portlets as well..P1(with new data),P2,P3,P4 portlet..
    But i need to see only the JSP page with my new content..please help me with this..
    Here is the code...what i have written
    INDEX.JSP
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <html:link action="/sayActionHello" target="_blank">My Link</html:link>
    </body></html>
    ACTION CLASS
    public class SayHelloAction extends Action {
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    System.out.println("Inside execute ................................");
    PortletRenderRequest pReq = (PortletRenderRequest)
         request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    ProviderSession pSession = pReq.getSession();
    if(null != pSession){
         System.out.println("Inside---pSession...........................");
         pSession.setAttribute("sample","Sample Data for Testing");
    return mapping.findForward("success");
    Provider.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>samstruts</name>
    <title>samstruts</title>
    <description>sample struts Portlet Description</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
    <defaultAction>/sayHello.do</defaultAction>
    </showPage>
    </renderer>
    </portlet>
    </provider>
    Strutss-config
    PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <action-mappings>
    <action path="/sayHello" scope="session" type="com.up.tey.SayHelloAction">
    <forward name="success" path="/jsp/index.jsp"/>
    </action>
    <action path="/sayActionHello" scope="session" type="com.u p.tey.SayHelloAction1" input="/htdocs/jsps/index.jsp">
    <forward name="success" path="/jsps/indexsample.jsp"/>
    </action>
    </action-mappings>
    </struts-config>
    Indexsample.jsp
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <h1>HELLO WORLD Sample using Struts !!!!!!<%=session.getAttribute("sample")%></h1>
    </body></html>
    In new window i am cing Indexsample.jsp inside my P1 portlet..But the remaining 3 portlets(p2,p3,p4) are also there..Which i dont want..Please Help..this is really very urgent for me..

    HI
    i am also facing same problem with session but in simple portlet with ajax implementation.
    i am setting session in portlet jsp with following code using oracle application server portal 10g.
    (here portlet jsp means which is included from portlet.)
    session.setAttribute("map",map);(here session is implicit object )
    i want to call ajax jsp from portlet jsp with below code.(i.e setting session in portlet jsp and accessing in ajax jsp)
    var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
    var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';
    var myAjax = new Ajax.Updater(
    {success: 'emailbody'},
    url,
    method: 'get',
    parameters: pars,
    onFailure: reportError,
    evalScripts: true
    i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.
    Map map=(Map)session.getAttribute("map"); (here session is implicit object )
    here map object is getting null from session.
    Please help on this if u know about this session.
    Regards
    Raju

  • I lost my bookmark list where the dropdown doesnt work. Same goes for the webpage address tab where it just does not save. When I try to bookmark a new page after clicking "Bookmark this page", there was no response too. Can someone please help me???

    It was still functioning last night and before I close the firefox window, the problem started. The problem persist until now.
    1. Bookmark - tried to check the "help" list for lost bookmark but none of them seems to suit the problem i'm facing. The menu tab is there, but when i click on "Bookmarks", my previous bookmark list is not there. When I try to bookmark a new page, there is no window popping up (usually there is a small window pop-up to ask for the label of the website to be bookmarked).
    2. The website address tab - usually we have a list of website that we usually visit so we just need to click on the arrow and click on the webpage that we want to visit. But now, I have to type the website address every single time. There is no drop down when i click on the arrow.
    Can someone tell me what is wrong with it and please help me to solve this problem. THANK YOU VERY MUCH!!!

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Opening a new page on click of a button

    Hello Everybody,
    I have a small requirement. i need to open a new web page on click of a buttton on a bsp application. How do I achieve this technically?
    Thanks,
    Paul

    Hi!
    By impelemntign a litte javascript with window.open(...) that is called when button is clicked (onClientClick).
    Does that solve your issue?
    Regards,
    Volker

  • Open a graph in a new page by clicking on it

    I want to be able to open the graph by clicking on it in a new page. I've done some searching in the forums, but couldn't come up with anything that was this specific. If this isn't something that is possible, that would be nice to know as well, then I can move on. I can upload my VI as well if somebody wants to look at it.
    Thanks
    Solved!
    Go to Solution.

    Hi GerdW,
    I do not know what do I do now. I'm not the professional in LabVIEW.
    May you describe it for me in more detail.
    thanks
    Alpha
    Is this translation better than the original?
    Yes, submit translation
    Thank you for your submission.
    Example usage of "":
    automatically translated by Google
    من-pronoun
    I
    من, خودم, اول شخص مفرد
    من-noun
    manna
    ترنجبین, مائده اسمانی, من, گزانگبین

  • Open page in new window when click on HELP TAB

    Hi
    I have a number of tabs which work on my pages. My very last Tab is a Help Tab.
    What I'm trying to achieve is that when a person clicks on the Help tab, the page should open in a new window.
    The rest of the tabs should function normally, ie just switch pages in the same window.
    Message was edited by:
    Keith Jamieson
    Made it more readable

    Hi all
    is there any other property along with the target frame what we need to set to get this working?
    i have tried it again and still the new page when clicked on the link opens in the same window
    I am using a link item which has a fire action set to yes
    In the fire action i am calling a new page using
    pageContext.setForwardURL
    thanks
    abc
    Edited by: abcdxyz on May 18, 2011 1:56 PM

  • Clicking on 'ADF Calendar Component activity' should navigate to New page

    Jdeveloper Version - 11.1.2.0.0
    We implemented the ADF calendar component and it displays fine. However, we have a requirement that by clicking on the activity, it should navigate to another new page. For an activity, there are options like contextMenu, acitivtyHover, activityDetail etc.., where all shows the details in popup of the same page. We want to navigate to new page by clicking on the activity. Is it possible?
    Thanks in Advance.

    Hi,
    I don't think it is possible.
    All the facets you mentioned support only af:popup as child to them.
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_calendar.html
    -Arun

  • Print Moducle - Custom Package (New Page) Query

    Hi
    I've made a custom template (two 7x5 images over each other) on a custom page and save this template.  I know want to create a new page (by clicking on "new page" under "cells" menu) BUT I want to copy over the cells/page from page 1.
    e.g.  page 1 is perfect, I now want to create a new page with same settings.  If I create a new page and then click on my template it just starts again with 1 page and my template!
    Aarrgghh.. surely there's a way to create a new page using existing template/page?
    Please advise - it's driving me around the bend!

    Hi,
    You mention that you use A6 landscape 148 x 105mm and you use Computation below to convert page format length to inches.
    148 mm = 5.82677 "
    When you use landscape orientation, usually the shorter 105mm will represent the height of the paper. i.e. With landscape the width is greated than the height. So on this case the height wopuld be 105mm or 4.1 in
    So in the printer initialization it wpuld be:
    set page length to 10.5cm (~25 lines at 6 LPI)
    \e\0x43\0x19
    however, I don't think this is the reason for the preview problem. The printer initialization should only affect the print. What is the setting for the Lines/Inch in the sapscript form? SE71 -> <Form> -> Basic Settings
    This could affect the preview.
    Regards,
    Aidan

  • Each Group should start on a new page

    Hi,
    What setting I need to make in the CR XI so that each Group starts on a new page?
    Thanks,
    Reena

    After you check the new page after, click on the X+2 button to enter a formula.
    In the formula type this:
    Not OnLastRecord
    I hope that helps.
    Regards,
    Zack H.

  • Triggerring new page in the script

    Hi
    can anybody tell me how to trigger a new page in the script on condition.
    my problem is i want to print material & its discription based on the MRP controller using scripts.
    if the MRP controller changes then it has to trigger a new page in the script.
    page 1.
    MRP controller 102
    material1  material1-discription.
    material2 material2-discritpion.
    new page shoud trigger here
    page 2
    MRP Controller 103
    material1  material1-discription.
    material2 material2-discritpion.
    Thanks in advance

    Hi,
    First Call That text Element Were U Used New-page Coomand.
    SAPscript automatically inserts a page break when the main window of a page (MAIN) is full. You can use the NEW-PAGE command to force a page break in the text at any point you want one. The text following this command then appears on a new page. The page break is always performed (it is an unconditional page break).
    The NEW-PAGE command completes the current page. This means that all the windows that are still on the page are printed immediately. If you use the NEW-PAGE command without parameters, the page defined in the current form as the next page will be taken next. If, however, your form contains a number of different pages, then you can specify any one of these as the next page to be used.
    Syntax:
    /: NEW-PAGE page_name
    /: NEW-PAGE
    The current page will be completed and the text in the following lines will be written to the page specified in the form.
    /: NEW-PAGE S1
    As above, except that the page S1 will be taken as the next page.
    If, in a NEW-PAGE command, you specify a page not contained in the form, the specification is ignored.
    Take care that there are no blank lines immediately before a NEW-PAGE command. If an implicit page break occurs within the blank lines, an unexpected blank page may be printed.
    2.it can be set in two way
    1 using SE71 ur Script transaction
    u can create new page by clicking page tab in Se71 and goto edit->create Element.. that will create a new page..
    2 Using ur SE38 itself by setting a flag variable = X u can create a new page..
    if page = ' X '.
    new-page.
    endif.
    reward if helpful
    Shiva Kumar

  • In Three20, Clicking URL Link on TTStyledTextLabel doesn't push a new page

    hey. When I am clicking URL link on TTStyleTextLabel, it doesn't push a new page. But when I looked at the TTCatalog, they don't have any method in the styledtexttestcontroller which seem to open up the webpage. So how does TTCatalog do that? How can I do that?

    problem solved!
    you just gotta link the TTWebController with the object using TTMap

  • When I click on a link within a Web page, Firefox just spins until I reload the new page.

    When I enter a new URL or select a bookmark, Firefox loads the page promptly. When I click on a link within that page to go to another page, the Firefox tab green spinner often just spins and spins. It either takes a very long time to load (2 or more minutes), or never finishes loading. It's usually a greater problem when I "Open a link in a new tab". I can usually make the new page appear by reloading, either clicking the red X and the circular arrow, or Ctrl-F5, etc.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How to open a new page from a Spry Table click, with element info?

    Hello, Spry experts!
    This is probably simple, but I've searched for hours and can't find what I need. I'm using Dreamweaver CS4 and Spry 1.6.1 to create a simple Spry Table from an XML data set using PHP as my back end.  I've used Dreamweaver's Insert->Spry->Spry Data Set to create everything, and the table is working fine.  Colors, clicks, sorts, etc., are all working correctly as expected.
    What I want is to be able to add a behavior such that when a table row is clicked, I can open a new page.  Moreover, I want to pass a parameter from the table to the new page, like http://www.mydomain.com/newpage.php?aid=12345 or whatever.
    So, for example, my table has two columns, "a_id" and "a_name", and my repeat region looks like this:
    <div spry:region="xml_assignments">
    <table width="500">
    <tr>
    <th spry:sort="a_id" class="spry_header">ID</th>
    <th spry:sort="a_name" class="spry_header">Assignment</th>
    </tr>
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select">
    <td>{a_id}</td>
    <td>{a_name}</td>
    </tr>
    </table>
    </div>
    What I want is to be able to open an entirely new URL, passing the value of the {a_id} in the selected row as a parameter to the new URL, as in something like:  http://www.mydomain.com/newpage.php?aid={a_id}
    So my questions are: 
    1. How best to apply the action to the table?  Add an onclick to the tr tag?  Something else?
    2. How to extract the {a_id} value from the current row and pass it as a parameter to the action?
    Or maybe just take another approach entirely?
    I know that I can make the actual text in the table cells hyperlinks, and use them to link to the new page, which is fine.  The desire here is just to make it so that the user can click "anywhere" on the table row (as they can currently do with the spry:select behavior) and have the link kick off, whether they actually click on the linked text or somewhere in the row where there is no text.
    I'm sure this is obvious and simple, but I'm new to this level of Spry detail, and my brain is fried from hunting.  Any guidance will be gratefully appreciated!
    Glen Barney

    I found the answer myself, after posting this, of course!
    I changed:
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select">
    to
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select" onclick="window.location.href='./newpage.php?aid={a_id}';">
    Basically just added the onclick parameter...
    And it all just worked!

  • Change value of a control in a list item new or edit form depending on the page level view Add New Item being clicked.

    I have a list which has a underlying infopath form for insert and edit a record.
    The list has various views spread across different pages .
    Now depending on different pages "New Item", a value for the form will have a corresponding value.
    If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
    How do i achieve that?
    Thanks...

    Hi,
    According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
    form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
    By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
    which requires custom code can be like this:
    After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
    using jQuery.
    About how to
    get URL parameters of current page using jQuery:
    http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
    About
    adding jQuery into InfoPath form:
    http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to open a url in new page/tab from Answers passing a value to the url in OBIEE10g

    Hello All,
    I'm trying to create an answer, A column "request id" would have a url with request id attached to end of url to open a web page. I did get the answer working, I need to open the webpage in a new page rather than in the same obiee answer. We are on OBIEE10g(10.1.2.3) on Windows 2003 R2.
    Can anyone give me some information to achieve this ?
    Thanks,
    Vijay

    Hello Srini, Vinod,
    I guess there might some set-up issue here. Here is my link
    <a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>
    If I give the above link I would get syntax error.
    Then I change to add single quotes on the above link
    '<a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>'
    Output looks like
    273221"><a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>
    On the number when I click it does not go to the link rather gives me a HTTP 404 not found
    http://scaobieedev:9704/analytics/%3Ca%20href=
    Please advice.
    Thanks,
    Vijay

Maybe you are looking for

  • Qualificatio catalog in ECC-6.0

    Hi, Ananatha, Thanks for your prompt response regarding my posted querries related to LOP 1/2 day and Payroll. I have  to implement PD also here, in this i have configured Appraisal System and Training & Event management. Now Qualification Catalog is

  • Kernel_task is spending too much CPU and Ram

    I have Macbook Pro 13' mid 2012 I bought it 9/2013 and its started to become too slow like seriously slowed when I check the Activity Monitor kernel_task spend too much RAM and CPU and because of the usage of CPU my computer becomes overheated. This

  • Error when Reversing metadata from HFM

    Hi, I'm getting this error when i try to reverse metadata from HFM. "com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver." I already try the suggestion in this forum including Cause The Java Library Path of the HFMDriver.dll

  • Posted valuesu201D in read mode

    Hi Fellow Experts, We are loading data into Infocube and by doing deleting the overlapping request option..Reports are built upon this cube..we have fiscal period as selection screen varaible. when i press F4 then it brings values from DIMID table ra

  • Registering MDM servers in SLD - Is it required?

    Hello mates, I was going thru this doc MDM 5.5 SP04 - <a href="https://websmp208.sap-ag.de/~sapidb/011000358700006117152006E">Register MDM Servers in the SLD</a>. My questions..what is the advanatage of registering MDM servers in SLD? Isn't it enough