Set parameters from event

I need set render parameters from event. From backing file cant find how set render paramters.

Hello,
I assume you are using JSR168 portlets and trying to set the render parameters when you receive an event? If so, you can't do that from the backing file; you will need to handle the event in your portlet instead of a backing file. For example, the following code would go in your portlet's java source:
import javax.portlet.ActionResponse;
import javax.portlet.ActionRequest;
import com.bea.netuix.events.Event;
public class JavaPortlet extends GenericPortlet
// This method will receive the event. It can have any name but must
// have this signature
public void handleEvent(ActionRequest request, ActionResponse response,
Event event)
// Event handling code goes here
// To set a render parameter, make calls like this:
response.setRenderParameter("paramName", "paramValue");
Then, in your .portlet file instead of a tag for "invokeBackingFileMethod" use the tag "invokeJavaPortletMethod" and specify the name of the method to call, just like the "invokeBackingFileMethod" did.
Kevin

Similar Messages

  • [WPF] AutoCompleteBox: set parameters from code behind

    Hi,
    I'm using AutoCompleteBox from Codeplex.com
    I would set some parameters from code behind... 
    In XAML, I defined namespace:
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
    After using AutoCompleteBox:
    <toolkit:AutoCompleteBox
    x:Name="myAutoComplete"
    ItemsSource="{Binding Source={StaticResource DomainDataViewModel}, Path=SampleProperties, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
    SelectedItem="{Binding Name}"
    ValueMemberPath="Name"
    ItemTemplate="{StaticResource PropertyBoxItemTemplate}"
    MouseLeave="PropertyAutoCompleteBox_MouseLeave"
    >
    </toolkit:AutoCompleteBox>
    If I would set any parameter from code behind, in my.xaml.cs, I not found myAutoComplete, why?
    Thanks.

    >>I inserted the AutoCompleteBox as DataGridTemplateColumn.CellEditingTemplate.
    Then you cannot access it directly from the code-behind as I told you.
    >>I would apply a FilterCustom and a ItemFilter.
    You could handle the Loaded event for the AutoCompleteBox and set any of its properties in there:
    <toolkit:AutoCompleteBox
    x:Name="myAutoComplete"
    Loaded="myAutoComplete_Loaded"
    ItemsSource="{Binding Source={StaticResource DomainDataViewModel}, Path=SampleProperties, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
    SelectedItem="{Binding Name}"
    ValueMemberPath="Name"
    ItemTemplate="{StaticResource PropertyBoxItemTemplate}"
    MouseLeave="PropertyAutoCompleteBox_MouseLeave"
    >
    </toolkit:AutoCompleteBox>
    private void myAutoComplete_Loaded(object sender, RoutedEventArgs e)
    AutoCompleteBox myAutoComplete = sender as AutoCompleteBox;
    //set properties or do whatever here...
    myAutoComplete.ValueMemberPath = "Name";
    dynamic dataObject = myAutoComplete.DataContext;
    //access any properies of the data object in the DataGrid...
    How to do filtering is a completely other question that should be asked in a new thread though. It has nothing to do with your original question.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Set Context From Event Handler in Web Dynpro ABAP

    Hi,
    I am passing some parameters when navigating from one view to another. Now I would like to set the context of the second view. How can I achieve that in Web Dynpro ABAP?
    Thanks.
    / Elvez

    I figured out ...
    element->set_attribute(
           exporting name = `NAME`      
                     value = value ).

  • [Solved] systemd-sysctl.service failed to set parameters from 99-sy...

    $ cat /etc/sysctl.d/99-sysctl.conf
    # Protection from the SYN flood attack.
    net.ipv4.tcp_syncookies = 1
    # Disable packet forwarding.
    net.ipv4.ip_forward = 0
    # Tweak those values to alter disk syncing and swap behavior.
    vm.vfs_cache_pressure = 1000
    vm.swappiness = 0
    # USB Speed
    vm.dirty_ratio = 5
    vm.dirty_background_ratio = 3
    # KDE
    fs.inotify.max_user_watches = 524288
    $ cat /proc/sys/vm/dirty_ratio
    10
    $ cat /proc/sys/vm/dirty_background_ratio
    5
    but
    $ cat /proc/sys/vm/swappiness
    0
    $ cat /proc/sys/vm/vfs_cache_pressure
    1000
    Only restarting of systemd-systct.service helps.
    $ sudo systemctl restart systemd-sysctl.service
    $ cat /proc/sys/vm/dirty_ratio
    5
    $ cat /proc/sys/vm/dirty_background_ratio
    3
    what am i doing wrong?
    Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode
    Last edited by Perfect Gentleman (2013-09-20 00:34:44)

    Perfect Gentleman wrote:Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode
    A more permanent solution is to mask that file
    mkdir -p /etc/pm/power.d
    touch /etc/pm/power.d/laptop-mode
    which will not get written on update or reinstall. (Not than an update to this package seems at all likely but just in case.)

  • Is there any way to set a calendar event in MS Outlook from Oracle Forms

    I need to set and delete events in MS Outlook from an Oracle Form (version 10gR2).
    Is there any way to accomplish this?
    Thanks

    You will need to use OLE on the client, which would further require the use of WebUtil. Here (below) are a couple of MS examples that you would need to convert to pl/sql. There are a variety of Oracle notes which discuss reading and writing to MS Word and Excel. These can likely be used as a starting place to talk to Outlook. There is a WebUtil demo which includes an example of how to write to MS Word. It can be found on the WebUtil home page:
    http://www.oracle.com/technetwork/developer-tools/forms/webutil-090641.html
    <li> http://support.microsoft.com/kb/160502
    <li> http://support.microsoft.com/kb/170262

  • I live in Canada.  Each time I travel to the US, I lose all calendar entries.  I have to erase all data, then restore from an iCloud backup.  Tedious.  iPhone 4, iOS 7.1, sync set to all events.  Any suggestions?

    I live in Canada.  Each time I travel to the US, I lose all calendar entries.  I have to erase all data, then restore from an iCloud backup.  Tedious.  iPhone 4, iOS 7.1, sync set to all events.  I only use the default calendar.  Do I have an incorrect setting?

    I did find another point worth mentioning. 
    I use my iPhone 4 with a corporate Exchange email account.  I had deleted the account from my phone just before I did this backup/restore process...and I thought my battery drain was much, much better (if not outright fixed). 
    Later in the day, after seeing my battery life improve to near-new behavior, I re-added my Exchange mail account.  Considering I have 1 yahoo account and 3 gmail accounts, the Exchange account adds a 5th email account.
    What happened?  Battery drain back to "worst case".  Removing or re-adding the Exchange account is like toggling between decent and terrible drain conditions.
    Bottom line is that I re-added a couple dozen applications and battery life didn't change.  By far, the Exchange account drains the battery worse than any other app and setting.  This account must be polling very frequently and since people tend to send very large file attachments to that account, perhaps those effect the battery drain even though I have the account set to not download attachments.
    Anyone running Microsoft Exchange might be able to confirm what I see?  If so I can open an enterprise ticket with Microsoft and bug them on this issue.

  • I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vecto​r signal analyzer ) to measure such as RF frequency or power on the instrument​? Thanks

    I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vector signal analyzer ) to measure such as RF frequency or power on the instrument?
    I just want to set something on the front panel that will execute the Serial parameters first and then pass these settings to vector signal analyzer
    Thanks
    Phong

    You transfer data with wires.
    Frankly, I'm a little confused by your question. I can't think of any reason why you would want to pass serial parameters (i.e. baud rate, parity) to a GPIB instrument. Please explain with further detail and attach the code.

  • Passing value from event to workflow container

    Hi experts,
    I have triggered a workflow using SAP_WAPI_CREATE_EVENT fm. I have declared 3 parameters in the BO for the event. Similarly i have created the 3 parameters in workflow container to receive the values.When the user clicks a button i trigger the workflow using the fm. I have to pass values of these 3 parameters to 3 parameters of the workflow container. Can you please tell me how should i pass the value from event to workflow container. Is there any way i can set workflow container parameter values while calling the fm itself.

    INPUT_CONTAINER     LIKE     SWR_CONT     Input container (name-value pairs)
    The above tables parameter is used to transfer the values from FM to workflow.
    declare a internal table of type SWR_CONT
    DATA:
    lt_cont TYPE STANDARD TABLE OF swr_cont,
    ls_cont TYPE swr_cont.
    ls_cont-element = 'ELEMENT NAME 1'.
    ls_cont-value = <Variable which holds the value>
    APPEND ls_cont TO lt_cont.
    ls_cont-element = 'ELEMENT NAME 2'.
    ls_cont-value = <Variable  which holds the value>
    APPEND ls_cont TO lt_cont.
    ls_cont-element = 'ELEMENT NAME 3'.
    ls_cont-value = <Variable  which holds the value>
    APPEND ls_cont TO lt_cont.
    pass lt_cont to the parameter INPUT_CONTAINER

  • Getting parameters from multipart request

    I'm using org.apache.tomcat.utils.fileupload to parse uploaded files from a multipart form, but unfortunately I can't seem to get normal parameters from such a form with request.getParameter(). Is there a way to use both together?

    You might already have solved your problem, but you may find this MultipartFilter useful too: http://balusc.blogspot.com/2007/11/multipartfilter.html
    It automatically detects multipart/form-data requests and sets the plain vanilla form parameters back in the ParameterMap of the HttpServletRequest and sets the files as attributes of the HttpServletRequest. This way there is no need to worry about the form encoding type inside the servlet.

  • Crystal Report - problem with passing parameters from J2EE app

    i'm trying to pass a few parameters from my java application to a crystal report using the code below:
    ParameterField pfield1 = new ParameterField();
    ParameterField pfield2 = new ParameterField();
    Values vals1 = new Values();
    Values vals2 = new Values();
    ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
    ParameterFieldDiscreteValue pfieldDV2 = new ParameterFieldDiscreteValue();
    pfieldDV1.setValue("1056");//dform.getSelectedPeriod());
    pfieldDV1.setDescription("termId");
    vals1.add(pfieldDV1);
    pfield1.setReportName("");
    pfield1.setName("@p_termId");
    pfield1.setCurrentValues(vals1);
    fields.add(pfield1);
    // check here for null condition otherwise will throw nullpointerexception
    pfieldDV2.setValue("elect");
    pfieldDV2.setDescription("allocType");
    vals2.add(pfieldDV2);
    pfield2.setReportName("");
    pfield2.setName("@p_allocType");
    pfield2.setCurrentValues(vals2);
    fields.add(pfield2);
    this report calls a stored procedure (sql server). the report displays the data but the same is not the case when i call ity from my java application. with a single parameter it works fine (even though i get a "Some parameters are missing values" ERROR on the console. But when i pass, say 2 parameters, it give me the above error first and then "JDBC Error: Parameter 2 not set or registered for output"
    Can anyone bail me out of this one?
    thanks,
    ptalkad

    I don't know about naming conventions, but could the @ signs in the variable names cause a problem?
    How have you set up the mapping in Crystal?
    Is this parameter 2 an "out" parameter returning a value?
    What version of Java are you using?
    Version of Crystal?
    What JDBC driver?

  • How do I set repeating workday events in my calender? There is no option for custom.

    How do I set repeating workday events in my calender? There is no option for custom.

    The built in Calendar app has very limited repeat options. You might want to try an app like Week Cal which has a much more robust repeating event selection. As it pulls from the same calendar database as the built in, there's no reentering of information required.

  • Passing parameters from a frame to another frame

    Hello All,
    I have a BSP page with 2 frames : header.htm and planning.htm
       <frameset rows="150,*" frameborder="0" border="0">
          <htmlb:documentBody >
                <frame style="border-right-style:solid;border-color:#333333;border-width:1px" src="header.htm" id="header" name="header" scrolling="no" noresize frameborder="no">
               <frameset  frameborder="0">
                    <frame style="border-right-style:solid;border-color:#A5B1BF;border-width:1px" src="planning.htm" id="planning" name="planning" scrolling ="yes">
             </frameset>
           </htmlb:documentBody>
       </frameset>
    1. I want to send parameters from header.htm to planning.htm when a button CREATE in header.htm is pushed.
    2. I also want to execute the code in OnInputProcessing of planning.htm at the same time (when the button in header.htm is push).
    Can someone help me please? I read many pots but i wasn't able to find a solution to my problem. I also have a look to HTMLB_SAMPLES, and SBSPEXT_HTMLB, but i didn't understand well.
    Thank you

    Hi,
    if I were you I´d better work with views and controller classes instead of pages with logic. In this way you don´t have to send parameters from page 1 to page 2 and you don´t have to trigger an event so that page 2 is called and method OnInputProcessing is executed.
    Change the type of your pages to views, create the controllers for each and the controller class(es) behind it. If your development is very complex I´d create a model class, so that variables and common method are available to all controller classes and pages.
    You have the advantage that you don´t have to hang parameters into the URL, which then must be read by page 2 when somebody presses button X in page 1. This method could be insecure, because it is easy to ready parameters from the URL by a hacker. Additionally, how do you expect to trigger an event in page 2 when the event really happens in page 1 ??

  • Photos in library missing from Events? I have a solution

    This is a continuation from an answered question here: https://discussions.apple.com/message/15830476#15830476, but with a new twist and a solution that I found myself. Hope it helps others:
    After doing a corrupt library rebuild, I noticed some photos missing from events but still existing in the library. Read the above discussion for full background then come back if you'd like.
    I found photos that I could see in "Photo" view but could not see in "Events" view. I even chose one particular photo by filename. When I searched for it while in "events" view, it appeared as the sole result but it did not have an event name above it like it should have (check this by searching for a photo by name while in "Events" view). It was just sitting there like a sad eventless orphan. So I grabbed that photo with my mouse pointer and dragged it over to the navigator bar and dropped it on "Events". And this worked! I now had a new event with only that photo in it and the event was named the same name as the photo. Now the photo was magically back in Events. Since this problem was occurring with a lot of photos we took over the last month and they were intermingled by date with other photos taken over the last month (from other cameras or imported from email attachments) that were correctly in "Events", then I went to the photo view, grabbed a whole bunch of photos, many of which were not in an event and some that were, and dragged them over to the "Events" item in the tree and dropped them on it. It gave me a warning like "These photos cannot be in two events at the same time so they will all be moved into a new event" with an option to "Cancel" or "Create". I hit create and oila, I had a new event that graciously adopted all the sad orphan photos and also kidnapped some photos from other events too. I just went in, reorganized them back to proper places (thank goodness they were all recent and there were only 250 or so and not 1000s) and I am happy. Provided this works in the long term, it was an interesting workaround for a bug that I don't know the cause and I'm glad to share with all of you.
    By the way, I'm using Snow Leopard and iPhoto 09' with all the lasted software updates on an Intel iMac Core 1 Duo.

    By the way, I was able to confirm now (I think) that all photos in the library are assigned to events by looking at the totals in "Photos" and matching it with the sum of photos and movies when "Events" is selected. Unfortunately, I didn't check to see if this was also the case before I did my fix, but if anyone is missing photos in Events that are definitely visible in the Photos view, please check these to sets of numbers and see if you can identify the discrepancy before applying my fix. That would be good proof of the bug.

  • 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.

  • The Informatica maps are not taking the parameters from dac

    Hi All,
    The Informatica maps are not taking the parameters from dac. We have tried setting the parameters at DAC level, task level. The parameter file is getting generated by DAC and has correct values as we expect. But when we run a full load from DAC, the initial date in Informatica is being taken as 1/1/1753. Do we need to specify the parameter file name at workflow level?
    Is there any setting that we are missing. Please guide us and let us know the steps we should take to make sure that the parameters that we set at DAC level get passed to the Informatica maps. Also mention this is happening only with dates and other parameters like data source num , soruce and target database information is getting passed to Informatica maps.
    The version of Informatica as 7.4.1 and dac version AN 328, Build date Aug 8 2007.
    Please Help me in this issue.
    Thanks in advance for all members.

    Hi Ananth.v
    Try to make sure that your parameter file's path in Infa is in-sync with the path of DAC files being generated.
    The date you are getting seems strange - which are your Source/Target DB platforms?
    In general take a look at [this thread|   http://forums.oracle.com/forums/message.jspa?messageID=3405906#3405906] , it may make some thing clearer for you.
    Hope it helps,
    Please post if you found a solution,

Maybe you are looking for