I want to assign values to input parameters in provider.xml

The following is cut from the provider.xml file for the exchange inbox portlet:
<inputParameter class="oracle.portal.provider.v1.URLPortletParameter">
<name>Mailbox</name>
<isMandatory>true</isMandatory>
<displayName>Mailbox alias:</displayName>
</inputParameter>
The value that is expected from our Exchange server equals the user's username in Portal so I'd like this value to be assigned programatically instead of making the user key this in once more. Is there a way of doing this in the provider.xml file?

Hi Henning,
You can do this in Oracle9iAS Portal 3.0.9 by the following:
1. Extend the oracle.portal.provider.v2.render.RenderManager class with your_class.
2. Override the getPageUrlFromRequest(PortletRenderRequest pr, int debugLevel) method in you renderer class. In the overridden method, modify the pageUrl value to replace the value of a parameter named "Mailbox" in the with the value returned by the newValue = pr.getUser().getName().
Do something like this:
String pageUrl = pr.getQualifiedParameter(UrlServicesUtils.PAGE_URL);
//In this string find the value of the parameter "Mailbox" and then replace it with the value of pr.getUser().getName().
3. Now modify the provider.xml by replacing the showPage class to your_class, something like:
<showPage class="oracle.portal.provider.v2.render.http.URLRenderer">
to
<showPage class="your_package.your_class.class">
4. Place your your_class.class file in your_oc4j_home\j2ee\home\applications\jpdk\jpdk\WEB-INF\classes directory.
Thanks,
Geeta

Similar Messages

  • EREC: "Assign Values to Interface Parameters" query

    Hi All,
    I am currently on ehp4, sp4. I had a requirement to change the format of the form to display the posting. Hence i took the help of the node: technical settings>User Interfaces>Administrator and Recruiter>General Settings>Assign Values to Interface Parameters. Here i user the parameter: FORM_PUBL_INT_DOVR and parameter value as the new Z form created. The new form was visible in the publication area of the job posting.
    But when i try to view the form by searching the job posting (as a candidate), it is still displayed in the old format. i.e when i try to view the posting using the posting search functionality.
    Can anybody please tell me what is the configuration left from my side
    Note: Majority of my application is a BSP application
    Regards,
    Kishore

    Dear Kishore,
    Please do the entry in the table V77RCF_PRM_PL for custom entries. Also check the table T77RCF_UI_PARAM whether correct form is used or not ??
    Best Regards,
    Deepak.

  • How to bind values for input parameters from an adf table?

    Hi,
    The version I am using is
    Jdev TP4 11.1.1.0.0
    I need to know how to bind values for input parameters to methods.
    I have created an af:table and I have a button created using a method which is outside the af:table. This method needs to take input parameter values from the column values in the table.
    When I have an adf form instead of the table the binding works.
    Any help?
    Thanks.

    Hi Balaji,
    you need to bind you table to a backing bean and call a method in the backing bean when you hit the button. In the method you get the selected row from the table and have access to the columns of it. Then call the the method with the parameters.
    To bind the table to a bean select the properties of the table, go to behavior section and look for the advanced section 'Binding' property.
    Select the small down arrow at the right side and click edit. In the dialog select or create a bean and property for the table.
    Go to the button properties, look for 'Action', again select the small down arrow and click 'Edit'. Select the bean which holds the table property and create a method for the button.
    The method look like    public void bearbeitenQuelle(ActionEvent actionEvent)
            // Add event code here...
            RichTable lTable = getYourTable();
            Object lData = lTable.getSelectedRowData();
            FacesCtrlHierNodeBinding lNB = (FacesCtrlHierNodeBinding) lData;
            YourViewRow lRow = (YourViewRow ) lNB.getCurrentRow();
        }Hope the get you started
    Timo

  • BP Transaction : Assign values to fields upon selection of BP role ?

    Hi All,
    I want to assign values to Grouping and Account Group fields in BP transaction in CRM.
    Is there any BADI or Userexit to achive the same. If possible kindly explain the steps to be implemented to use the BADI.
    Thanks & Regards,
    Navneeth K.

    Hi Navneeth,
    There are 2 ways to approach this :
    1. You can create an application transaction for the standard transaction BP. This will open the transaction in whichever role you require, default a groupng, and allow you to control some other initializaittion parameters. This is very similar the transaction variant mentioned above by Adil.
    You can explore 'Application Transactions' through SPRO->Cross Application>SAP Business Partner-> Business Partner> BAsic Settings>Business Partner Roles>Define Application Transactions.
    2. To default grouping , you can use BADI BUPA_NUMBER_GROUP. THe BADI will receive the list of groupings that will be shown in the dropdown .Write the implementation so as to remove unwanted groupins and keep only the number groupig you wish to default.
    Hope this helps.
    Cheers,
    Rishu.

  • Odata and Input Parameters

    Hello Experts,
    I have an Odata Service with multiple Input Parameters. I am creating a Dialog to allow user to enter values for Input Parameters and then show my Odata Model in a Table.
    I have two questions:
    1.) I will create a dialog that will contain Textboxes for entering Input parameters. Now I want to know how to pass these Text field values to my Odata Input Parameters.
    2.) I want my Dialog to be loaded first - As soon as I launch my index.html file - I want the dialog to appear and after entering Input Parameters, I want to load my Odata Model in table. How to achieve it?
    Regards,
    Rohit

    Hi Maksim,
    Thanks for your reply
    For now I am not using dialog but am using a panel to get input parameters and then another panel to show the table.
    I have created the panels as follows:
    The code is:
    sap.ui.jsview("testid.testr", {
           getControllerName : function() {
                  return "testid.testr";
           createContent : function(oController) {
    var updatePanel = new sap.ui.commons.Panel("updPanel").setText('Enter Input Parameters');
    var layoutNew = new sap.ui.commons.layout.MatrixLayout({width:"auto"});
                 var oVal1 = new sap.ui.commons.TextField("cArea",{tooltip: "Controlling Area", width: "200px", editable:true});
                 var oVal2 = new sap.ui.commons.TextField("sDate",{tooltip: "Start Date", width: "200px", editable:true});
                 var oVal3 = new sap.ui.commons.TextField("eDate",{tooltip: "End Date", width: "200px", editable:true});                
                 var oExcButton = new sap.ui.commons.Button({
                     text : "Submit"});
                 layoutNew.createRow(new sap.ui.commons.Label({text: "Controlling Area: "}), oVal1 ); 
                        layoutNew.createRow(new sap.ui.commons.Label({text: "Start Date: "}), oVal2 );
                        layoutNew.createRow(new sap.ui.commons.Label({text: "End Date: "}), oVal3 ); 
                        layoutNew.createRow(new sap.ui.commons.Label(),oExcButton);
                 updatePanel.addContent(layoutNew);
                 var tPanel = new sap.ui.commons.Panel("tbPanel").setText('Table');
                 var oModel = new sap.ui.model.odata.ODataModel("/Test/View/Services/testcv.xsodata/",false);
                         var oTable = new sap.ui.table.Table("TestTab",{tableId: "tableID",
                               visibleRowCount: 7,
                               firstVisibleRow: 3,
                               selectionMode: sap.ui.table.SelectionMode.Single,
                               navigationMode: sap.ui.table.NavigationMode.Paginator,
                               fixedColumnCount: 2
                         oControl = new sap.ui.commons.TextField({editable:false}).bindProperty("value","SAPClient");
                          oTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:"SAP Client"}),
                                template: oControl, sortProperty: "SAPClient", filterProperty: "SAPClient", width: "125px" }));
                          oControl = new sap.ui.commons.TextField({editable:false}).bindProperty("value","ControllingArea");
                          oTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:"Controlling Area"}),
                                template: oControl, sortProperty: "ControllingArea", filterProperty: "ControllingArea", width: "125px" }));
                          oTable.setModel(oModel);
                               var sort1 = new sap.ui.model.Sorter("CostCenter");
                                oTable.bindRows("/TestCalcView", sort1);
                 tPanel.addContent(oTable);
                 var oLayout = new sap.ui.commons.layout.VerticalLayout("Layout1",{
                    content: [updatePanel,tPanel]
                 //oLayout.createRow(updatePanel);
                 oLayout.setWidth('auto');
                    return oLayout;
    I want that when I click on Submit button the data is loaded in the table.
    Can you please let me know where to define the Input Parameters of Odata Service
    Can you please help me in how to get the values of textfields and how to pass them as Input parameters to Odata.
    Regards,
    Rohit

  • How can i assign value to the certain field in dynmic table ?

    i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
    for eg,
    <dyn_table> contains fields of  name age ,now i want assign 'jack' to this internal talbe's field name ,

    Hi,
    try this:
    FIELD-SYMBOLS: <GT_ITAB>      TYPE TABLE,
                   <GS_ITAB>,
                   <FS>, <FS1>.
    DATA: GT_DATA   TYPE REF TO DATA.
    DATA: GS_DATA   TYPE REF TO DATA.
    START-OF-SELECTION.
      CREATE DATA GT_DATA TYPE TABLE OF PA0002.
      ASSIGN GT_DATA->*   TO <GT_ITAB>.
      CREATE DATA GS_DATA    LIKE LINE OF <GT_ITAB>.
      ASSIGN GS_DATA->*      TO <GS_ITAB>.
      ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Smith'.
      ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Paul'.
      APPEND <GS_ITAB> TO <GT_ITAB>.
      ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Jones'.
      ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Martin'.
      APPEND <GS_ITAB> TO <GT_ITAB>.
      LOOP AT <GT_ITAB> INTO <GS_ITAB>.
        ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
        ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
        WRITE: / <FS>, <FS1>.
      ENDLOOP.
    Regards, Dieter

  • Assigning value to variable in ODI

    Hi
    TotalCount(datatype is numeric)--->Action is (Latest value)
    And i want to assign value it by using following query
    select count(*) from Investment_ato
    i am writing this in a refresh tab
    And i am using this variable in another variable(var_account)
    but value of TotalCount variable is not coming in var_account
    so plz suggest regards the same
    thanks

    You can set the refreshing mode in the variable var_account and in the refreshing tab put the query as: select #TotalCount from dual.
    Hope it helps!

  • Assigning value to field in proxy report

    Hello,
    I am writing the abap report for sproxy.
    The link to the field in structure is very long.
    e.g. it-fault_message_mt-request-calldata-requester-gid = 'Z12345'.
    In the structure one field in calldata is ADDITIONAL_ATTRIBUTE which is of table type.
    I want to assign values to the fields of ADDITIONAL_ATTRIBUTE.
    When I click on field ADDITIONAL_ATTRIBUTE we can see line type ZFAULT_MESSAGE_ADDITIONAL_ATTR and this line type is having NAME as on of the field.
    I want to pass value to field NAME.
    Regards,
    Neelambari

    Hi,
    Create a work area as line type. and loop at table type into work area.
    *wa like line type
    *loop at table_type into wa.
    *wa-name = Value.
    *append wa to target table type.
    ****target table type structure should be  same as that of source table type. *****
    Sachin

  • Assigning value to variable of type time

    Hi,
    I want to assign value '8:00:00' to a time variable (w_time like sy-uzeit).
    How do i do this? Do i need to do any casting?
    w_time = '8:00:00' didnt work.
    I am trying to use this in a customer exit.
    Thanks,
    Arun KK

    Gotcha!
    Thanks!!

  • How to assigne value in sub record type

    Dear below mention record type database,now i want to assigne value in payr_rec type,in this recrocrd type have one column party_id,but how can assigne value int this field ,
    TYPE group_rec_type IS RECORD(
    group_name VARCHAR2(255),
    group_type VARCHAR2(30),
    created_by_module VARCHAR2(150),
    -- Bug 2467872
    mission_statement VARCHAR2(2000),
    application_id NUMBER,
    party_rec PARTY_REC_TYPE := G_MISS_PARTY_REC
    please guide.

    to get the desired default party_rec attribute value, just assign the "sub-record" attribute defaults as desired; PL/SQL will assign a default (non-null) record as the party_rec value using those attribute defaults:
    create or replace package P_Test_It
    as
         type party_rec_type is record (
              dummy varchar2(1) default 'X'
         type group_rec_type is record (
              group_name VARCHAR2(255),
              group_type VARCHAR2(30),
              created_by_module VARCHAR2(150),
              -- Bug 2467872
              mission_statement VARCHAR2(2000),
              application_id NUMBER,
              party_rec PARTY_REC_TYPE
    end;
    set serveroutput on
    declare
         rec p_test_it.group_rec_type;
    begin
         dbms_output.put_line(rec.party_rec.dummy);
    end;
    X
    PL/SQL procedure successfully completed.Hope it helps.
    Gerard

  • Issue with Input Parameters & Variables

    Hello Gurus,
    I have a situation where, when the user enter “Parent Company”   say for ex: ABC, then the over all
    Result should filter by ‘ABC’, and then there is key figure column where I need to consider not equal to ABC and then sum the key figure.
    In HANA, here both variables and Input patemters are mutually exclusive. Is there any way that I can pass the value of the variable to the input parameters without writing the code in Analytical or calculation views.
    If it’s BW-bex, it was very straight forward, I can create the variable for parent company ‘ABC’, put it as global filter, so that whenever the user selects ‘ABC” it should display on ABC data in the out put.
    I can also use the same variable and crate calculated column in BEx and attach the variable to the key figure and say the sum the key figure but exclude the Parent company “ABC’.
    I have tried the projection view and try to put filter on it, but it did not work. My requirement is
    Whenever the user selects ABC, it should display only ABC data, only 10 records out of 100 records and for one key figure column; I need to aggregate but excluding the Parent company “ABC”.
    Can I pass the Variable value to input parameters without writing the code?
    Regards
    Ramakrishnan Ramanathaiah 

    How about the following:
    Assuming you have 2 characteristics (Plant and Parent company) and 1 KF (Net Sales).
    Now let's create a projection with Filter using Input parameter on Parent company (with user input value as ABC), which might give the output as:
    Plant
    comp
    Net Sales
    P1
    ABC
    10
    P2
    ABC
    5
    Now, let's create a second projection with the Calc KF "Net Sales calculated" with the formula as:
    if comp = $input_value$, then 0 else Net_Sales.. this way you can simulate the EXCLUDE functionality.
    Plant
    comp
    Net sales
    P1
    ABC
    0
    P1
    BCD
    15
    P2
    ABC
    0
    Now union both the projections with two diff KFs, Net Sales and Net Sales Calculated.
    Plant
    Net Sales
    Net Sales Calc
    P1
    10
    15
    P2
    5
    0
    Subsequent model depends on your reporting drilldown requirement. If you drilldown Parent company also in the rows, then you will see the split in the values.
    Please try this and let us know if it works or what other issues come up.. we can try resolving the issues..
    Ravi

  • I am facing a problem in passing multiple values as out parameters from fo

    Hi All,
    i am facing a problem in passing multiple values as out parameters from for loop.
    EX:
    i have a select statment inside a loop like.....
    PACKAGE SPEC:
    create or replace PACKAGE EMP_PKG AS
    TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
    TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
    TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
    temp_table TAB_NUM;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB);
    END EMP_PKG;
    PACKAGE BODY:
    create or replace PACKAGE BODY EMP_PKG AS
    v_e_no NUMBER;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB) IS
    BEGIN
    select EMPNO bulk collect into temp_table from emp;
    for i in 1..temp_table.count loop
    v_e_no := temp_table(i);
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    end loop;
    end test;
    END EMP_PKG;
    PROBLEM FACING IS:
    I am expecting all rows returning from bellow select statment ...
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    But,while running the SP , i am getting error like
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SCOTT.EMP_PKG", line 16
    why i am not getting all values as out parameters.please provide a solution for me.
    Thanks in advance my friend.

    user9041629 wrote:
    Hi All,
    i am facing a problem in passing multiple values as out parameters from for loop.
    EX:
    i have a select statment inside a loop like.....
    PACKAGE SPEC:
    create or replace PACKAGE EMP_PKG AS
    TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
    TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
    TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
    temp_table TAB_NUM;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB);
    END EMP_PKG;
    PACKAGE BODY:
    create or replace PACKAGE BODY EMP_PKG AS
    v_e_no NUMBER;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB) IS
    BEGIN
    select EMPNO bulk collect into temp_table from emp;
    for i in 1..temp_table.count loop
    v_e_no := temp_table(i);
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    end loop;
    end test;
    END EMP_PKG;
    PROBLEM FACING IS:
    I am expecting all rows returning from bellow select statment ...
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    But,while running the SP , i am getting error like
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SCOTT.EMP_PKG", line 16
    why i am not getting all values as out parameters.please provide a solution for me.
    Thanks in advance my friend.Probably not a bad thing that this isn't working for you.
    This is a horrible way to return the contents of a table.
    Are you doing this for educational purpose, or ... what is your goal here? If you just want to return a result set to a client you'd want to look in to using a REF CURSOR and not a bunch of arrays combined with horribly procedural (slow) code.

  • Assign values for Application items

    Hi,
    I have some application items to which I want to assign values querying from a database table based on the user logged in. I have created an application process which does that. What process point I need to select so that the values in application items are available through out the session?
    Thanks,
    Asha

    Asha:
    I have been able to reproduce this issue. The application process appears to fire for every 'new' session-id. This explains the 'no data found' when you navigate to the application's login page. What is weirder is that APEX re-uses the session-id created when presenting the login page and therefore the application process no longer fires ! This needs more research. Clearly, my understanding of the the 'On New Session - After Authentication' is inadequate.
    In the meanwhile you can move the code you have for the application process and and use it as a 'Post-Authentication Process' for the application's authentication scheme.
    Varad

  • I want to assign the value of a Javascript variable to JSP Variable

    I want to assign the value of a Javascript variable to JSP Variable .. for example :
    <%
    Bla Bla Bla
    %>
    <script>
    var JavaScriptVariable="hello"
    </script>
    <%
    String JSPVariable=// The Value of JavaScriptVariable ;
    %>
    How can i do that ??
    Thanks

    >I want to assign the value of a Javascript variable to JSP Variable
    cannot be done.Friend try to understand concepts properly Javascript is always excuted by the browser @clientside where as JSPCode is executed Websever(ServletContainer) @serverside.Through you are combining JSP Code blocks(Tags,Expressions,scriptlets...) & javascript under a single page webserver can only identify what is their under JSP Code blocks.
    Hope this could be an appropriate answer for your question.
    However,you can as well submit a request by encoding your URL with request parameters and the submit to the page and then collect it using request.getParameter(name).
    But under a single context state it is not possible
    REGARDS,
    RaHuL

  • Assigning value to an input account

    Hi,
    We have an input account in our Account dimension. In the rule file (maybe in the consolidation routine) can we write a code which assigns a value to an input account. The assigned value maybe another account value or a static value based on a logic.
    Thanks

    If by "input account" you mean a leaf-level account that has no children, the answer is "yes", but with a qualification. In normal circumstances, for the rule to post the value to the account it needs to have the "IsCalculated" parameter set to "Y". This means the account can no longer have data posted to it via FDM, grids or forms.
    The other possibility is the use of allocation functions &/or routines but this is an area I have not explored personally in HFM.

Maybe you are looking for

  • Wild card search in existsNode function

    Hi, How can i do a wild card search for the below data? I have a table as follows: ID VARCHAR2(32 BYTE), MESSAGE_TYPE VARCHAR2(64 BYTE), MESSAGE_CONTENT XMLTYPE, REJECTED_REASON VARCHAR2(256 BYTE) And Sample XML as: <?xml version="1.0" encoding="US-A

  • Wait for Image created with Toolkit.createImage()

    I try to create a new image using Toolkit.createImage(byte[]). When I try to proccess this image afterwards with an ImageObserver Container.prepareImage() I get an error returned from Container.checkImage(). It looks like Toolkit.createImage(byte[])

  • Alarm "On Date" doesn't use the current entry start time

    When setting an alarm and choosing "On Date" it sets the date and time according to the initial time of the entry even if you have changed it first. So for instance I create a new calendar entry, it will default the time to the next hour from now 9:0

  • SSRS causing to reboot

    Hi Experts,  On the main abcd.com and the Partner websites, SSRS reports are utilized.  When the issue is encountered, the SSRS reports are the only thing that quit working.  The website and various pages that are coded in .NET still work.  We have t

  • Boot time slowed down after 10.7.3 update...

    i have been using my MBP for a month and now after the update to 10.7.3 from 10.7.2...it has slowed down.. it used to take 20 sec. to boot and now it takes about 35-45 sec. to boot up.. is there any way i can bring it back to fast boot...