Getting URL parameter in Web Dynpro when using iViews in netweaver portal

Hello Everybody,
I'm having the following issue:
I created a WD-Application which would be accessed directly via URL with some parameters.
Getting these parameters works fine using the logic from the following link:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/2233b60c21072ce10000000a155369/frameset.htm
Now I want to implement my WD-Application into the netweaver portal.
My colleagues customized it that far, so that I can access the WD via a portal-link.
The only thing is, that the logic getting the URL parameters from above does not seem to work in this context any more.
Do I need different coding getting the parameters from the portal URL or is this a matter of missing "portal-customizing"?
Any ideas in this matter are kindly appreciated.
Thanks in advance and regards,
Marc

Hi Marc,
I'm doing the same and it works fine.
Here is my coding:
  DATA: lt_url_parameters TYPE tihttpnvp.
  data: ls_url_parameters type line of tihttpnvp.
* Read URL Parameters
  wdevent->get_data( EXPORTING name  = if_wd_application=>all_url_parameters
                     IMPORTING value  = lt_url_parameters ).
  read table lt_url_parameters into ls_url_parameters with key name = 'MODE'.
  if sy-subrc = 0.
    case ls_url_parameters-value.
      when '1'.
      when '2'.
   endcase.
  endif.
Check the following:
1.) are you using the event handler "HANDLEDEFAULT" of your WINDOW to get the url parameters?!
2.) in the portal iview with your wd application, the property "Application Parameters" has to be filled (in my example:  mode=1)
If you need the value in the init method of your first view, you can store the parameter in an attribute of your component controler and read it in your view.
Regards,
Andreas
Edited by: Andreas Leis on Jul 14, 2009 11:05 AM

Similar Messages

  • Get URL parameters of Web Dynpro Application using Floor plan manager

    Hi Experts,
    I have a web dynpro component using FPM. The default window of the application is FPM_WINDOW which is an interface view of component of FPM framework. so I cannot get the URL parameters in handledefault of a normal web dynpro app which is not using FPM. How do I get URL parameters in this case through FPM? Thanks!

    Hi,
    I guess you might have created the application under FPM_OIF_COMPONENT/FPM_GAF_COMPONENT. For that add the pramaters to the PARAMTERS tab of teh application.
    Now, you can use
    data lo fpm type ref to if_fpm.
    lo_fpm = cl_fpm=> get_instance( ).
      CALL METHOD lo_fpm->mo_app_parameter->get_value
        EXPORTING
          iv_key   = 'PERNR'            "Application param name
        IMPORTING
          ev_value = lv_pernr.
    Regards,
    Lekha.

  • I am still getting redirected to various web sites when using Safari.  My PC is not affected but my I phone and I pad are.  I have reset my router and changed my admin name and password.  I am still being redirected.

    I am still getting redirected to various web sites when using Safari.  My PC is not affected but my I phone and I pad are.  I have reset my router and changed my admin name and password.  I am still being redirected.

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • I'm trying to read some XML data from temperature logger over my network. I'm using LabView version 2009 sp1. I'm using the URL Get Document Vi. It works fine when using Internet sites like google or foxnews etc...

    I'm trying to read some XML data from temperature logger over my network.  I'm using LabView version 2009 sp1.  I'm using the URL Get Document Vi.  It works fine when using Internet sites like google or foxnews etc...
    When I use it with my temperature logger most of the time I get an Error 66...but some times it does work and actually retrieves the document. 
    I can use the same address "http://172.22.21.68/XMLfeed.rb" (Internet Explorer or Google Chrome) in my browser and get a response every time.  When accessing from my browser the server in the temperature logger does take around 6 seconds to respond, but it does respond every time. 
    Is the URL Get Document Vi exceeding a timeout?  If so, where can I set it to wait longer?
    Attachments:
    Error 66.jpg ‏183 KB

    It looks like the TCP Buffered Read has a 2.5 sec timeout, I believe that is where I had trouble as well.  Try creating your own URL Get HTTP Doc vi in which you call URL Get Document in normal mode, with an appropriate number of characters to fetch (enough characters so that you capture all the important data in the XML file).
    Attachments:
    ex1.PNG ‏33 KB

  • Any way to get HTTP header in web dynpro Java?

    Is there any way to get HTTP header in web dynpro java? This method gives me the params. Is params same as header? It doesn't have any way to retrieve header data. I am on NW 7.0.19
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("param");

    Dear Faraz,
    I'm afraid the code you've pasted is only to retrieve URL parameters.
    Have you tried this document to see if it offers any good hint:
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9]
    Not sure if you can process the HTTP header with a WD4J.
    An alternative could be to develop some Portal component in plain JAVA working as a proxy to call your WD4J afterwards.
    That portal component would process your HTTP header and forward any parameter to your WD4J.
    But this is me just guessing.
    Kind Regards
    /Ricardo

  • Web Dynpro for ABAP iVIew's Namespace parameter

    Hi Gurus,
    I am trying to create Web Dynpro for ABAP iVIew in portal
    There I have confusion while giving namespace
    say I m trying to create iView for standard WD4ABAP Application
    which lies in SICF at below location
    /default_host/sap/bc/webdynpro/sap/CNP_LIGHT_TEST
    when I test it from here (SICF) Its running.
    But when I create a iVIew for it I have given following parameter
    Application Name : CNP_LIGHT_TEST
    and for namespace I hav tried all possible combinations as below
    /default_host/sap/bc/webdynpro/sap/
    /default_host/sap/bc/webdynpro/sap
    /sap/bc/webdynpro/sap/
    /sap/bc/webdynpro/sap
    /sap
    /sap/
    But i m unable to run it
    Its giving Portal Runtime Error
    Plz guide me
    Points will be Awarded for ans !!

    Hi,
    you give the namespace as ''sap'.
    Because that is the root node.
    Suppose if you want to see that go to SICF transaction and observe that.
    sap will be the root node
    and remaining will be down of that.
    Thanks & Regards,
    Lokesh

  • My files, photos, email files, software programs, and all information did NOT transfer over to Mavericks (from Mt. Lion).  How do I get all my stuff to appear when using Mavericks?

    Will someone please help me?
    My files, photos, email files, software programs, calendar info, and all information did NOT transfer over to Mavericks (from Mt Lion).  How do I get all my stuff to appear when using Mavericks?
    My email did transfer over.
    Thank you.

    First click on the Apple > Logout and Log back in or restart the unit see if that solves it.  If it doesn't do you have a backup of your system prior to upgrade?  Check Disk Utility and see how much space is being used to make sure the drive wasn't somehow erased.

  • Get rid of the initial asterisk when using PasswordField masking in console

    Hi!
    How can I get rid of the initial astrerisk when using the PasswordField script from Sun?
    I've tried to check whether the BufferedReader is empty or not, but with no succes.
    Here comes the code:
    PasswordField.java
    import java.io.*;
    public class PasswordField {
        *@param prompt The prompt to display to the user
        *@return The password as entered by the user
       public static String readPassword (String prompt) {
          EraserThread et = new EraserThread(prompt);
          Thread mask = new Thread(et);
          mask.start();
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String password = "";
          try {
             password = in.readLine();
          } catch (IOException ioe) {
            ioe.printStackTrace();
          // stop masking
          et.stopMasking();
          // return the password entered by the user
          return password;
    }EraserThread
    import java.io.*;
    class EraserThread implements Runnable {
       private boolean stop;
        *@param The prompt displayed to the user
       public EraserThread(String prompt) {
           System.out.print(prompt);
        * Begin masking...display asterisks (*)
       public void run () {
          stop = true;
          while (stop) {
             System.out.print("\010*");
          try {
             Thread.currentThread().sleep(1);
             } catch(InterruptedException ie) {
                ie.printStackTrace();
        * Instruct the thread to stop masking
       public void stopMasking() {
          this.stop = false;
    }

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

  • New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    edit: iPad 4

  • HT204291 Does anyone know why when streaming a movie from my iMac the screen on my tele goes grey but I still get audio. It only happens when using the DVD application on the mac. iPhoto streams fine.

    Does anyone know why when streaming a movie from my iMac the screen on my tele goes grey but I still get audio. It only happens when using the DVD application on the mac. iPhoto streams fine.

    You are prevented from Airplay mirroring certain things like DVD content as the material is usually protected so you get a checkerboard type display.  I think there is a theoretical risk that the Airplay stream could be intercepted and the protected video copied, albeitin lower quality.
    Apple may be being cautious or are required to do so with the DVD player app by movie studios/licensing authorities.  It makes no sense to the average consumer who is just trying to send their purchased DVD to the TV via the computer and AppleTV.
    Playback in something like VLC should work - not tried it myself but others have commented it doesn't have the restriction.

  • Can not access in box or contacts from tiscali web mail when using firefox as browser

    I can not access my in box or contacts list at my tiscali web mail when using firefox as my browser. I have been able up to a few days ago and I can access these when using internet explorer browser.

    Thanks for the helpful solution!

  • Web Dynpro for ABAP iview window question ...

    Hi,  I have a web dynpro for abap iview that calls a web dypro for abap program in ECC that generates a PDF document. 
    It works perfectly, except when the iview is launched it opens a blank iview page and then opens a separate window in which the PDF is displayed.  Does anyone know how to suppress the blank iview window? 
    Can I suppress it in the ABAP for Web Dynpro program in ECC or is there something on the portal in the web dynrpo for abap iview that I can do? 
    Thanks
    Angie.

    Hi,
    Please check the same issue at the WD4A side-
    Generating PDF in Web-Dynpro   - empty window popup
    Or
    In the IF_WD_WINDOW_MANAGER try to use the method -create_internal_window method.
    Regards
    Lekha

  • How to pass and fetch multiple parameter in the URL of the Web Dynpro

    Please help me to fetch parameter in runtime from the URL in web dynpro allication. Like
    MyApplication?SAPtestId=Arun?SAPtestId=Kumar?Test2=Jaiswal;
    I want to fetch the value of the SAPtestId, Test1 and Test2 in the web Dynpro Application.
    Please help me on this asap. thanks

    Hi Arun,
    Passing parameter to a wen dynpro application is done throught default inbound plug, which exist in interface viewcontroller
    and you can access those parameter in implementaion of default inbound plug
    To pass parameter
    If MainWin is your main window of application then
    1.in MainWininterfaceview controller add parameters in default inbound plug.
    To access these parameter
    1. In implementaion of MainWininterface view right a code to access these parameter
    2.Store these parameters  in controller context, so you will be access it from any screen
    as
    public void onPlugDefault(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String SAPtestId )
        //@@begin onPlugDefault(ServerEvent)
    set  your controler context with SAPtestId
    //@@end

  • Web dynpro application using workflow

    Hi all,
    I have developed a web dynpro application and attached that to the portal, so the user will login into the portal and will access the application. We have a new requirement now, when a user enters the data and hit save button on the web dynpro application, the workflow should trigger and should send the filled out (everything filled in) web dynpro application to his superior, the supervisor should be able to click on a link (which he should get through workflow) and should get the web dynpro application filled in. I am not sure how can I do this, so can you please guide me through.
    Thanks,
    Raj

    Hi Raj,
    could I suggest perhaps that you have a good search of SCN - there have been multiple posts about this sort of thing in the past.
    for example : the wiki article
    [Integrating WebDynpro ABAP applications with UWL for workflow in Portal|http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal]
    is it perhaps that you do not use the UWL at your site? Or do you want to to send an email to the manager with a link directly to the approval application? The last case is one that I've come across many times before - it just means that you'll need to generate an approval task that is ended by a wf event and send an email to the manager with a URL parameter in the launch of the WDA application so that the app can pick up the details required to display and raise the WF event to complete the approval wf task.
    There are all sorts of ways of persisting the information in the form so that the manager can see it in the approval. You can use the workflow container, you can use a db table, you could even use a shared memory area (not that I'd recommend this for this usage). But this is more a case of how to persist information in a workflow and probably a better question (search first, it's probably been answered already) for the WF forum and not the WDA forum.
    Good luck in designing and building your application. Perhaps when you are done you could write a blog about your experience and further share how to do this with others.
    Cheers,
    Chris

  • Web Dynpro ABAP - Using Formatted TextView

    Hi,
    I created a  Web Dynpro ABAP application.  I need to display user information (i.e. address, phone # etc) on the home page after user logs in to the portal.  I created some Formatted TextView elements in the view and trying to change their text during the runtime.  Can someone please let me know how to change the text of the field in runtime.  If some one can provide pseudo code with sysntax, it would be great help.  Sorry, if it is a very basic question.
    Thanks.

    Hi Shan,
    There is nothing special about how you can work with the text of FormattedTextView UI element. You just need to bind the "Text" property of this element to a context attribute of type STRING. So whatever value you maintain within this attribute would get displayed in your FormattedTextView. So in order to dynamically change the text you would just have to do a SET_ATTRIBUTE on this context attribute. If you want to know as to how you can do it via the methods of FormattedTextView class then you have a method by name SET_TEXT in the class CL_WD_FORMATTED_TEXT_VIEW. You can call this method using the reference of the FormattedTextView on your view & pass the desired text as input to the parameter "VALUE". However keep it in mind that you are better off binding the "Text" property to a context attribute & changing the attributes data rather than directly using the SET_TEXT method to change the data.
    For any example over FormattedTextView you can check the standard component: WDR_TEST_MISC.
    Regards,
    Uday

Maybe you are looking for

  • IF Statement in Queries

    Can we use an "if then else" statemtent in a query such that it executes particular query depending on the condition specified on a UDF? That is, if condition = true, then execute query1 else if condition = false then execute query2. How do we write

  • Can you use more than one scanner?

    Hi All, Just got an Epson Artisan 810 All-In-One Printer-Fax-Copier-Scanner. It has wireless connection (or USB). I set it up on both our G4 12" PowerBooks for wireless Network connection. Seems to be working fine (so far) for me. Here's the problem.

  • JFileChooser : Exception occurred during event dispatching

    Hi, I'm having problems with sorting in 'Details' view of JFileChooser. I'm getting the following NullPointerException when I try to sort by clicking on the header of the JTable which I get in 'Details' view of a JFileChooser. Exception occurred duri

  • Reference date of last data load in query

    Is it possible to referece the date of the data load in a query via user exit / formula variable or some other way? We have a requirement to display data in a query based on when the data was last loaded. If the data load has not occured this month,

  • Unity Connection 8.5 mailbox quotas

    I configured mailbox quotas for user mailbox Send/receive quota is 3 Mgb Send Quota is 2 Mgb Warning Quota is 1 Mgb User mailbox is already 3.5 Mgb HOwever, when i  call this user from internal or external number - i still can leave a mesage for this