IView parameters

Hi everyone,
I created a WD Java application and created an iView for it.
I want to add some properties of my own to the properties of that iView.
How can I do it ?
Thanks in advance.
Regards.

Hi David
You can pass the parameters through the configuration of the iView or while you are creating the iView, the to retrieve this data you can do this:
String parameterData = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("parameterKeyName");
Hope it helps
Regards
Luis Barragá

Similar Messages

  • How to use URL iview parameters??

    Hi all,
    i have created a URL iview  to www.gmail.com, now my requirement is i dont want to give user id and password and it should logged me in directly so for that i need to make use of URL iview parameters, but i am not aware of how to use it, can anybody help me to resolve this issue??
    Thanks in advance,
    Regards,
    Ameya.

    Hi Ameya,
    Basically, you need to create a HTTP system, then create a URL Iview giving this http system as a reference in it.
    Check this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=389042">thread</a> for details.
    You can also refer to
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm">SAP Help Library</a>
    cheers~
    avadh

  • Setting iView Parameters

    Hello,
    I have an issue with setting iView Parameters. I do the following:
    response.write("Converting...<br/>");
                                  iiv.putAttribute("ApplicationParameter","queryid="+request.getParameter("queryid"));
                                  try
                                       iiv.save();
                                       iiv.notifyAll();
                                  }catch (ValidationException ve)
                                       response.write(ve.toString());
                                  catch (IOException ie)
                                       response.write(ie.toString());
    However, when I see the iView properties in the portal the value is not changed. When reading the value programatically, it is changed. Are there two of them or do I have a caching issue here?
    I already tried clearing browser cache and so forth, but problem remains.
    My code is supposed to change iView-ApplicationParameters..

    Hi,
    I found all information I needed in help.sap.com.
    So I wrote a little portal component to update a custom iview parameter and it is working fine for me.
    Here's my code:
    Sharing References:
    <property name="SharingReference" value="com.sap.portal.ivs.api_iview,com.sap.portal.pcd.glservice,com.sap.portal.pcm.admin.apiservice"/>
    Custom Parameter in portalapp.xml
    <component-profile>
    <property name="AuthScheme" value="anonymous"/>
    <property name="MTAGCustom" value="Test"/>
    </component-profile>
    and my Java Code to update(change the value:
    Imports:
    import java.io.IOException;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import com.inqmy.lib.xml.parser.dtd.ValidationException;
    import com.sap.portal.directory.Constants;
    import com.sap.portal.pcm.admin.PcmConstants;
    import com.sap.portal.pcm.iview.IiView;
    import com.sapportals.portal.pcd.gl.IPcdContext;
    Code Snippet:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
    InitialContext iCtx = null;
    try
      String iViewID = "pcd:portal_content/com.mtag.test/com.mtag.testcomponent";
      iCtx = new InitialContext(env);
      IiView myIView =(IiView)iCtx.lookup(iViewID);
      myIView.putAttribute("MTAGCustom","newValue");
      myIView.save();
      myIView.notifyAll();
    } catch(Exception Ex) {
      Ex.printStackTrace();
    I deployed the component and create an IView from PAR. I started the iView in Preview Mode and the Custom Parameter "MTAGCustom" now has the new Value "newValue"
    Let me know if it helps (Reward Points are appreciated if helpful
    Cheers

  • Functions in iView parameters

    Hi
    For a transaction iView,
    i can pass lastname as parameter to iview using the syntax lastname=<User.lastname>
    similarly,
    my portal users loginid consists of 10 characters.
    i want to pass the last 8 characters of loginif  as parameter to iview.
    is it possible ?
    Also i want to pass Current Year - 1 as a parameter to the iview.
    e.f if current year is 2010 it will pass 2009 to the iview.
    in short,can we use functions in parameters ?
    Regards
    Rajendra

    Hi,
    I would also recommend you talke at look at Customer Exits for u2018Parameter Provideru2019 this is a way to provide dynmaic values when calling a transaction.
    Take a look at this post: Making Customer Exits Work in the Portal
    BRgds,
    Simon

  • Question about URL iView parameters

    Hi experts.
    I have this issue: I have several iviews in DEV instance, URL iViews that points to backend applicationes. The URL parameters in DEV instance, point to DEV instance of backend applications. But when a will need to transport these iview to PROD instance, the URL parameters then I need to point to PROD instance of this backends apps.
    Which is the best practices to resolve this issue ?
    <b>Example:
    in DEV instance:
    URL iView "A" point to http://dev.app.com.
    in PROD instance
    URL iVIew "A" point to http://prod.app.com</b>
    But i try to avoid change this parameters after transport to Production , in Production instance directly.
    I think for example, use a some type of configuration file o .ini, in order to iviews "take" the URL string from it; and do not harcdode this strings.
    Is possible? How?
    I am clear?
    thanks in advance!

    thanks Atul, Wayne,
    I could be use "http system" but..
    Suposse this case:
    In DEV instance, I have:
    - URL iview "A" point to backend system "http://dev.zzz.com"
    - URL iview "B" point to backend system "http://dev.xxx.com"
    - URL iview "C" point to backend system "http://dev.yyy.com"
    In PROD instance, I have:
    - URL iview "A" point to backend system "http://prod.rrr.com"
    - URL iview "B" point to backend system "http://dev.ddd.com/aspx"
    - URL iview "C" point to backend system "http://dev.mmm.com/app3"
    All different!. No pattern.  If I use a Http system,I think that I am continue with the same problem: in the transport to PROD, I should be change all references, or all http systems.
    For this reason, I am begin asking for use a some type of configuration file, but I dont know how.
    thanks in advance..

  • RFC iView Parameters

    Hi all.
    I want to create a RFC iView passing a few parameters, but I cannot input a fixed value; I want to call it using SY-DATUM, SY-UNAME and things like that...
    Is it possible?? How??
    Thanks in advance.

    Hello Carlos,
    M not sure weather m rt or not but as far as ur RFC for R/3 is concerned you can create either SAP transaction Iview or SAP WebDynPro Iview Aftre creating system that connects ur Portal with R/3 Backend.
    Regards.
    Soni Vinit

  • Transaction Iview - Parameters

    Hi,
    I have a transaction iview wherein i want to pass the parameters.
    I have checked that static parameters are getting passed.
    But my requirement is of passing portal userid to the transaction iview.
    How is it possible.
    Regards,
    Priya

    The portal userid is normally the same as the username inside the ABAP system. This can be retrieved by looking at sy-uname inside the ABAP transaction.
    If you want to pass user specific parameters from the portal, then you should look at the generic application launcher. It uses a specially formatted URL to start a web site and can pass user information.

  • Passing iView parameters to BEx Template

    Hello All-
    We currently have some BI 7 reports exposed via EP 7 using the BEx iViews. What we want to do now is dynamically set the query variables based on the iView properties. So, we want to add something like; myvariable=<some.dynamicvalue> to the iView and have the BEx template use it as a query or filter.
    My questions are:
    1) Which iView property do we need to add the variable definition in? I see 'Application Parameters' and 'Parameters to forward to BEx application' as possible options...
    2) What do we need to do to actually use the value of 'myvariable' in the BEx template? Javascript?
    Any help would be appreciated.
    Thanks
    Tim

    Hi Tim,
    We are working on similar scenario.
    Were you able to find out the solution?
    Regards
    Radhika

  • Define IView parameters for JspDynpage

    Hi,
    I have a JspDynpage Portal application that is called on many places. Now I want to define a inputparameter for that application that I know where it is called.
    Is it some where on the IView configuration possible to define some application parameters?
    I know that this is possible on WebDynpro. But I didn't find that setting for JspDynpage.
    Thanks and Regards,
    Dennis
    Does no one know how to do that?
    Message was edited by: Dennis Junker

    You can define any parameters you like in the portalapp.xml file (check the documentation). Once these parameters have been defined, when you create the iviews you can give different iviews different parameter values.
    I hope this helps
    D

  • Pass Dynamic Parameters to a iView

    Hi,
    We have a reuirement where we need to pass the URL iView Parameters dynamically..The link to access the URL iView needs to be constructed in R/3 with a parameter value(Example: Work Item ID), which is dynamic.
    This constructed link will be send as part of a email. So each email sent will have a different parameter value.
    Thanks in Advance.

    Hi Sethuram,
    What type of application is the iView running?  I can provide code if you'd like to call a BSP or ABAP Web Dynpro application directly.

  • Page cannot be displayed(error in ABAP Webdynpro iview)

    Hi All ,
    I am trying to create ABAP Webdynpro iview. When i try to preview it...i am getting "Page cannot be displayed". I checked the Web AS connection and it is working fine. Please put on some light on this.
    Regards
    Rahul

    Hi Sharma,
    Better U check the  Iview parameters(Application name,and Namespace).
    Also check it out in deployed content.
    Regards
    Nandha.

  • URL iView Problem - How to Use URL Parameter of Type 'User Information'

    Hello URL iView experts
    I am currently working on integration of backend-functionality with the help of an URL iView.
    I want to use a parameter of type 'User Information'. In SAP Help Library it is said, that it is possible to set the value of a parameter according to a dynamic query on the users attributes. (Link SAP HELP)
    It is also said, that one can retrieve the Logon ID of the users account.(Attribute Name: j_user -> Link SAP HELP Attributes )
    I can choose the type 'User Information' but i don't know what to specify in the field 'Value'.
    I have made a screenshot of the problem.->[Link to screenshot|http://img66.imageshack.us/img66/7782/urliviewproblemfrsdnthrel3.jpg]
    But if i am calling the application this way, he doesn't retrieve the Logon-ID of the account, but he just uses the 'j_user' as value for the parameter.
    Can you tell me, what i need to specify in the field value?
    Best Regards
    Marcus
    Edited by: Marcus Böhm on Jun 2, 2008 1:22 PM

    Hi Marcus,
    > It is also said, that one can retrieve the Logon ID of the users account
    This is not correct; on the help.sap.com-page concerning the URL-iView-Parameters, it is printed that "other attributes (general, account, group, role) are not supported". The j_user attribute is part of the account group, so - not supported.
    For your needs, it may be a better choose to use the AppIntegrator, which offers such a possibility by using "<User.LogonUid>"; see http://help.sap.com/saphelp_nw70/helpdata/EN/36/5e3842134bad04e10000000a1550b0/frameset.htm and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152ecb
    Hope it helps
    Detlev

  • Webdynpro for ABAP iView personalization not sticking?

    We are currently on EP7 and are having a very odd issue with ABAP Webdynpro iView personalization.
    For our Java Webdynpro iViews, we have used iView personalization quite a lot to change field labels, add text, change button text, etcc. all via portal content administration (ctrl+rightclick to make changes from iView preview). These changes would show as custom iView parameters settings on the Java Webdynpro iViews. Then we could put these iViews into our own portal packages and move them to other portals (QA, Production, etc).
    However, this is not working quite right with our ABAP Webdynpro iViews. We personalized an iView on our DEV portal. The personalization changes showed just fine for all users (ie. changes to input field labels). However, no new parameter settings show for the iView for the personalization. Also, after packaging, exporting and then importing the iView into the other portals (like moving from DEV to QA), the personalization is gone. We had to manually recreate this on the QA system. However, we do NOT want to do this on the production portal of course nor do we want this to be the method/solution going forward.
    So has anyone seen this? Is this some issue/difference between the ABAP and Java webdynpro iView templates?

    If it is WebDynPro ABAP iview, if you do the personalization, then your personalization is persisted in ABAP stack. You need to transport it in ABAP i.e R/3 development system to R/3 Quality system. Transporting only iview is not enough.
    Note : If you do the personalization for the ABAP iview, it will not be saved in the portal, it will be stored in the ABAP stack.
    Thanks
    Manoj K

  • Interaction between two iViews on one page

    Hi Everybody!
    I have have one question and if you think I am blind, then I apologize for this.
    I have two iViews on a page. The First (iView 1) is showing a Link List from KM
    and the second (iView 2) is showing the content of an external link.
    I would like to implement the following logic:
    When the user clicks on a Link in iView 1, the content should appear in iView 2.
    Can this be done with standard iView parameters or do I need to implement it on my own?
    Thanks a lot and kind regards
    Ingo

    hi
    KM navigation has a core par file in USR(installation) directory com.sap.km.navigation use it in IDE eclipse or nwds and alter the code using epcf  and rename it as your class  and redeploy it  and make it as a template.
    you can use this way otherwise please do see the proerties of KM navigation iview  which may suggest the way out.hope this helps you .while using the code you have to implement epcm.donavigate and paa parameters to other iview.please don,t forget to give points
    with regards
    subrato kundu

  • Transaction iView for ME53N

    Hello!
    I want to call a transaction-iview for transaction ME53N from my WebDynpro-application.
    The application jumps to backend, but doesn't use the iView-parameters to show a special requisition.
    The iView-parameters are: MEREQ_TOPLINE-BANFN_EXT='144141'  and Prozess First Screen = YES.
    With transaction ME53 it works fine.
    Ideas?
    Regards Dennis

    Hi,
       In ME53 the field to enter the purchase request number was in the first screen. That's why you can pass the screen-field name & the value to display that purchase req.
       But ME53N displays the last viewed purchase req. & the purchase req. number field on that page is read-only. Hence the old approach doesn't work.
       In order to display a new purchase req. you would have to open the top-level menu "Purchase requisition"->"Other requisition". This would bring up a pop-up where you can enter the new number. You can't automate all that step by passing URL parameters.
    Regards,
    Satyajit.

Maybe you are looking for

  • Error in Publishing WSDL

    Hi , I have designed an Enterprise Service in Enterprise Servcie Builder using CE 7.1 SR 3. When i try to attemp to publish the WSDL file it throws and error - ==================================================================== = Root Exception ====

  • Auto resize window when opening image.

    How do you make the whole window automatically resize to fit your screen without covering the palletts?  Everythime I open an image the window is hidden by the pallets. I then have to move the pallets out of the way, resize the window to fit my monit

  • FreeAgent|Xtreme External Firewire Drive

    Does anyone know if this drive would work with my computer? Model Name: eMac Model Identifier: PowerMac6,4 Processor Name: PowerPC G4 (1.1) Processor Speed: 1.25 GHz Number Of CPUs: 1 L2 Cache (per CPU): 512 KB Memory: 1 GB Bus Speed: 167 MHz Boot RO

  • HT201066 YouTube is asking me to adjust my quicktime settings to upload a video faster. How do i adjust quicktime settings?

    YouTube is asking me to adjust my quicktime settings to upload a video faster. How do i adjust quicktime settings?

  • Design documents - reg.

    Hi Gurus,   can anyone let me know  what is meant by high level and low level design documents. Thanks in advance.