Passing Parameter to AbstractPortalComponent from Iview

Hi All,
i am trying to pass a parameter from iview so that i can retrieve in abstract portal component as
request.getParameer("parameterName") ;
Do any body know how to configure parameter for Iview created by
New From Par -> iview .Please pass the code.
advance thanks
kaushik

Hi,
Code for your question
package com.sapportal.training.portal;
import com.sapportals.portal.prt.component.*;
public class FirstPortalComponent extends AbstractPortalComponent
     public static final String PARAMETER_NAME = "name";
     public static final String HELLO_STRING = "HELLO_THERE";
     public static final String HELLO_STRING_END = "!!!";
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
          response.setContentType(PortalComponentContentType.HTML);
          String myName = request.getParameter(PARAMETER_NAME);
          String hello_string ="";
          // = HELLO_STRING + myName + HELLO_STRING_END;
          if(myName !=null){
               hello_string = HELLO_STRING + myName + HELLO_STRING_END;
          response.write("<h3>" + hello_string + "</h3>");
          response.write("<form method = 'post'>");
          response.write("<p>Name:<input type = 'text' name='" + PARAMETER_NAME + "'size='20'></p>");
          response.write("<p><input type = 'submit' value='submit' name='mysubmit'></p>");
          response.write("</form>");
Reward useful answers

Similar Messages

  • How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?

    Hi Experts,
    We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema.
    Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for different regions.
    I found that there is a paramater /1BCDWB/DOCPARAMS-LANGU, and it seems can control the language version in processing.
    But I donot know how to pass parameter /1BCDWB/DOCPARAMS from wdp to adobe form.
    Its my 1st to use adobe form and wdp, i really have no way out. Any advice will be Appreciated.
    Thank you.
    Richard

    @sahai: Hey no , I am using very very simple example without any query or complex statement. I just have 2 radio buttons in VIEW1. On clicking the radio button, the naviagtion to view2 is done and the value of selected radio button is passed as a parameter in the plug.
    In the view2 , i just have a caption in my layout where i am displaying the parameter value by setting the attribute.THe warning i get is in view2. Here is the code. Apart from this there is no coding in view2.
    METHOD HANDLEPLUG_IN_V2 .
        DATA:
          NODE_CAPT_MSG                       TYPE REF TO IF_WD_CONTEXT_NODE,
          ELEM_CAPT_MSG                       TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          STRU_CAPT_MSG                       TYPE IF_VIEW2=>ELEMENT_CAPT_MSG ,
          ITEM_MSG                            LIKE STRU_CAPT_MSG-MSG.
    *   navigate from <CONTEXT> to <CAPT_MSG> via lead selection
        NODE_CAPT_MSG = WD_CONTEXT->GET_CHILD_NODE( NAME = `CAPT_MSG` ).
    *   get single attribute
        NODE_CAPT_MSG->SET_ATTRIBUTE(
          EXPORTING
            NAME =  `MSG`
            VALUE = PAR_1 ).
    ENDMETHOD.

  • Pass parameter to portlet from jspx page

    Hello guys, i have one question about portlet. Curently i have 2 application, 1 weblogic portal application and 1 portlet producer application. Both project was successfully setup. I already put 1 portlet created in the portlet producer into 1 page in the weblogic portal application. The problem is, how can i pass parameter from weblogic portal page (which i call the portlet) to the portlet. Thank you

    Hi,
    worth checking the WebCenter forum as both products seem to belong there: WebCenter Portal
    Frank

  • Pass parameter to Action0 from VbScript & Read it in Action0

    Hello, Anyone please can you give me example of how can I pass parameter from vbScript to Action0 of UFT 11.53 and read it in Action0.

    i tried your soluation
    <managed-bean>
    <managed-bean-name>testBacking</managed-bean-name>
    <managed-bean-class>checklist.TestBacking</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>testValue</property-name>
    <property-class>java.lang.String</property-class>
    <value>${param.myParam}</value>
    </managed-property>
    </managed-bean>
    it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
    please advice.
    Regards
    Mohd.Weshah

  • Pass parameter to VC from workflow

    Hi,
    We created a Visual Composer application which we would like to call from a workflow. If we don't pass a parameter to the VC, it works, when we pass one, it doesnu2019t work.
    Our Visual Composer application expects an input value called WI_ID.
    We would like to call this Visual Composer aplication via an iView launched from a workflow item.
    Our task is TS90000138 and its visualization contains DYNPARAM: wi_id=${item.externalId}.
    If we execute this task, &iviewDynamicParameter=wi_id%3d000005985089&wi_id=000005985089 is added to the URL, but the value is not passed on to the VC application, because as explained in http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a, Visual Composer expects &_paramsXmlStr_=<Params><Row%20WI_ID="5984427"/></Params>.
    We tried two options:
    Option 1:
    change the task visualization to paramsXmlStr=<Params><Row%20WI_ID="${item.externalId}"/></Params>, but this results in the following line in the UWL XML (after re-registering the UWL WebFlowConnector and deleting the cache):
    <Property name="iviewDynamicParameter" value="_paramsXmlStr_=&lt;Params>&lt;Row%20WI_ID=&quot;${item.externalId}&quot;/>&lt;/Params>"/>
    which is not a valid XML format due to the < and > signs.
    Option 2:
    encode the string as explained on http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a?QuickLink=index&overridelayout=true and enter paramsXmlStr=%3CParams%3E%3CRow%20WI_ID%3D%22${item.externalId}%22%20/%3E%3C/Params%3E into the task visualization.
    When we execute this "the encoding gets encoded" and we get the following URL, which doesn't work either:
    &_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E&iviewDynamicParameter=_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E
    As explained on http://help.sap.com/saphelp_nw70/Helpdata/en/45/a7863f445f4617e10000000a114084/content.htm, there are only 3 pamaters (ID, CONFIRM, DYNPARAM) and no other one can be used.
    Do you know how to fix this issue?
    Thanks,
    Tamas

    Hello Tamas,
    I did succeed to call a Visual Composer model from the UWL (using workflow tasks coming from our ERP 6 backend).
    I did customised UWL workflow task (within the portal) :
    <Property
    name="iviewDynamicParameter"
    value="WI_ID=${item.externalId}"/>
      <Property
    name="iview"
    value="pcd:portal_content/pcc_portal_application/.../xxx.uwl_task_VC"/>
    Parameter WI_ID (WorkItem Id) is automatically sent by the portal system.
    I set, in VC, a start point with a string data parameter called WI_ID.
    When calling the model this parameter WI_ID is filled.
    Hope it could help.
    Rgds
    Gilles

  • Passing Parameter to Report from a JSP

    <p>I have a report which calls a Oracle stored procedure which requires some  IN parameters. These parameters need to be passed from the JSP. For this scenario if someone has some sample code please post it.</p><p>Thanks.<br /></p><p>&#160;</p>

    <p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • URGENT:How to pass parameter to page from java portlet

    Hi,
    All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
    Thanks,
    Ceren

    Hmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
    (java.net.URLDecoder.decode(String s) decodes btw)

  • Pass parameter to form from webpage?

    Hi guys,
    I'm aware that you are able to pass parameters between forms using CALL_FORM (using parameter list).
    Is it possible to pass parameters to a form from the webpage?

    i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
    I am using the followin url to pass the parent id
    http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223

  • Passing parameter value back from Child region [BTF] to Parent

    Hello,
    I am using Jdev 11.1.1.6. I have a use-case where I need to pass value back from child taskflow to parent.
    Let me elaborate the use-case:
    I have a main page which is implemented as BTF with fragment. This main page contains a child region [again a BTF with fragment].
    I am passing a parameter value from parent page to it's region using taskflow input parameter. Now value for one of the parameter changes inside child/region taskflow and I need to make this value available to main page taskflow.
    This parameter is just pageFlowScope variable, so basically not coming from any VO.
    I know that taskflow can return value via return parameter but I don't know if that is true for taskflow implemented as region in a page.
    Is it possible to communicate the pageFlowScope variable value from child region to it's parent page?
    Thanks,
    Jai

    Hi Frank,
    I tried to follow steps mentioned in your post but encountered error that "The scope of the referenced object #{viewScope.parentBeanName} is shorter than referring object childBeanName"
    Let me explain what I did:
    1. Created a bean parentBeanName in viewScope
    2. Created another bean childBeanName in pageFlowScope
    3. In ChildBean.java, created a private property parentBeanProperty for Class [ParentBean] and generated the accessors
    4. Created a input parameter in region TF as:
    <input-parameter-definition id="__28">
          <name id="__27">parentBeanParam</name>
          <value>#{pageFlowScope.childBeanName.parentBeanProperty}</value>
          <class>ParentBean</class>
          <required/>
    </input-parameter-definition> 5. Since my mainPage contains child page as region. I added parameter to mainPageDef to pass it to child TF, like this
    <parameter id="parentBeanParam" xmlns="http://xmlns.oracle.com/adfm/uimodel"
                       value="#{viewScope.parentBeanName}"/>6. Introduced a client method in childBeanName that is called from UI. There I am retrieving parentBeanParam instance from pageFlowScope and call setter method of my variable inside ParentBean.java
    7. Ran the page but encountered the error.
    Did I miss something somewhere?
    Initially I got error where #{viewScope.parentBeanName} returned NULL due to parentBeanName not instantiated. I created a variable in mainPageDef with it's default value pointing to #{viewScope.parentBeanName.variableName}, which I guess will instantiate the bean in viewScope.
    After this I got error of shorter scope. It never reached to code in Step 6 during execution cycle.
    FYI - My application is based on UIShell and essentially a one page application. Main page referred above is also a jsff based on BTF. I hope, this should not affect this implementation but I thought of at least mention it.
    Thanks,
    Jai
    Edited by: Jai Om on Dec 18, 2012 2:38 PM

  • Pass parameter to WD abap iview via Portal link

    Hello all,
    I have created one WD ABAP application and I am accessing the same with the help of URL parameters. I am retrieving these URL parameters in 'HANDLEDEFAULT' event handler of the application window.
    Now client wants to access the same with the help of NavigationParameter so I created relevant iView in portal and I am accessing application using link which is composed of portal link and NavigationTarget parameter.
    My question, If I want to pass application parameters via URL, How do I access the same in my window. Do I need some sort of separate mechanism to take the URL parameters to my application window when application is running on portal?
    Please share your thoughts on this.
    (Same problem explained in link /thread/672163 [original link is broken])
    Thanks in Advance,
    Prashant Jagdale

    Hi Kiran Kumar,
    Thanks for your document but still my problem is not solved. I will try to explain my problem in detail.
    I have developed one WD application and I was accessing the same using link suppose
    http://newdomain.abc.com:8000/sap/bc/webdynpro/sap/zwda_url_parameters?pernr=12345&name=test1&sap-client=200&sap-language=EN
    I was retrieving the values of of pernr and name in 'HANDLEDEFAULT' event handler by adding two parameters as PERNER and NAME. and it is working fine.
    Now this application is running on portal. and I am accessing the same using URL
    http://<server>:<Port>/irj/portal?NavigationTarget=ROLES://portal_content//myFolder/myRole/myWS/myPage
    but as i want to pass above mentioned parameter (pernr and name) via link, After an investigation, I am thinking to use of Dynamic parameter. So my link will become like
    http://<server>:<Port>/irj/portal?NavigationTarget=ROLES://portal_content//myFolder/myRole/myWS/myPage&DynamicParameter="pernr=12345&name=test1"
    So, my question is , how I can access these values specified in DynamicParameter in my WD abap iView. Whether they are available in 'HANDLEDEFAULT' event handler using method wdevent->get_data?
    I don't want to pass my parameters using iView property "Application Parameter."
    Please give some inputs on this. Also Please guide me whether I can use some other way to achieve this. but the thing is, i must want to pass the values via URL only.
    Thanks in Advance,
    Prashant Jagdale

  • Passing parameter to report from form using RUN_REPORT_OBJECT method

    Will you please let me know how to do this. I tried using run_product but it is giving error as too many declarations. So I decided to use RUN_REPORT_OBJECT, but no help is provided how to pass paramters to this routine from FORMS to REPORTS.

    If you just want to change the heading of a column dynamically, you can go with any of the two options. For both the options, you need to remove the static text and replace it with any dummy field (ensure the reference of field w.r. to repeating frame)
    1. Use the Format Trigger and change the heading to either "school" or "college" based on your field value.
    Ex.
    If :<field_name> = 'S'
    then :dummy_field := 'School'
    Else
    :dummy_field := 'College'
    End If;
    Return (true)
    2. Another option is similar to this and uses a CF.
    (I would prefer CF).
    Warm Regards,
    Raja.

  • PASSING PARAMETER TO REPORTS FROM FORMS...

    I have one form called empform, by clicking a button i want to run report.
    I have created a record_group by name emprec,
    i am using same query for my report also with dame parameter.
    My when button pressed trigger has following,
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'EMPQRY',DATA_PARAMETER,'EMPREC');
    *** empqry=query name on which report and record group is based***
    Run_Product(REPORTS, 'g:\cl2\vatdata\emprep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    END;
    but when i am clicking button to run report.
    it is asking parameter again before displaying report.
    Please let me know where i am doing mistake...
    Thanks in advance..

    Hi!
    To suppress Oracle Reports native Parameter Form just add:
    add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
    null

  • How to pass parameter into transaction iview ?

    Hi experts,
    I want to know "how to pass parameter into transaction iview ".
    Regards,
    Krishna Balaji T

    Hi Krishna,
    Not sure if this can help you.
    1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
    Passing a parameter to a transaction iview
    2) Passing a parameter from the portal to R3 (helpful info for you)
    Passing a parameter from the portal to R3
    3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
    Create SAP Transaction iView using SAPGUI for Windows
    Please check the following link for Transaction Iviews
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
    Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
    Hope that helps and award points for helpful suggestions.
    Ray

  • Passing multiple character values from parameter form to PL/SQL

    Hi,
    I am passing multiple character values from parametr form into
    the report query and a PL/SQL procedure. It works fine with the
    query, when I use &variable. But, it doesn't compile in PL/SQL,
    so I just used the :variable, but not getting any records in the
    PL/SQL procedure. Any suggestions?
    sincerely,
    gj

    gj / Fedro,
    Only using the &referecne, you can pas a string / multiple character values and this would work for query only.
    The bind parameter in PL/SQL wouls support only single value
    Thanks
    The Oracle Reports Team

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

Maybe you are looking for

  • How to use DNS server for name resolution for items which don't exist in active directory domain controller DNS

    Dear Experts, In our office we have a domain controller call it 'Office.com', all computers and corporate servers e.g. exchange, antivirus etc. are member of this 'office.com', it is also having a DNS. All users in office have there preferred DNS set

  • A collection of FLV downloader, FLV player, and FLV converter for Mac

    [http://www.pavtube.com/christmas2009/] A collection of FLV downloader, FLV player, and FLV converter for Mac Are you prepared to download FLV videos from YouTube, Google Video, metacafe, Yahoo! Video, Reuters.com, and many other video websites to pl

  • XI 3.0 - Receiver File Adapter fails to initialize

    Hello, In the log of the file adapter I see an error that the parameter 'Shopping_List.fieldSeparator' is missing (Shopping_List is my recordset structure). But I have defined this parameter in the 'Content Conversion Parameters' box In the communica

  • Multilink PPP problem

    Hi Guys, i got a situation here and hope someone will be able to help me out. Recently i configured a PPP multilink and am facing some issues after that. Issue 1: There seems to be lot of input error on multilink interface (150 errors in 40 mins) Iss

  • Network Type Logical or SDO or TOPO for road network

    Hi I have to create road network application for shortest path, shortest path with multi transport system. I have road data as line My doubt is which type of network should I create SDO_NETWORK or LOGICAL_NETWORK or TOPO_NETWORK. I could not get any