FirePartialAction event parameter

Hi, I'm a newbie, Thanks for your patience ...
I have a custom create rec page, there is an Item (SupplierCode) poplist with a firePartialAction, event name is "hoho", parameters I have defined "parm1" with value ${oa.CreateDetailVO1.SupplierCode}
In my Controller, processFormRequest I have the following code... just to see what I got from the parameter value,
if ("hoho".equals(pageContext.getParameter(EVENT_PARAM)))
String parmValue = pageContext.getParameter("parm1");
System.out.println("got parameter from firing event:"+parmValue);
When I run this page, the poplist is on the blank value, when I select a value 'A', it fire "hoho", but the parameter print out in the System.out.println msg is null, when I change the value to 'B', the "hoho" got fire again, with parameter value print out in the msg is 'A', when I change the value to 'C', hoho got fired again with value of 'B'.
Seems like the parameter value passed back is the old value? was it suppose to pass back with the old value? or did I do something wrong?

In the parameters of the firePartialAction, you must be passing some parameters to get the resultant values in the CO.
In general the format is ${oa.ViewInstance.AttributeName}
For your case try using ${oa.*current*.AttributeName}
This will give you the new value.

Similar Messages

  • Event parameter setting

    Hi All,
    I have a event DISPLAY of the BOR Object ZTESTBOR.
    The Event DISPLAY has a parameter 'Matnr' of type mara-matnr.
    Now i want to start a work flow when the event is triggered.
    So i have done the binidng in the worl flow.
    How can i pass a value say '1000001' to Matnr ( i.e the event parameter ) and then trigger the event so that the work flow container element can take the value in the container element so that i can use it in the WF.
    Can u suggest any FM's or documents where this could be found.

    This program might Help:
    REPORT ZTESTING1 .
    tables :
    ZOPM_OBJKEY.
    data :
    * object key
    objectkey type SYSUUID_C,
    objkey like sww_contob-objkey.
    * defining the event container..........................................
    data begin of event_container occurs 0.
    include structure swcont.
    data end of event_container.
    * workitem list
    data :
    t_wid like SWOTOBJID occurs 0 with header line.
    clear event_container.
    refresh event_container.
    CALL FUNCTION 'SYSTEM_GET_UNIQUE_ID'
    EXPORTING
    DCE_COMPATIBLE = 1
    IMPORTING
    UNIQUE_ID = objectkey.
    objkey = objectkey.
    clear objectkey.
    call function 'SWC_ELEMENT_SET'
    exporting
    element = 'CONTEXT'
    field = 'UAD'
    tables
    container = event_container
    exceptions others = 1.
    call function 'SWC_ELEMENT_SET'
    exporting
    element = 'SUBJECT'
    field = '3333'
    tables
    container = EVENT_CONTAINER
    exceptions others = 1.
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'ZPSKUMAR'
    objkey = objkey
    event = 'GENERIC'
    * CREATOR = ' '
    * TAKE_WORKITEM_REQUESTER = ' '
    * START_WITH_DELAY = ' '
    * START_RECFB_SYNCHRON = ' '
    * NO_COMMIT_FOR_QUEUE = ' '
    * DEBUG_FLAG = ' '
    * NO_LOGGING = ' '
    * IDENT =
    * IMPORTING
    * EVENT_ID =
    TABLES
    EVENT_CONTAINER = EVENT_CONTAINER
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF
    Hope That Helps
    Anirban M.

  • WD(ABAP) table as event parameter

    Is i possible to pass an inernal table as an event parameter. if so, how?

    Yeah, got it working.
    I made a schoolboy mistake of defining a database table instead of an internal table
    Thanks though.

  • A clarification about block# wait event parameter ....

    Hi ,
    In Oracle Database Reference of 10g (Part Number B14237-02) about the block# wait event parameter is pointed out ... :
    This is the block number of the block for which Oracle needs to wait. The block number is relative to the start of the file. To find the object to which this block belongs, enter the following SQL statements:
    select name, kind
    from ext_to_obj_view
    where file# = file#
         and lowb <= block#
         and highb >= block#;Can you give me a simple example of using the above sql statement.... as ext_to_obj_view object does not exist.....
    Many thanks ,
    Simon

    This view is created by $ORACLE_HOME/rdbms/admin/catclust.sql script (to be run by sys user).
    http://download-uk.oracle.com/docs/cd/B19306_01/rac.102/b14197/monitor.htm#RACAD718
    Nicolas.

  • Retrieve event and event parameter in event based background job

    Hi,
    I think it must be possible but I cannot find documentation of it:
    When a batchjob is triggered via an event (defined in SM62) how can I retrieve the event and event parameter from within the triggered job itself. We want to use the event parameter to trigger other batchjobs, but first we must be able to retrieve them...
    Thanks
    Tom

    Standard SAP triggers can be found in TCODE SM64, Background Processing events.

  • EVENT PARAMETER VALUES.

    Hi all!
    Cud anyone guide me as to how to pass values to the event parameters created by me in a BUSINESS OBJECT.
    To be more precise: I have created an event with some parameters in it in a Z-Object. Now thru Select query, want to assign values to the event parameters from DB-tables. But unable to access event parameters in the object-program thru object-(parameter-name).
    Cud anyone guide me as to how to do the same else any other way out?
    Regards,
    Sudipto.

    Hello,
    You can use the FM SWE_EVENT_CREATE to trigger the event.
    When calling you can use the tables parameter EVENT_CONTAINER to populate the event container.
    With the macro below you initialize the event container
    SWC_CREATE_CONTAINER event_contaier
    with the macro below you add/set elements to the container
    SWC_SET_ELEMENT event_container 'ELEMENT1' 'VALUE1'.
    This must be it...

  • Oracle.apps.gl.Journals.journal.post event parameter

    I have written a subscription on the oracle.apps.gl.Journals.journal.post event and it's raising fine and I would like to control this event's subscription to a particular set of books id instead of firing across all set of books. How can I send the parameter to my event subscription?
    Thanks,
    Srini C

    The note shows the raising the subscription, I have successfully generated the subscription but I need to know the how can I pass the set of books id to my custom subscription.
    Thanks,
    Srini C

  • Init.ora  EVENT parameter to trace processes?

    Thanks to all who read my question and offer suggestions!
    I have seen in a book the ability to trace individual background processes.
    It gave an example of adding the following 2 lines to the init.ora file:
    event = "10246 trace name context forever"
    event = "10500 trace name context forever"
    After stopping and restarting it creates trace files for the PMON and SMON
    processes in the Background_Dump_Dest folder.
    But my question... is there any reference chart anywhere that shows you what
    event numbers you would use for other background processes?
    I am running 8.1.7 on Windows 2000
    Thank you for your help!
    [email protected]

    Thanks Hemant again.
    Pasted from the link.
    <How the COMPATIBLE Initialization Parameter Operates
    The COMPATIBLE initialization parameter operates in the following way:
    It controls the behavior of your database. For example, if you run an Oracle Database 11g Release 2 (11.2) database with the COMPATIBLE initialization parameter set to 10.1.0, then it generates database structures on disk that are compatible with Oracle Database 10g Release 1 (10.1). >
    So eventhough the oracle version is 11.2.0.2.0 it works more or less like 10.1.0.2.Is my understanding correct?If so,then there is no point in upgrading oracle to 11.2 if this parameter has a lower value.Pls correct me.
    Thanks.

  • How to set Lov item property (Action type,event,parameter etc) in PR when page load

    Hi gurus
    I am new to OAF, First I need to explain my scenerio.
    I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list).
    for this i extended the controler and apply the changes, but in this case what heppen, It will effect only when i open the list (pop list) and click on more (Available in poplist) and it will open a new form and i select value from that form. But when I open the poplist and select the value from the same list rather going to more option (it does not open new form), then there are no effect. I though the issue with refreshing when selecting value from the same list.
    To resolving this issue what i did
    1. go to page == > the same LOV
    2. Change the Client Action properties (
         Action type  = fireAction
         event          = xxevent
        submit = true.
    After doing this when i run the page from my OAF enviroement , every thing is OK. Then I transfer the Controler to Server machine and change the controller and run the same page from the server, it has the same refreshing issue, Then I thought because I did not transfer LOV such properties so this is hepening,
    Now I want to initilize such properties in Page load or what I need to do, Please advise me.
    Regards,
    Haq

    Edward,
    Thank you for the suggestion! It directly lead to my solution wherein I used CASE statements for the column in my Region SELECT such as the following:
    WHEN (:P2_GRADING_METHOD = 'CR/NC' OR scs.scs_pass_audit = 'P') AND GET_GRADE_B93 (sac.stc_final_grade, sac.stc_verified_grade) IS NULL THEN htmldb_item.select_list_from_lov (5, 'Enter Grade', 'GRADE_LOV_CRNC','onBlur="return validate_grade(this,''FW_DATE_'||ROWNUM||''')"','NO',NULL,NULL,'GRADE_'||ROWNUM)
    When the column is NULL, the Select List (LOV) contains the entry 'Enter Grade' and that is the value displayed on page load. I bypass the value 'Enter Grade' during Submit Processing where database updating occurs.
    I did not find the need to enter values for p_null_value and p_null_text since I don't believe that it would cause the 'Enter Grade' value to display on page load for null value columns but rather would enable the user to select 'Enter Grade' from the list and have a specified return value stored in htmldb_item array.
    Again, thank you for the help!

  • Set events parameter in oracle 11g for SAP

    Hi All,
    Recently we have upgraded 10.2.0.4 oracle database to 11.2.0.3 (AIX 7.1) for SAP application.
    Some non-default event parameters were set when Database was running with 10.2.0.4 version. After upgrade to 11.2.0.3, those events were not seen in pfile/spfile. However, post_upgrade log shows that those events were set (and log displays the list of the events as well).
    Now, my concern is whether those event parameters were set already by default (if it is already set after upgrade, not sure why pfile not reflecting them) or do I need to set the parameters manually.
    Thanks in advance for all your help.
    Regards,
    Prakash

    Yes, they seem to be part of the upgrade itself, and SAP seems to set them in multiple places:
    1) During the dbua.sap.sh run, post-processing calls custom scripts which set these events (check the CustomScript.log in $ORACLE_BASE/cfgtoollogs/dbua/SID/upgrade1 and you can see where it is set)
    2) The post_upgrade_status.sql script in $ORACLE_HOME/sap/ora_upgrade/post_upgrade sets them when you run it as directed after the upgrade
    3) The SBP post-patch instructions specify a command to run that sets these in the spfile
    I don't think any of the upgrade steps regenerate the pfile, so if you're looking at one you generated pre-upgrade (like I did earlier today to pull out underscore parameters and user/background_dump_dest) that you then used to startup the database, SAP is definitely changing stuff behind your back. I'd just regenerate the pfile to avoid confusion.

  • Portlet event link to pass parameter between portlets

    Ok list, I followed the documentation Adding Parameters and Events to Portlets
    PDK Release 2 (9.0.2 and later) and tried to make a portlet that pass parameter to another portlet using event link. I created the supposed parameter in the page and made the correct association to the receiving parameter portlet. The case is: The parameter is not caught in the receiving parameter page.
    This is my event link jsp code:
    <%
    String sImgPath = PropertiesReader.getProperty(PropertiesReader.KEY_IMAGES_PATH);
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    // The portlet definition in provider.xml includes the following:
    // - Event "submit" with event parameters "funcionalidade"
    String eventSubmit = EventUtils.eventName("submit");
    String eventParamFuncionalidade = EventUtils.eventParameter("funcionalidade");
    // Build up the list of parameters for the "submit" event
    NameValuePair[] eventSubmitParams = new NameValuePair[2];
    // Give the 'funcionalidade' event parameter the constant value 'chat'
    eventSubmitParams[0] = new NameValuePair(eventParamFuncionalidade, "chat");
    // The event name must be passed as a parameter on the URL
    eventSubmitParams[1] = new NameValuePair(eventSubmit, "");
    %>
    <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
    <TR><TD><a href="<%=PortletRendererUtil.constructLink(portletRequest,   portletRequest.getRenderContext().getEventURL(), eventSubmitParams, true, true)%>"><IMG SRC="<%= sImgPath + "menuButChat.gif" %>" BORDER="0"></a></TD><TR>
    </TRABLE>
    And this is my receiving parameter jsp code:
    <%
    String sFuncionalidade = "";
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    // Get the portlet definition - needed to get the public portlet parameters
    PortletDefinition portlet = portletRequest.getPortletDefinition();
    // Get the public portlet parameters
    ParameterDefinition[] parameters = portlet.getInputParameters();
    // Display all values for each of the public portlet parameters
    for (int currParameter = 0; currParameter < parameters.length; currParameter++)
    String name = parameters[currParameter].getName();
    out.println(" <p>name = " + name + "</p> ");
    // Get the parameter values
    String[] values = portletRequest.getParameterValues(name);
    // Display the parameter's values.
    if ( values == null )
    // Null array indicates no values for this parameter.
    out.println(" <p>values i null</p> ");
    else
    out.println(" values nco i null ");
    // Loop through each of the values and display non-null values on a separate line.
    for ( int j = 0; (values != null) && (j < values.length); j++ )
    sFuncionalidade = values[j];
    out.println(" <p>" + sFuncionalidade + "</p> ");
    %>
    And this is my portlet definition in provider.xml:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>3</id>
    <name>MenuColaboracao</name>
    <title>Menu de Colaboragco</title>
    <shortTitle>Menu de Colaboragco</shortTitle>
    <description>Portlet de menu para funcionalidade de Comuicagco e Colaboragco.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Portlet timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>false</renderContainer>
    <contentType>text/html</contentType>
    <showPage>/menuColaboracao.jsp</showPage>
    <pageParameterName>next_page</pageParameterName>
    </renderer>
         <event class="oracle.portal.provider.v2.DefaultEventDefinition">
         <name>submit</name>
    <description>Use this event to submit the form data to a page</description>
    <parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>funcionalidade</name>
    <displayName>funcionalidade</displayName>
    <description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
    </parameter>
    </event>
    </portlet>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>4</id>
    <name>HomeController</name>
    <title>Home Controller</title>
    <shortTitle>Home Controller</shortTitle>
    <description>Portlet que controla a exibigco do jsp correspondente a opgco de menu selecionada.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Portlet timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>false</renderContainer>
    <contentType>text/html</contentType>
    <showPage>/homeController.jsp</showPage>
    <pageParameterName>next_page</pageParameterName>
    </renderer>
         <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
         <name>funcionalidade</name>
    <displayName>funcionalidade</displayName>
    <description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
    </inputParameter>
    </portlet>
    Where do I miss ???
    Any help will be appreciated.
    Regards,
    Leandro.

    Leandro,
    Few things which you might want to cross check to see if we are
    on the right track :
    1. Page containing Parameter receiving portlet contains a
    paga parameter mapped on to its public parameter.
    As per your example, parameter receiving page should have a page
    parameter with name - "funcionalidade" - and portlet's corresponding
    parmeter should be mapped to this page parameter. This can be
    done through "Parameters" tab in the Page Properties screen.
    2. Page containing Parameter passing portlet contains proper event
    mapping.
    As per your example, we have an event called "submit". We should
    be able to see "submit" event under "MenuColaboracao" portlet.
    When this event is raised, select which page should receive the event
    data. As soon as a page is selected, this page's public parameters
    are displayed below. Beside that we must be able to see a choice box
    which displays four choices one of which would be "Event Output".
    Map this output to the event parameter.
    Hope it helps.
    -AMJAD.

  • Finish a task on an event with parameter ?

    Hi all,
    need some help.
    Well, i would like to finish a task on an event which send me a user decision, so in the tab Event end i put my events. It's work fine. But the most important is that i want to get in my task the user decision. I created a new element in the container of my task : DECISION.
    In a test program i used the FM 'SAP_WAPI_CREATE_EVENT' and write the following code :
    DATA: L_KEY TYPE SWO_TYPEID,
          L_SUBRC TYPE SY-SUBRC,
          L_ID TYPE SWR_STRUCT-EVENT_ID,
          L_RETURN TYPE SY-SUBRC,
          IT_CONTAINER TYPE SWR_CONT OCCURS 0,
          L_CONTAINER TYPE SWR_CONT.
    L_KEY = '0000000011'.
    L_CONTAINER-ELEMENT = 'DECISION'.
    L_CONTAINER-VALUE   = '001'.
    APPEND L_CONTAINER TO IT_CONTAINER.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
      EXPORTING
        OBJECT_TYPE     = 'Z_REQ_KOND'
        OBJECT_KEY      = L_KEY
        EVENT           = 'Accepted'
      TABLES
        INPUT_CONTAINER = IT_CONTAINER.
    The event is sent no problem, but i can't get my DECISION element.
    I'm on 4.7 version.
    Thanks for help.

    Hi,
    When you are passing  IT_CONTAINER to 'SAP_WAPI_CREATE_EVENT'  and raising an event, it means you are setting up the 'Event Container'.
    So, this event container element should also be passed to Task. This can be done by doing binding between Event Container and Task Container.
    Before that you should have DECISION parameter defined on Event parameter's list, you should this from SWO1.
    Thanks and Regards
    Krishna Mohan

  • How to fire event with parameter?

    Hi folks,
    does anyone know how to use the event parameter functionality?
    My idea is to fire an event within the richisland and pass a parameter value. As I recognized the function
    var myParameter:Number = new Number();
    FlashIsland.fireEvent(this,"myEvent",myParameter);
    On WD side in ROOTUIELEMENTCONTAINER I created a child element of type GACEvent, named myEvent. This event has a GACEventParameter named myParameter.
    But running the app I am getting a dump:
    WebDynpro Exception: ERROR: GAC_EVENT_PARAMETER 'myParameter' missing (GAC_EVENT='myEvent')
    Any idea of how to fix this?

    Hi,
    I solved it now. The correct syntax is:
    FlashIsland.fireEvent(this, 'myEvent', {myParameter:myValue});
    Hope it helps you too.
    Greets

  • End of Page event in ALV report using SALV class[cl_salv_hierseq_table]

    Hi ,
    have been working on a ALV report using the class SALV cl_salv_hierseq_table
    I am facing few issues pertaining to two things:
    1. Displaying some subtotal text along with the subtotals.
    Example refer the standard demo example: SALV_DEMO_HIERSEQ_FORM_EVENTS
    Now instead of A 17 and A26 I would like to show text like Subtotal for the Carrid.for subtotals and grand totals
    Like   Subtotal for A 17 is :      XXXXXXX
              GrandTotal is         :      YYYYYY
    2. We have a page break and a new page for every purchasing group as in the standard example SALV_DEMO_HIERSEQ_FORM_EVENTS for CARRID.
    I need to display some variable values as number of documents ,total number of records etc at the end of each CARRID group before a new page starts for the next CARRID.Please note i do not want it on every page.it should only be diaplyed at the end of page whose next page would be for next CARRID.[basically at end of every carrid]Example:after displaying all details for AA need to display the number of records for that carrid at the end of the page[as page break is based on CARRID]/
    Thanks
    Jyotsna

    at end of page event, for CL_SALV_EVENTS_HIERSEQ, has some useful parameters allowing to know where you are at the time of event
    parameter VALUE is of type CL_SALV_FORM which contains public attribute IF_SALV_FORM~ACCDESCRIPTION; you can slo get contents of it
    about text of total/subtotal, this is normally set in the layout

  • Multiple bitrate encoder creates 3 seperate events and streams instead of a single event.

    I'm using the Niagara 4100 streaming appliance to encode a live multiple bitrate streams for an event. The problem is the Niagara encoder doesn't allow me to attach an event name to the stream url like - 'streamevent%i?adbe-live-event=liveevent', instead it only allows 'streamevent%i'. So in the end I get three seperate events with a stream for each event.
    Like so:
    Example:
    /Events/streamevent1/MNMMNNMxxxxx.stream 
    /Events/streamevent2/MNMMNNMxxxxx.stream
    /Events/streamevent3/MNMMNNMxxxxx.stream
    AND
    /Streams/streamevent1/files…
    /Streams/streamevent2/files…
    /Streams/streamevent3/files…
    Is it possible to make it work this way without using the 'adbe-live-event' parameter using the .f4m manifest file?
    Thanks,
    Dave

    There is a workaroud available but you can try using Flash Media Live Encoder, which is a free tool for better results. Surf to - C:\FMSHOME\samples\applications\livepkgr directory and you will find a main.asc file in there. This is the server side scripting file that is attached to the livepkgr application.
    In this, edit the var liveEventName variable and set it to the event you want to attach your streams to eg - "liveevent".
    Now create a separate copy of your livepkgr application inside C:\FMSHOME\applications\ like livepkgr_mbr and replace the main.far file with the main.asc you just edited. Now while publishing, connect to this application livepkgr_mbr and just specify the stream name - livestream%i. Check your permissions before starting the recording.
    This should work for you. But please remember that doing this will cause all your streams to be associated with the same event - liveevent as you are hard coding that inside the main.asc file. So its best to keep a separate application just for this purpose.

Maybe you are looking for

  • The activex controls for flash player could not be registered

    the activex controls for flash player could not be registered i have had this problem for a while and cannot seem to get around it please post anyreliable suggestions

  • How can i export pictures in PNG FILE

    Using adobe Lr 4.4

  • Patch set 3 - 10g R2

    I am wondering if anyone else has had the same problem. I have downloaded on two separate occasions patch 3 (p6810189_10204_Win32.zip) for 10g R2. When I extract the files from the zip file all I get is the readme.html even though the .zip is ~ 1GB.

  • E-Recruitment process initiation against unavailable positions etc.

    Hi Experts, The client generally initiates recruitement processes well in advance with a projection of having certain positions created in the future but not actual position or vacant position available in the Organization at the time of Recruitment.

  • System calls in c program

    Is there any way to change user in a shell (SU command) and then change this users password (PASSWD) and then back again (EXIT) from inside of a C-program. The passwd-part is solved. The problem is that one can only change password for the current us