Pass URL parameters to parent window, which is not in VC

Hi,
I developed a web application which is calling a VC iView in a new browser window, now I have the problem that I have to pass back URL parameters to the parent window. Is there any possibility to use JavaScript or is there some other solution?
Thanks fpr your help.
Kind regards,
Timo

Hi Mario,
thanks a lot for your answer. If I understand correctly your solution works only if the other web application in the parent window is also located in the portal, unfortunately my web application is outside the portal.
Is there a solution for this, or should I look for something else than using Visual Composer?
Kind regards,
Timo

Similar Messages

  • Trouble Passing URL Parameters between Applications

    Hi All,
    I am having trouble Passing URL Parameters between Applications for BW queries as data sources. I know I am getting the data from the sending application correctly, because I an printing to the screen using a Text Component.
    Date From: 1/1/2008
    Date To: 3/14/2014
    Here is the code from the sending application On Select :
    "http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    + DS_1.getVariableValueExt("ZPORDAT3") +
    + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilter("0CALDAY",[Xv_DateFrom, Xv_DateTo]);
    When I click the results of the sending Application the popup window opens for the receiving application but I get all the records for the BW receiving query, it does not restrict to the values in ("ZPORDAT3") 1/1/2008 and ("ZPORDAT5") Date To: 3/14/2014.
    So, I would expect it is my receiving code, but I am not sure.
    Hope you can help?
    Norman

    Hi Norman,
    As Jörg said, please put "&" before each of your variable names at your url. For the second part,I didn't try it for date intervals but keep in mind just in case:
    APPLICATION.openNewWindow("http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    "&Xv_DateFrom=" + DS_1.getVariableValueExt("ZPORDAT3") +
    "&Xv_DateTo=" + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilterExt("0CALDAY", {"low": Xv_DateFrom , "high " : Xv_DateTo});
    Best regards,
    Onur

  • Passing URL parameters to WD application

    Hi!
    To pass URL parameters to WD application I currenly inbound plug 'defauld' (of type 'Startup') of main window. I use following code:
    types:
        begin of param_t,
          name type string,
          value type string,
        end of param_t.
      data: params type standard table of param_t.
      data: param like line of params.
      wdevent->get_data(
        exporting
          name = '_ALL_URL_PARAMETERS'
        importing
          value = params
    It works fine but this plug is called after init methods of the component controller an of the view. So if I want to do something with parameters, I must do in this plug.
    Is there way to pass URL parameters in a WD app. so that they were available from the very beginning of the application work i.e. in init method of the component controller etc.?
    Thanks!

    I had the same requirement too. There are a couple of threads on the subject as well, I've posted in one of them but had no answer:
    Re: Read URL Parameters programmatically
    The workaround i've used is this, it's definitely not as neat as I would like to since you end up having two initialization methods per controller, WDDOINIT and the one you create (for each controller you want to run code in using the received parameters). Nevertheless, it works:
    1) Create an event in your component controller, for example INIT_COMPLETED.
    2) Define a new method in your component controller, e.g. INIT_AFTER_WINDOW. This method receives an Importing parameter TYPE tihttpnvp. It uses this received HTTP parameters for the initialization logic and finally raises the INIT_COMPLETED event (This is the method that "replaces" WDDOINIT).
    3) In the Window's Inbound plug handler, you get the HTTP parameters (with wdevent->get_data) and afterwards call the method WD_COMP_CONTROLLER->INIT_AFTER_WINDOW (maybe you need to declare the usage previously in the Window to have the reference available).
    4) Finally, if you need some of the Views to be initialized afterwards the component controller's INIT_AFTER_WINDOW runs (for example to show some initialization messages), you'll have to replace the WDDOINIT method with an INIT_AFTER_COMPCTRL method and subscribe it to the component controller's INIT_COMPLETED event.
    I hope you got the idea, and more importantly, that we get some cleaner solution from SAP for achieving this in the future.
    Regards
    Edited by: Alejandro Bindi on Nov 6, 2008 10:08 PM
    INIT_AFTER_WINDOW is the method to be called on step 3

  • Pass URL parameters from BSP to WDA for ABAP (via Post   )

    Dear Gurus,/ Joerge,
    I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
    i Have been through the Below thread
    Pass URL parameters from WD to BSP via Post
    Dear Gurus,
    "Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
    " resolved,i need some more info on the following issue, Kindly guide me,
    I have gone through the below thread but left with no clue
    Pass URL parameters from WD to BSP via Post
    Here i have 2 Issues
    First one is --->
    " After pressing the Button I am calling this URL which is WDA for ABAP
          action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    Second one is -->
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    " And how to Capture this Value in Webdynpro INIT method
    "Here am using Form and method = post , I am removing this as it is causing some problem while posting
          action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    Thanks and Regards
    Ramchander Rao.K

    Hi,
    let me see if I understand you well.
    BSP -
    You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
    Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_value            = PAGE_DATA
        data_name             = 'PAGE_DATA'
        EXPIRY_TIME_REL       = 3600.
    you call then the URL for the WDA application.
    WDA -
    probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_name             = 'PAGE_DATA'
    CHANGING
        data_value            = PAGE_DATA.
    read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
    if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY.

  • Local laptop seller installed Windows which is not genuine.

    Hi! I claimed my hard disk warranty but my local laptop seller installed Windows which is not genuine. Do hard disk warranty also comes with original windows warranty?

    No that is on the guy who installed it. I would go back to him. There is no excuse for committing what may be a felony. You can get a legal copy of the Windows 7 or Windows 8 reinstall disk online and use the Key Code on the bottom of the laptop to register it. You can have him come on here and we can link him to a place to download a legal copy and how to install it.

  • I have an unnamed window which can not be closed, what can I do?

    Hi!
    I have a window titled as "unnamed window" which can not be closed. I am unable to get its PID. Neither Xkill utility and Xprop doesn't work. Xprop doesn't report anything when I click on it.

    I know it was said in jest (Or I think it was), but even in the worst case, there is no need to reboot - just restart X.
    I suspect the name "unnamed window" is not useful, as that is likely the window manager's default when it either cant get the window attributes, or when the window attributes contain a NULL string.
    I am also guessing this is a tilingWM - is this awesomewm?  I suspect this as I've seen this problem with some programs that crash after having mapped a window but before they have drawn anything to it.  This window will remain in the WM's listing of windows, but it will not be at all functional.  Often it will not even be "visible" - but if you have a  tiling wm, it will take up a tile space.
    I've been thinking of writing a little utility to remove such dead-windows.

  • Purchased MacBook Pro with windows which will not open b/c no license

    Purchased MacBook Pro with windows which will not now open b/c no license number.
    CD package has license number stripped from Apple. How do I get the license number
    for the software I purchased for Windows XT?

    This is not a Mac/Apple issue.  You need to contact the seller and ask where the Windows XP product key is.

  • Passing URL parameters to PL/SQL Pages

    Hi,
    I want to pass parameters from url to the PL/SQL page . How is this possible?
    http://myserver/pls/portal/url/PAGE/page_group/page/testplsqlpage?course_ref=##COURSE_ID##&staff_ref=##STAFF_ID##
    I will to received course_ref and staff_ref in the PL/SQL page and pass the values to SQL query so that its filtered.
    Can pls anyone guide me? If there is any alternate way or there is sample code pls let me know
    Many Thanks
    Ganesh

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • Question on Passing URL Parameters

    Thanks in advance for any responses to this question!
    I have a dynamic table (in a master page using javascript and
    asp) that links to a detail page, passing a parameter (the ID of a
    product) to identify the correct row to display in the detail
    page's recordset. Everything works great.
    I decided I wanted to have this detail page be a "popup" in
    which I control the window properties with javascript.
    The problem I'm having is this: when I put the javascript
    code (for the popup window's properties) in the href of the dynamic
    table cell that links to the detail page, it's no longer passing
    the parameter properly.
    Here's the code BEFORE the javascript was entered:
    <td width="95" class="product_cell"><div
    align="center"><a href="detail_container.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "ID=" + rsHDPE.Fields.Item("ID").Value
    %>"><%=(rsHDPE.Fields.Item("image").Value)%></a></div></td>
    As you can see, detail_container.asp is the detail page, and
    ?<%= Server.HTMLEncode(MM_keepNone) +
    ((MM_keepNone!="")?"&":"") + "ID=" +
    rsHDPE.Fields.Item("ID").Value %> is the asp code that
    dreamweaver included to pass the parameter.
    Now, if I WAS NOT passing a parameter, here's the line
    including javascript code - which I have tested with success - to
    open the popup window to my specifications:
    <td width="95" class="product_cell"><div
    align="center"><a
    href="javascript:poptastic('detail_container.asp');"><%=(rsHDPE.Fields.Item("image").Valu e)%></a></div></td>
    (yeah, poptastic is a silly name for a function, isn't it?)
    But how do I combine these to get the parameter to pass AND
    control the window properties?
    Because this doesn't work:
    <td width="95" class="product_cell"><div
    align="center"><a
    href="javascript:poptastic('detail_container.asp');?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "ID=" + rsHDPE.Fields.Item("ID").Value
    %>"><%=(rsHDPE.Fields.Item("image").Value)%></a></div></td>
    How can I pull this off? Is my syntax wrong?

    Of course, if you look at the linked URL, you won't see any
    of this code,
    right?
    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
    ==================
    "Deaf Web Designer" <[email protected]>
    wrote in message
    news:eh9hi9$sv8$[email protected]..
    > It is very confusing to see different partial HTML/js
    code. If you please
    > post
    > a URL link to your example page you are working on. It
    is easier that way,
    > where you will get some help more effective and
    productive way.
    >
    > Cheers, DWD
    >

  • Passing URL parameters to WD app in URL IView

    Hi experts,
    I'm using EP 7.2 and as I found out this version doesn't support Web Dynpro Java iview template so I'm using URL iview template for my Web Dynpro Java application. My requirement is to somehow pass some URL parameter (which is id for something in my app) to the WD app in the URL iview. So in this scenario setting the URL parameters and their values during design time for the iview is not suitable. I tried DynamicParameter=id%3D154 for example but it doesn't work. Do someone has any ideas to solve this problem? Any help will be appreciated.
    Regards,
    Martin
    Edited by: musaka on Oct 27, 2009 1:12 PM

    Hi Musaka,
    If i am not mistaken, your requirement is to display a URL iView to user with some parameters (contained within the Address Bar of the Browser) to be passed to the iView. Initially as no parameter value can be defined on previewing the iView or opening the iView, no value is passed to iView. But in case, when you directly enter the Parameter Values against Parameter Names in Address Bar and then say go, the page should reload and pick the parameter values from URL in Address Bar instead.
    Steps to follow:
    1. Put     CustomerId=0&RequestId=0            in the Application Parameter property of the URL iView.
    2. Put the following lines of code in the wdDoInit() in the implementation tab of the View Controller to retrieve and use the passed parameter value in the View of the application and then say Organize Imports from the context menu.
    int customerId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("CustomerId");
    int requestId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("RequestId");
    Please revert in case of any issue.
    Regards,
    Tushar Sinha,
    Infosys Technologies Limited,
    Hyderabad,
    India
    Edited by: tushar sinha on Oct 29, 2009 10:51 PM

  • Webcenter Portal PPR Navigation and Passing URL parameters

    Hi,
    We have pages that will be URL parameter based so that it can be bookmarked and should be partially page navigable. Basically some pages are specific to project numbers i.e a project-page is opened by passing something like project-page?projectNumer=111. We have a partial page navigation something like this..
    <af:commandLink id="pt_cl22"
    actionListener="#{navigationContext.processAction}"
    action="pprnav" text="#{menu.title}"
    styleClass="primaryNav">
    <f:attribute name="node" value="#{menu}"/>
    </af:commandLink>
    The problem is this pprnav doesn't allow us to pass http parameters. Is there a way to pass parameters through the URL without actually refreshing the whole page (using goLinks). It is important for us since most of the pages have obiee dashboards which take time to load. Or how to parameterize the pages with pprnav enabled. We tried unbounded taskflows but doesnt go well with webcenter portal.
    Thanks,

    may be u should try to set the action programatically. using the approach specified in this blog..
    http://andrejusb.blogspot.com/2011/10/how-to-disable-action-conditionally.html
    (just follow the approach defined for setting pprnav programatically). before setting the ppnav set some variable in the parameter list of in the pageflowscope.. and use the pageflowscope in the next page

  • HTTP reciever adapter pass URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    Can anybody help wwith this please?
    Thanks
    Karthik

  • Live view doesn't correctly pass URL parameters from HTML docs?

    Running into something that I wonder if anyone else has seen.  I've created a site in DW CS5 with a local testing server (XAMPP on Win7), and if I use LiveView to view an HTML page that has a link to a PHP page that includes a URL parameter, the parameter shows up in the LiveView address bar, but the page doesn't seem to use it (trying to display an image where the file is built using $_GET to retrieve the parameter).  The same HTML page, displayed in a browser, works.  And if I then save the HTML page as a PHP page in DW, identical code, LiveView works.  Sure looks like LiveView will does not properly handle URL parameters from HTML documents...

    Sorry if I wasn't clear... the navigation works correctly; I get to the page I'm tyring to get to.  One of the things that page should do is display an image, the I use a URL parameter to build the image file name to retrieve.  The link in the first page is something like <a href="gallery.php?pg=1">.  Works fine if the first page (the one I'm navigating from) is a PHP page, doesn't work (with the same code which is only HTML) if the page is an HTML page.

  • How pass url parameters on init webdynpro app.?

    Hi all,
    i want to pass a parameter to my wd app. when its start. How can i do it? where do i have to do it?
    Thanx in advance
    CP

    You can define parameter using two methods:
    1. Via properties of the iview you have created, system will pass these parameters automatically to the iview.
    2. Via Code, you can use Portal Navigation and pass parameters at runtime. Check following sample code:
              WDPortalNavigation.navigateAbsolute(
                        "ROLES://portal_content/myIview/LoadEmployees",
                                    WDPortalNavigationMode.SHOW_INPLACE,
                                    (String) null,
                                    (String) null,
                                    WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                                    (String) null,
                                    (String) null,
                                    "action=E");
    The last parameter is for passing parameters, in the example parameter name: action and its value: E.
    Regards,
    Jawed Ali

  • Web Dynpro iView - how to pass URL parameters?

    I have a Web Dynpro application that is housed in the Enterprise Portal.  We have a requirement where we need to provide an external link to the iView/Web Dynpro component - for the sake of this discussion, assume it's email.  As part of this URL link, we need to pass a parameter that will cause the Web Dynpro app to fetch some data. 
    The Web Dynpro has a startup plug parameter - call it 'id'.
    I can invoke the Web Dynpro application directly, and pass the id paramter on the URL - the application can see the parameter just fine.  However, when I try and do the same via a Roles-based URL, the parameter does not survive.  I've tried two different methods:
    http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&id=1234
    and
    http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview!26id=1234
    neither of which work.
    is there a way to do what I'm trying to do?  Note that the 'id' paramter is dynamic - I can't code it in the Web Dynpro iView configuration.

    Hi,
    please try the following:
    http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&DynamicParameter=<encode(id=1234)>
    The value of the DynamicParameter value must bei encoded.
    For details please have a lool to
    <a href="http://www.sap-press.de/katalog/buecher/titel/gp/titelID-1078">this</a>
    This book will be also available in English soon.
    Best regards
    Jochen

Maybe you are looking for

  • Error exporting long movie in Premiere Elements 4

    I just finished editing a movie in Premiere Elements 4.  Every time I try to export the movie, it begins rendering, gets as far as about 15%, and then says "Export Error: Error compiling movie.  Unknown error."  This happens no matter what format I c

  • Download assistant errors

    When trying to install the CS6 Master Collection trial with the Download Assistant, I get the error code 109. If I try to "reset product download" if I say "yes" I want it to attempt to continue from where it was interrupted (though it doesn't even g

  • Customer Master - Internet Email Address

    Can anyone advise the following? I am trying to send output for 'BA00' Order Confirmation via email based on the Sold-to party in IDES.   But i couldn't find the email address field in the customer master, general view.  Is there some settings somewh

  • Request for iPhone developer forum

    There has been a recent influx of new iPhone developers in the developer forums. They often don't identify their problem as being specific to the iPhone. You have to look at what they are talking about and see that it is all iPhone stuff. Apparently

  • Creation of BADI definition in ECC6.0

    Experts, How to create a custom badi in ECC6.0 and I want to implement with filter functionality as well. How can I do that in ECC6.0? I have gone through some of  the docs which I got from SDN itself. But, those are not helpful to me. Please help me