How to generate Qualified portlet parameter names?

$Subj and apply it to current URL?

PortletRenderRequest pr;
Getting the qualified parameter
pr.getQualifiedParameter("myAttribute");
Setting the qualified parameter
HttpPortletRendererUtil.portletParameter(pr, "myAttribute")
this will create a qualified parameter name
then you can do something like
out.println("<input type=hidden name="+HttpPortletRendererUtil.portletParameter(pr, "myAttribute")+" value="1">");
Hope this answers your question

Similar Messages

  • How to generate variable to receive name of database on B1if

    Hi Everyone,
    I need your help, I created a web service with B1if and I tried generate one variavel to receive a name of database to use work on my web service, but I could not.
    The client will set the name of database to receive to data from webservice.
    Can generate variable to receive name of database on B1if?
    I dont find nothing about this situation, Anyone tried make something like this?
    Sorry for my bad English.
    Thanks,
    Duoglas

    Hi
    I'm not sure if I understood you correctly:
    you will receive a database name as a part of the incoming message for your web service and then you need to choose a correct system from SLD based on this name? For example there will be a <dbName> tag in your and based on its value you would have to choose appropriate system in B1iF. Am I right?
    Kind regards,
    Radek

  • How to make url portlet parameter permanent

    I have set up a url portlet inside portal.
    I put tags in the provider.xml file for an input parameter for my url portlet to use. (I used the <isMandatory>true</isMandatory> so I would be prompted inside portal for the value.)
    So, when I add the url portlet to a portal page a window pops up and asks me to submit a value for the portlet to use.
    The portlet runs sucessfully.
    MY QUESTION: How can I make the value that the page creator enters permanent so that the url portlet automatically picks it up whenever the page is run?
    My purpose is to be able to add this portlet to several different pages and have it use the value that was defined for it when the page was created.
    I have read several articles, but I must be missing something. Any ideas are appreciated.

    Hi,
    You can make the following change in your provider.xml file.
    <inputParameter class="oracle.portal.provider.v2.URLPortletParameter">
    <name>csz</name>
    <isMandatory>false</isMandatory>
    <value>Set your value here</value>
    <displayName>What location do you want a map for (City, State or Zip)?</displayName>
    </inputParameter>
    By doing so, it'll pick up the value from the provider.xml and append the value to the parameter in the URL, so that the constructed URL will have the parameter value without having to customize the page.
    I hope this answers your question. Do feel free to come back here if you have any more problems.
    Ashish.

  • How to generate "constructor" for parameter object

    Hello,
    As part of my research project I need to find the "constructor" of a given
    parameter object.
    For example: Suppose we have the following method -
    public void int pop(Stack st) {
    //some code...
    I want to generate code that calls this method and its parameter with its
    constructor. Like -
    pop(new Stack(10));
    As you can see I need to return a valid instance of the parameter to the
    method (null wont do).
    I dont know what library or API to use for this purpose.
    Your help is highly appreciated.
    Thanks,
    Fayezin

    That's not a great example. If you have a Stack class, then pop() should be a method on that class, not some other class. And if you created a new Stack object, then presumably it would be empty, so popping it should cause an exception.
    Anyway, if you want to get the constructor of a class, use Introspection. There may be a better solution though, depending on what you're actually trying to accomplish.

  • Method parameter names

    I'm using jwsdp-2.0 and jdk1.4
    my question is
    How can i change method parameter names that generated on WSDL file ?
    when I'm trying to use (-g) option with javac command i have the same result.

    The parameter names aren't included in the bytecode.
    Therefor it is impossible to get them.
    Not with reflection, not with other tools.
    I'm afraid, but you'll have to scan the source.

  • How to run a webdynpro multiple times by passing different parameters each time and save webpages with parameter name?

    Hi Experts,
    I am a BW consultant and new to webdynpro. Not sure how to run RSO_METADATA_REPOSITORY multiple times and by passing different parameter values each time(either taken from an a standard BW table or user provided - anything is fine) and build web pages with parameter name. Need help with direction on where to start.
    Let me step back and explain my requirement:
    In BW we have an object called transformation.
    One way of generating documentation for transformation is highlight transformation and press F1. Then its documentation will be opened as a local web page.
    I need these web pages for all transformations. This is my requirment.
    I came to know that RSO_METADATA_REPOSITORY is beeing used to generate this web page.
    The web link is something like below:
    http://ubw05.xxx.com:8005/SAP/BW/DOC/METADATA/?page=BW_O_D&SystemID=BWPCLNT100&ClassID=TRFN&ID=0KHR6J65AIIUTCJZEC093K6XDFV909PB&objectVersion=A&sap-language=EN&sap-client=100
    When i run this link seperately(not by selecting transformation and pressing F1) i need to enter login credentials to BW system.
    My challenges is how do i pass login credentials and multiple transformation IDs to generate multipe web pages with each page named by transformation ID?
    WHere to start? First of all is RSO_METADATA_REPOSITORY Webdynpro JAVA or webdynpro ABAP or can i use anything?
    Since it is beeing opened as local webpages i assume it is webdynpro JAVa is that correct?
    Thanks,
    Raghu

    hello,
    might be a problem with the version you are using.
    regards,
    the oracle reports team

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • How to generate barcode name in scripts

    hi,
       how to generate barcode name in scripts.what is the procedure tell me brief with example.what is the use of barcodes

    Hi,
    You have to use spacila BARCODE printers for that.
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Check out the link for Adding Your Own Bar Code:-
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
    Check out the link for barcodes in SAP
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    Hope this helps.
    Regards,
    Richa

  • How to read a Oracle Forms PARAMLIST without knowing parameter names

    Hi All,
    Is there a way to read a Oracle Forms Paramlist on Oracle Forms (I mean read all parameters on it) without knowing any names of the parameters?
    I´d like to create a command line at run time and put on this command line all the parameters and its values, but I will never know the quantity of parameters and its names and values.
    Example of the command line I want to create:
    rwrun.sh batch=yes destype=file desname=/tmp/cmx_objetos.pdf desformat=pdf userid=***/***@*** module=/d01/oracle/VIS/apps/apps_st/appl/ecomex/fmx/cmx_objetos.rep parameter1=value1, parameter2=value2 ... paramaterN=valueN
    Thanks.

    As Francois said it is not clear if you are talking about Forms or Reports here. If Reports: check Get parameter name and type at runtime thread.
    But if you have no idea of the number or names of the parameters? How do you know which values to assign at all?
    Edited by: InoL on Jan 7, 2010 12:34 PM

  • Parameter names change when generating web service from WSDL

    Hi,
    I have a problem with BEAs web services that I'm hoping someone can help me with.
    I have a
    WSDL file, and from that I want to generate a web service implementation and a
    web service
    client. In the WSDL file, I have a message defined like this:
    <message name="someRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:base64Binary"
    name="data"/>
    </message>
    I generate the server using the server using the wsdl2service Ant task, I implement
    the necessary classes, and I deploy it. When I access the deployed web service,
    the parameter name has changed, from "data" to "bytes". If I access the WSDL file
    of the deployed web service, it says:
    <message name="someRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:base64Binary"
    name="bytes"/>
    </message>
    This happens for all parameters, string parameters are renamed to "string", base64Binary
    parameters are renamed to "bytes", etc...
    This poses a problem to me, because if I generate a web service client from the
    original WSDL file, it will not be able to talk to my web service. Is there any
    way of forcing a web service generated from a WSDL file to keep the parameter
    names of the original WSDL file?
    Any help in this is greatly appreciated.
    Regards,
    Petter

    From a quick look of your WSDL, it seams that you are mixing document-literal-bare and document-literal-wrapped flavor of web services. WSA may be able to do a better job at working around this mixed flavors than JDeveloper.
    If you have hand crafted this WSDL, I would recomend that you spend some time looking at the way WSDL are generated, with the java-first mode (or bottom-up), then author the WSDL you need for the final service.
    Here are sample of bare-style :
    <xsd:element name="getPupilAddressResponse" type="xsd:string"/>
    <xsd:element name="getPupilAddressRequest" type="xsd:int"/>
    Wrapped will looks like that:
    <xsd:element name="getSENLevelResponse">
    <xsd:complexType>
    <xsd:sequence maxOccurs="1" minOccurs="1">
    <xsd:element name="LevelDetails" type="tns:SENLevelRecord"/>
    <xsd:element name="RecordCount" type="xsd:int">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    Hope this helps,
    Eric

  • How to make sure that schema name is not included with generated sqls

    How to make sure that schema name is not included with generated sqls with tableadapter wizard.
    What should I use? Oledb, ODT.NET, where can set that I want "pure" sqls, not schemas, not ", or anything like this
    I want
    "Select a,b from t1" ,not "select "a","b" from schema.t1"
    Also schema name is put in all parameters, all over the place... What if schema name changes. (b1test to b1prod)
    . I now manually edit XML files of dataset. It works but....
    thanks

    The full hardware :
    Processor Intel core due 3.00 MHz
    RAM:1.5GB
    psu:650 Watt (but i baught i cheap one so it may be actually about 400 watt)
    HD Disk:160 GB
    But about the power supply if it not able to run the VGA card ,Is it will not show any screen or it will not able to run the computer??

  • How to generate an Author Index by Proper Name in CS4

    Hello,
    Mac/OS 10.5.8 CS4
    I'm working on a book and I need to generate an Author Index by Proper Name first and than First Name and Initials...
    The HELP menu says it can be done, but I don't undertand the instructions. How do I choose the Proper name shortcut? It says:..
    "Using an indexing shortcut, you can quicklyindex individual words, a phrase, or a list of words or phrases.Adobe InDesign recognizes two indexing shortcuts: one for standardindex entries; the other for proper names. The proper name shortcutcreates index entries by reversing the order of a name so it isalphabetized by the last name. In this way, you can list a namewith the first name first, but have it appear in the index sortedby last name. For example, the name James Paul Carter would appear in the index as Carter, James Paul.
    To prepare a list for indexing, separate each item you want to be indexed with any of the following: a return, a soft return (Shift + Return key), a tab, a right-indent tab (Shift + Tab), a semicolon, or a comma. The indexing shortcut adds a marker in front of each entry and places all the items into the index.
    In the document window, select the word or words you want to index.
    Do one of the following:
    For standard words or phrases, press Shift+Alt+Ctrl+[ (Windows) or Shift+Option+Command+[ (Mac OS).
    For proper names that you want indexed by the last name, press Shift+Option+Command+] (Mac OS).
    An index marker using the default settings is added at the beginning of the selection or to the beginning of each item selected."
    Any ideas how it's done?
    Appreciate the Help.
    José

    I GOT IT!... I did not notice the "]" at the end. Crazy!!!!

  • How can I get parameter name?

    ODatabase odb("test", "scott", "tiger");
    OParameterCollection params = odb.GetParameters();
    -------> and next how can I get parameter name?
    I hope get stored procedure parameter names and settiing parameter Add just like below.
    Plz tell me how can I get parameter name?
    I'm Korean, and my english is poor. sorry : )
    // add a parameter named 'DEPTNO'
    params.Add("DEPTNO", 20, OPARAMETER_INVAR, OTYPE_NUMBER);
    // add a parameter named 'EMPCURSOR'
    params.Add("EMPCURSOR", "", OPARAMETER_OUTVAR, OTYPE_CURSOR);
    //Execute the SQL statement
    odb.ExecuteSQL("BEGIN Employee.GetEmpData (:DEPTNO, :EMPCURSOR); END;");

    ok, alright. I'm trying to write a program to easily test EJBs with a user giving input and directly seeing the results of function calls to the Bean. The user gives the JNDI name of the EJB, I instantiate the bean, give the user a list of function calls from the bean, and then he/she chooses the function they want to execute and give input of the parameters values they want. Everything is done remotely and at runtime, and the only real problem is that the user only sees "myFunc ( String )" and it would be confusing if there are several parameters of the same type.
    Yes, I do realize there are other ways to test, I was developing this to try a new method that I thought could be beneficial to me.

  • How to control the call to a data control using portlet parameter

    hi,
    i'm using a web service data control on my portlet application. I'd like to know if there's a way where in the data control will not be called when the portlet is loaded,unless the portlet parameter is specified.
    thanks in advance!
    Rian

    thanks Yannick!
    Here's what I did
    1. Create a web service proxy
    2. Create a java class that will manually call the web service (instantiate the service and port first?)
    - Can I retrieve the portlet parameter in this class?
    3. Create Data Control out of the POJO class
    - Does this mean I have to code setters/getters inside Java class (for the input and output of web service) in order for me to put the fields onto my portlet?
    Given your sample, am i understanding it correctly that once it's converted to a data control, you'll drag the getUserList method onto the page as parameter form?
    ** EDIT***
    it's now working. I have a POJO that will call the service proxy and then I have a Bean that will call the POJO method. I created a Data Control out of the POJO class as well,so I can place elements in my page using drag and drop of POJO's methods/variable.
    thanks a lot for your help
    Rian
    Edited by: rian on Dec 28, 2010 11:24 AM

  • Ref Cursor - how to access through parameter name

    Hi,
    I'm using the below table and sample data. The below script named 'Script1' works well, my concern is values for the first and second parameters need to be used for the thrid and fourth one as well.
    When I try with 'Script2' it gives "ORA-01008: not all variables bound ORA-06512: at line 17" error. I know Paramterized cursor can handle this effecively, since it is a dynamic SQL, I need to use from a parameter table, I don't have any control over the number of parameteters, parameter name, type and other things. So, I cannot go for parameterized cursor.
    As of now, for my requirement, Script1 works fine, is there any way to make Script2 to work as well, I need to pass paramters by name, not by position, please give your suggestions, thank you.
    CREATE TABLE T1
    F1 NUMBER(5),
    F2 VARCHAR2(100),
    F3 DATE
    Insert into T1
    (F1, F2, F3)
    Values
    (1, 'One', TO_DATE('08/02/2012 07:43:34', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T1
    (F1, F2, F3)
    Values
    (2, 'Two', TO_DATE('08/02/2012 08:15:24', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T1
    (F1, F2, F3)
    Values
    (3, 'Three', TO_DATE('08/02/2012 08:16:34', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    Script1:
    declare
    TYPE t_ref_cursor IS REF CURSOR;
    v_cursor t_ref_cursor;
    v_query_str varchar2(3000);
    v_f1 number(5);
    v_f2 varchar2(100);
    v_f3 date;
    begin
    v_query_str := 'SELECT f1, f2, f3 from t1 where f1 = :p1 and f3 = to_date(:p2, ''DD-MON-YYYY hh24:mi:ss'') union ';
    v_query_str := v_query_str || 'select 1, ''c1'', sysdate from dual where not exists (select 1 from t1 where f1 = :p3 and f3 = to_date(:p4, ''DD-MON-YYYY hh24:mi:ss''))';
    --dbms_output.put_line(v_query_str);
    open v_cursor for v_query_str using 1, '02-AUG-2012 07:43:34', 1, '02-AUG-2012 07:43:34';
    loop
    fetch v_cursor into v_f1, v_f2, v_f3;
    exit when v_cursor%notfound;
    dbms_output.put_line(v_f1 || ' ' || v_f2 || '' || v_f3);
    end loop;
    dbms_output.put_line('rowcount ' || v_cursor%rowcount);
    close v_cursor;
    end;
    Script2:
    declare
    TYPE t_ref_cursor IS REF CURSOR;
    v_cursor t_ref_cursor;
    v_query_str varchar2(3000);
    v_f1 number(5);
    v_f2 varchar2(100);
    v_f3 date;
    begin
    v_query_str := 'SELECT f1, f2, f3 from t1 where f1 = :p1 and f3 = to_date(:p2, ''DD-MON-YYYY hh24:mi:ss'') union ';
    v_query_str := v_query_str || 'select 1, ''c1'', sysdate from dual where not exists (select 1 from t1 where f1 = :p1 and f3 = to_date(:p2, ''DD-MON-YYYY hh24:mi:ss''))';
    --dbms_output.put_line(v_query_str);
    open v_cursor for v_query_str using 1, '02-AUG-2012 07:43:34';
    loop
    fetch v_cursor into v_f1, v_f2, v_f3;
    exit when v_cursor%notfound;
    dbms_output.put_line(v_f1 || ' ' || v_f2 || '' || v_f3);
    end loop;
    dbms_output.put_line('rowcount ' || v_cursor%rowcount);
    close v_cursor;
    end;
    /

    This link shall answer your Question. PL/SQL Dynamic SQL.
    If it had been an Anonymous Block, your code would work through.
    Please see demonstration below:
    create or replace procedure emp_data (dep_id    number, sal   number, emp_id    number)
    is
      l_cnt   number;
    begin
      select count(*)
        into l_cnt
        from hr.employees
       where department_id = dep_id
         and salary >= sal
         and employee_id > emp_id;
      dbms_output.put_line('Count :: ' || l_cnt);
    end;
    declare
      l_cnt           number;
    begin
      execute immediate 'begin emp_data(:1, :2, :2); end;' using 20, 100;
    end;
    anonymous block completed
    Count :: 2
    --Trying the Similar example as in your OP.
    --Execute the same Select statement as in emp_Data with Bind Variables;
    declare
      l_cnt           number;
    begin
      --execute immediate 'begin emp_data(:1, :2, :2); end;' using 20, 100;
      execute immediate 'select count(*)
        from hr.employees
       where department_id = :1
         and salary >= :2
         and employee_id > :2' into l_cnt using 20, 100;
      dbms_output.put_line('Count :: ' || l_cnt);
    end;
    Results in error :- ORA-01008: not all variables bound

Maybe you are looking for