Set and read page parameter using a java portlet

I created a portlet that takes a parameter. I wantt his parameter to be set by the admin in the page parameter section. The portlet that I crated has a parameter. In the providers it has the following:
<inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>param</name>
<displayName>displayParam</displayName>
</inputParameter>
However, when I go to the page propertie/parameter, I can "bind" a parameter. How can I do that?
Thanks,
Marcelo

Marcelo,
This was what I've given you above...
From 7.1.3 Passing Parameters and Submitting Events jump to Section 2.12, "Public Portlet Parameters Support".
Public portlet parameters:
You can use a public portlet parameter to pass a value to a portlet. Using portlet parameters, the information that is displayed in a portlet can be specific to a particular page or a user. Portlet parameters are created by the portlet developer and are exposed to the page designer, through the user interface. After adding a portlet to a page, page designers can assign values to the public portlet parameters to make the information displayed in the portlet specific to the page.
Page designers can assign values to public portlet parameters by providing a specific value (constant), a system variable (for example, the portal user name), or a page parameter. At run time, the portlet receives the values from the sources specified. In this way, page designers have complete control over the source of the parameter, whereas you have complete control over how the data is used after it is transmitted to the portlet.
...and in 7.1.3 Passing Parameters and Submitting Events as assumption is "You have followed through and understood Section 6.3.2, "Building PDK-Java Portlets".
This why I've said to read it carefully... I hope this helps you further...
Cheers,
Pedro.

Similar Messages

  • This is regarding CBMA in SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the mails to Business workplace inbox in ECC.

    This is regarding CBMA in single stack SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the alert mails to Business workplace inbox in ECC.
    So I need to set up PI to redirect mails to ECC Business workplace user inbox (sbwp). From here rules are set up & routed per distribution list.
    Please guide me how I can achieve this requirement.

    Hi,
    yes, it is a little bit different. This is the issue.....  
    But I am not sure if your links will help:
    1) /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    is about a different solution. I do not need to count the number of lines of the source message.
    And the second variable is about concat line by line from unbound node to unbound node.
    My issue is:
    Souce:
    Message line (0...unbound) ! ! ! ! ! ! ! !
    .    ResultLine   (1..1)
    Mapping:
    =>   ResultLine1
           ResultLine2
           ResultLine........          => into UDF to an element  (1..1) in one mapping operation.
    So that all "ResultLine"s are included.
    The result is explained in the given link for Mail attachment with UDF.
    So I am not sure how to use this thread for my issue.
    In the comments of that blog Christoph Gerber writes that the new variable feature can only handle single values.
    So it is not suitable for my purposes as I have a list of values here that needs to be moved into the target message field.
    2) http://wiki.sdn.sap.com/wiki/display/Java/UsingEditJavaSectioninMessageMapping
    shows where to find the button "Java section" which is not available here in 7.1
    3) /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
    too is about the nice little button for Java Section that is no longer existing on PI 7.1 screen for mappings.  
    So my issue is: How to replace the Java section function with global variables in PI 7.1?
    Best regards
    Dirk

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

  • How to set a page parameter using javascript ?

    Hi:
    i'd like to set page parameter with a value taken from a textbox when clicking a button using javascript code.
    i mean, i have a textbox and a button using javascript and i want to take the value from the textbox and when onClick event happens set that value to the page parameter. How can i do this????
    Thanks.
    Best regards. Urko.

    Hi,
    Can you please elaborate your requirement. May be some better ways can be suggested. Also please mention which component you are using.
    Thanks,
    Sharmila

  • Set encoding to page footer using HSSF?

    Dear everyone
    I have a problem when i output excel file using HSSF. i don't know how to set 'UTF-16' encoding to page footer. Please help me, thanks a lot!

    Marcelo,
    This was what I've given you above...
    From 7.1.3 Passing Parameters and Submitting Events jump to Section 2.12, "Public Portlet Parameters Support".
    Public portlet parameters:
    You can use a public portlet parameter to pass a value to a portlet. Using portlet parameters, the information that is displayed in a portlet can be specific to a particular page or a user. Portlet parameters are created by the portlet developer and are exposed to the page designer, through the user interface. After adding a portlet to a page, page designers can assign values to the public portlet parameters to make the information displayed in the portlet specific to the page.
    Page designers can assign values to public portlet parameters by providing a specific value (constant), a system variable (for example, the portal user name), or a page parameter. At run time, the portlet receives the values from the sources specified. In this way, page designers have complete control over the source of the parameter, whereas you have complete control over how the data is used after it is transmitted to the portlet.
    ...and in 7.1.3 Passing Parameters and Submitting Events as assumption is "You have followed through and understood Section 6.3.2, "Building PDK-Java Portlets".
    This why I've said to read it carefully... I hope this helps you further...
    Cheers,
    Pedro.

  • Unable To Pass Input Page Parameter Using PageDef File.

    Dear All,
    I am currently exploring task flows as I dont have that much knowledge in it.
    Here's my use case
    1. I setup a taskflow which has a Method Call and a View Activity in it.
    2. The method call is a default activity which just calls a web service.
    3. After execution, I just wanted to display the result of the method.
    I used input page parameters to pass data between the method call and the view activity.
         (I passed the data by accessing the pagedef file directly. I know I can do it using pageflowscope..but this is
         my self exercise so that I could understand ADF fully );)
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="ManageEmployeeTaskflow">
        <view id="viewEmployee">
          <page>/viewEmployee.jsff</page>
          <input-page-parameter>
            <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
            <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
          </input-page-parameter>
        </view>
        <method-call id="EmployeeSetup">
          <method>#{bindings.EmployeeSetup.execute}</method>
          <outcome id="__12">
            <fixed-outcome>viewEmployee</fixed-outcome>
          </outcome>
        </method-call>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>Problem is, when I display the data. Nothing is being displayed.
    <af:inputText value="#{bindings.name.inputValue}"
                      label="#{'Name'}"/>          I debug the taskflow and the <from-value> really has a value, but I am not sure why it cant be passed to next pagedef.
    Any idea please?
    Edited by: Marky on May 15, 2011 11:25 PM

    Hi,
    I've been thinking... Is this way of passing parameters not possible?
          <input-page-parameter>
            <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
            <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
          </input-page-parameter>Thanks.

  • Retrieve and Read XML Files using Oracle6i Forms

    Dear all .. i have some problem here: How can i retrieve and read a XML files using Oracle6i Forms? What should i do? Thanks - ASAP -

    Several ways - Pick up a copy of the Oracle XDK off of OTN. This provides Java and PL/SQL toolkits for dealing with XML files.
    The PL/SQL one would be in the Database, so you might have to use the Java one of you need to do it on the Forms machine.
    You can use the Java Importer in 6i to create PL/SQL wrappers that you can call from forms into the Java XDK APIs.
    Or of course you can just use the TEXT_IO package to read the XML as a text stream and parse it in your own PL/SQL code...

  • How to set and read cookies in adobe edge animate

    Hi all,
    I need help in writing and reading cookies using adobe edge, is there is a way to do it I serached the internet but I did not find something simlliar?
    thanks in advance

    To test with this plugin in a simple HTML page, you'll need to also include jQuery itself.
    For example:
    <script src="/path/to/jquery.js"></script>
    <script src="/path/to/jquery.cookie.js"></script>
    </head>
    There are a few different ways that you could load the jQuery.cookie plugin into your composition. Regardless of the method, I recommend loading it at the compositionReady trigger. This is the trigger that fires after the composition is ready to play.
    This blog post shows one way to load in external .js files:
    http://chrisgannon.wordpress.com/2012/09/01/loading-external-javascript-in-adobe-edge-anim ate-the-easy-way/
    Here's how you would be applying this method for the jQuery.cookie plugin:
    Then enter in code similar to this:
    yepnope(
        nope:[
          '/path/to/jquery.cookie.js'
      complete: init
    function init() {
    //create your cookie's initial values here
    That would load in the jQuery.cookie plugin.
    It would then be up to you to create/manipulate the cookie's data as needed for your purpose. Most likely, you would scroll to a point in the timeline where you want data to be changed and/or read, add a trigger, then insert the necessary code.

  • Que about setting and reading bitsssss

    Respected Sirs And Madams....
    Could any body tell me :
    " What is need of setting and getting bits ,,, y they are used????  and how can any one able to use it  ???? "
    Warm Regards,
    Nirav Parekh

    Do a search on Core Center on the Overclockers and Modding forum and you'll find a concensus of opinion.
    Some people use it. I don't like it. Most other people don't like it. I'd advise not using it and using BIOS.
    Your FSB is quad-pumped (4x) to get your CPU frequency base frequency, hence the FSB 200 for a 800 MHz base frequency. Your memory is DDR (dual data rate - 2x) so for 200 FSB you get a memory frequency of 400 MHz.
    Things to try:-
    In BIOS
    Frequency/Voltage Control
    Dynamic Overclocking: Disabled
    Performance Mode: Slow
    CPU Ratio Selection: Locked
    DRAM Frequency: Auto
    Spread Spectrum: Disabled
    Adjust CPU Bus Clock (Mhz): 200
    DDR Clock(Mhz): 333 (Greyed out)
    Adjust AGP/PCI Clock(Mhz): 66.66/33.33
    CPU Vcore Adjust: No
    CPU Vcore: 1.5250V (Greyed Out)
    DDR Power Voltage: 2.70V
    AGP Power Voltage: 1.55V
    If you had to change Performance Mode to Slow, you will have to Save and Exit and then re-enter BIOS for all the following options to be available. If it was already Slow move straight to
    Advanced Chipset Features
    DRAM Timing Setting
    Configure DRAM Timing by SPD: Disabled
    CAS Latency: 3 Clocks
    RAS Precharge: 4 Clocks
    RAS to CAS Delay: 8 Clocks
    Burst Length: 4 Clocks
    Integrity Mode: Disabled
    With these settings we can start to overclock your system. SLOWLY increase the FSB (CPU Bus Clock) in increments of 5. Save and Exit. Test memory with MemTest. Boot into Windows and stress test (prime95). Once you start to get errors, back off 2 or 3 MHz.
    ALL OVERCLOCKING CARRIES A RISK OF COMPONENT DAMAGE OR FAILURE!!!
    IF YOU CAN'T AFFORD TO LOSE IT, DON'T DO IT.
    Your memory is likely to be the holding factor here, as it is only rated to 400 MHz!!!
    If you do decide to try it, let us know how far you get, we can advise on further optimisation.
    Hope this helps a little. Good Luck.

  • How to set and read pixels?  AffineTransform?

    I understand how the AffineTransform class works but I don't see a way to set the color of and read the color of individual pixels in my JPanel. Any help will be apppreciated.

    you can't do that with AffineTransform. AffineTransform let's you translate/rotate/shear/scale before rendering, but you don't have access to pixel values.
    Try instead creating an empty bufferedimage, draw into it whatever you want and then you have access to the pixel values via bufferedImage.getRGB()/setRGB().
    or you get more basic and manipulate the WriteableRaster of your image directly.

  • Writing the file using Write to SGL and reading the data using Read from SGL

    Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing.  I am attaching a zip file which contains five files.
    1)      Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
    2)      Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
    3)      Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
    4)      Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
    5)      Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
    I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
    Attachments:
    Krishna_Files.zip ‏552 KB

    The binary data file has no time axis information, it is pure y data. Only the LVM file contains information about t(0) and dt. Since you throw away this information before saving to the binary file, it cannot be retrieved.
    Did you try wiring a 2 as suggested?
    (see also http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=925 )
    Message Edited by altenbach on 07-29-2005 11:35 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Retrive_BINARY_DataMOD2.vi ‏1982 KB

  • Difference between Next Set and Next Page

    Hi,
    does anyone know what is the difference between Next Set Template and Next Page Template in a Report Template?
    Thanks,
    Gari.

    When you have a report with say 15 pages you can split it into a set like:
    page 1 -5 , 6 - 10, 11 -15
    When you select the next set HTML DB wil go from
    1,2,3,4,5 [next set] to 6,7,8,9,10 [next set]
    When you go to the next page is just shows the next page. You can go from page 5 to 6 with the next page and still end up on the next set :-).
    Chris

  • Passing value to a dynamic page from a pdk-java portlet

    Hi everyone.
    I'm quite new to portlets, so I'll try to present my problem as well as I can:
    I have a PDK-java portlet in which I read some information (like name, location) about user.It works ok.Now I want to use that infomation in another portlet, which is build as a Dynamic Page ( with portletbuilder). How can I do this? I was thinck at session variables, but....
    Thanks a lot

    have you ever got any response??
    i'm facing the same problem.
    thanks

  • How to set and read a variable in a UIX page

    In a similar fashion to how JSP works, I need to set a variable if a certain condition occurs at a specific processing point in my UIX page, and then conditionally create output in the page based on the value in my variable. How can this be done in UIX?
    Brad

    Hi ,
    Decalring the Varible :
    <?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>
    Do the calculation :
    <?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+ XML columnname)?>
    Display the Variable :
    <?xdoxslt:get_variable($_XDOCTX, 'var')?>
    Declare the varaible before your loop starts.Do the calculation part inside the loop so for each row it will be updated.
    Display the results where you want using the form field and place the display varaible syntax.
    Hope this will helpful for you.
    Thanks,
    Ananth

  • How to write to stdout and read from stdin using unix pipe = '|'

    Hi,
    How can I read the output written by 1 program to stdout as the input
    (from stdin) to another program?
    Example:
    $java pgm1 | pgm2
    pgm1's output is of multiple lines with tab delimited words in each line. I need to know when each line ends as well.
    Thanks,
    -Ambika

    I tried reading from System.in - using a Buffered reader and the readline() method as follows:
    BufferedReader buffIn = new BufferedReader(new InputStreamReader(System.in));
    while(!(get= buffIn.readLine()).equalsIgnoreCase("")){
    System.out.println("get:<"+get+">");
    but unless I explicitly use the keyboard (type), it doesn't seem to be able to read input.
    I also tried to use
    Properties.load(System.in) - which is really what I'd love to be able to do to reduce processing on my end - but no luck there either!
    Is there anything I need to set the System.in or something?

Maybe you are looking for

  • Error message with variable

    Is it possible to include a variable in message box? For example, i have a variable v_name and i want to include it in my error message. MESSAGE i001.

  • What is the average lifespan of a macbook pro?

    I'm really curious because I want my macbook to be useful for a couple of years. I just purchased the newest model out. Does anyone know or have experience of their long life macbook pro's? How long has anyone's macbook pro lasted? And I don't mean b

  • Cash Income and Cash Expense report

    Hi all,         i need a report where i can get cash income report based on payment means i.e. thorough cheque, through credit card, cash and also cash expense report based on cheque and cash. I tried to make a query but it doesnt give any result nor

  • Setting dynamic widths for textfields in as3?

    I have 3 textfields. they're in a sprite container. 1. date 2. pipe_mc movieclip 3. title field. I need to set it so that the textfield/mc/textfield;s x property changes dynamically when a shorter or longer date gets added into the field, via XML. He

  • AIR App in Mac OS X's menu extras

    In Windows we can create a AIR app which can sit in SystemTray On MAC :Can we place a AIR app in MAC OS X's menu extras??? In any refrences are there, please do share. Thanks in Advance. Vijay