ValueChange Event - event triggering only once

Hi,
I have a data enry form in ADF Table, where user creates new record (CreateInsert) and enters data, the first field is a input Text field and has PPR to display detail from another table.
<af:inputText value="#{row.PanelType}" simple="true"
required="#{bindings.VODisplayAllRegions1.attrDefs.PanelType.mandatory}"
columns="#{bindings.VODisplayAllRegions1.attrHints.PanelType.displayWidth}"
binding="#{backing_displayAllRegions.inputText2}"
id="inputText2"
valueChangeListener="#{backing_displayAllRegions.valChange}"
autoSubmit="true" partialTriggers="inputText6"/>
While running the page, for first time after entering test in this field, the value Change listener is firing and if the value is changed, the VC listener is not firing second time onwards, where i am doing mistake?.
Thanks in advance,
Seshu

Thank you Frank,
I have missed to mention a point above, when I am trying to update existing rows, VCL is firing as many tomes as i change the value. I user CreateInsert to create new record/row after executing this operation (i.e. CreateInsert), On entry of value for field, VCL is firing first time fetching data. but before saving data, if change value of this field VCL is not fetching data. I am able to see browser's action as mentioned by you.
Thanks in advance.
Seshu

Similar Messages

  • Mass activity running only once for custom parallel object

    Hi
    I have created custom parallel object EXT_UI and created mass activity for this but the report in triggered only once and not going for second interval .
    Can any one help me out in this.
    Thanks in advance.
    Chetan
    Message was edited by: CHETAN N P
    Mass activity is running fine for standard object ANLAGE but not for custom one
    Please share me steps to be followed in creating custom parallel object.
    Regards,
    Chetan

    Hi Chetan,
    I think you need to make changes in the Events which gets triggered by the mass activity.
    Can you let me know the mass transaction code for which you have customised the activity,
    Thanks,
    Amlan

  • Execute default case unless user presses one of several event buttons, in which case execute a different case only once.

    Hello everyone,
    I am communicating with a serial device using the VISA functions. My VISA commands are inside a loop, and per loop itteration I am sending a default command and receiving a message back from my device. However, I would like to incoroporate two non-default cases, which are to be initiated by buttons on the front pannel. When pressed, a corresponding command should be sent to the serial device only once, and then I'd like to go back to the default case. The message coming back fromt the device should be a string, common to all cases - I don't want a separate string per case. How can this be done efficiently?
    I tried to do a three-case case structure, but I haven't figured out how to use boolean switch buttons for more than two cases (I prefer buttons to a drop-down menu selection). I also tried an event structure (which I have no experience using), but these remain idle, and I can't figure out how to make a default case run actively.
    Thank you in advance for your help.
    Solved!
    Go to Solution.

    An event structure has a time out event which you could wire a value to.  The default value (nothing wired to it) is -1 which means never timeout.  You can put in a 0 which means zero timeout, execute the timeout case immediately if some other event hasn't already been queued.  Or put in any value meaning milliseconds.  Wait that many milliseconds and execute the timeout case if another event hasn't happened in the mean time.
    Do combine multiple boolean buttons, build them into an array.  Then search 1-D array for the first true.  A -1 means none are true, a number from 0 to n-1 means that particular element of the array is true.  So you just feed the value to the case structure.  (-1,default   0    1     2    ...)

  • How to use Mulitple DAQs with a single triggered event on only one of the DAQs

    I have three PXI6115 and would like to tie all these to a single triggered event on one of the DAQs. I've scaned the examples and any assistance would be greatly appreciated....

    TCjr,
    Please refer to your other post:
    How to use Multiple DAQs with a single triggered event on only one of the DAQs

  • Dbms_scheduler - dbms_aq - dbms_aqadm - event driven job runs only once/sec

    hi, i tried here to process events with 2 jobs... surprisingly i had to call dbms_lock.sleep(1) to be able to enqueue events
    at inserts in a row ... even more surprisingly the enqueuing doesn't function if the processing (prc_evsched) lasts some seconds...
    how must the code be changed to be able to enqueue all events after the inserts without any sleep()?
    and how must the code be changed to be able to enqueue all events with a proc (prc_evsched) running longer?
    thanx in advance for your help!
    --evsched
    h4.
    --to remove all test-objects
    h4.
    --test table
    h4.
    --define the object type to act as the payload for the queue
    h4.
    --creating the event queue
    h4.
    --creating the proc for the prog/job
    h4.
    --creating the proc for the prog/job
    h4.
    --creating the program
    h4.
    --creating the first job (for parallel execution)
    h4.
    --creating the second job (for parallel execution)
    h4.
    --test block
    h4.
    --test scenarios/results
    h4.
    --to remove all test-objects
    DECLARE
    exc_ora_27475 EXCEPTION; --ora-27475: <job_name> muss job sein
    PRAGMA EXCEPTION_INIT (exc_ora_27475, -27475);
    exc_ora_27476 EXCEPTION; --ora-27476: <program_name> ist nicht vorhanden
    PRAGMA EXCEPTION_INIT (exc_ora_27476, -27476);
    exc_ora_24010 EXCEPTION; --ORA-24010: QUEUE SYSGIS.EVENT_QUEUE ist nicht vorhanden
    PRAGMA EXCEPTION_INIT (exc_ora_24010, -24010);
    exc_ora_24002 EXCEPTION; --ORA-24002: QUEUE_TABLE SYSGIS.EVENT_QUEUE_TAB ist nicht vorhanden
    PRAGMA EXCEPTION_INIT (exc_ora_24002, -24002);
    exc_ora_4043 EXCEPTION; --ORA-04043: Objekt T_EVENT_QUEUE_PAYLOAD ist nicht vorhanden
    PRAGMA EXCEPTION_INIT (exc_ora_4043, -4043);
    exc_ora_942 EXCEPTION; --ORA-00942: Tabelle oder View nicht vorhanden
    PRAGMA EXCEPTION_INIT (exc_ora_942, -942);
    exc_ora_2289 EXCEPTION; --ORA-02289: Sequence ist nicht vorhanden.
    PRAGMA EXCEPTION_INIT (exc_ora_2289, -2289);
    v_fpos PLS_INTEGER := 1;
    BEGIN
    v_fpos := 10;
    BEGIN
    --remove job
    SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched', FORCE=>TRUE);
    EXCEPTION WHEN exc_ora_27475 THEN NULL;
    END;
    v_fpos := 12;
    BEGIN
    --remove job
    SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched_2', FORCE=>TRUE);
    EXCEPTION WHEN exc_ora_27475 THEN NULL;
    END;
    v_fpos := 20;
    BEGIN
    --remove program
    SYS.DBMS_SCHEDULER.DROP_PROGRAM(program_name=>'prg_evsched',FORCE=>TRUE);
    EXCEPTION WHEN exc_ora_27476 THEN NULL;
    END;
    v_fpos := 30;
    BEGIN
    -- stop the event queue.
    DBMS_AQADM.stop_queue (queue_name => 'evsched_event_queue');
    EXCEPTION WHEN exc_ora_24010 THEN NULL;
    END;
    v_fpos := 40;
    BEGIN
    -- drop the event queue.
    DBMS_AQADM.drop_queue (queue_name => 'evsched_event_queue');
    EXCEPTION WHEN exc_ora_24010 THEN NULL;
    END;
    v_fpos := 50;
    BEGIN
    -- Remove the queue table.
    DBMS_AQADM.drop_queue_table(queue_table => 'tab_evsched_event_queue');
    EXCEPTION WHEN exc_ora_24002 THEN NULL;
    END;
    v_fpos := 60;
    BEGIN
    -- remove type
    EXECUTE IMMEDIATE 'DROP TYPE typ_evsched_payload';
    EXCEPTION WHEN exc_ora_4043 THEN NULL;
    END;
    v_fpos := 70;
    BEGIN
    -- remove table
    EXECUTE IMMEDIATE 'DROP TABLE tab_evsched';
    EXCEPTION WHEN exc_ora_942 THEN NULL;
    END;
    v_fpos := 80;
    BEGIN
    -- remove sequence
    EXECUTE IMMEDIATE 'DROP SEQUENCE seq_evsched';
    EXCEPTION WHEN exc_ora_2289 THEN NULL;
    END;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('v_fpos='||v_fpos);
    END;
    h4.
    --test table
    CREATE TABLE tab_evsched
    ( id NUMBER
    , sys_date DATE
    , status VARCHAR2(1)
    , processed VARCHAR2(1) DEFAULT 'N'
    , processed_by varchar2(128)
    GRANT DELETE, INSERT, SELECT, UPDATE ON tab_evsched TO PUBLIC
    CREATE SEQUENCE seq_evsched
    h4.
    --define the object type to act as the payload for the queue
    CREATE OR REPLACE TYPE typ_evsched_payload AS OBJECT
    ( event_name VARCHAR2(30)
    , tab_evsched_id NUMBER
    , daterf DATE
    h4.
    --creating the event queue
    BEGIN
    -- Create a queue table to hold the event queue.
    DBMS_AQADM.create_queue_table
    ( queue_table => 'tab_evsched_event_queue'
    , queue_payload_type => 'typ_evsched_payload'
    , multiple_consumers => TRUE
    , COMMENT => 'Queue Table For Event Messages'
    -- Create the event queue.
    DBMS_AQADM.create_queue
    ( queue_name => 'evsched_event_queue'
    , queue_table => 'tab_evsched_event_queue'
    , queue_type => DBMS_AQADM.NORMAL_QUEUE
    , max_retries => 0
    , retry_delay => 0
    , dependency_tracking => FALSE
    , comment => 'Test Object Type Queue'
    , auto_commit => FALSE
    -- Start the event queue.
    DBMS_AQADM.start_queue
    ( queue_name => 'evsched_event_queue'
    END;
    h4.
    --creating the proc for the prog/job
    CREATE OR REPLACE PROCEDURE prc_evsched
    ( p_message IN typ_evsched_payload
    , p_job_name IN VARCHAR2
    IS
    BEGIN
    UPDATE tab_evsched
    SET processed = 'J'
    , processed_by = p_job_name
    , sys_date = p_message.daterf
    WHERE 1=1
    AND id = p_message.tab_evsched_id
    dbms_lock.sleep(5); --#sleep-1#
    COMMIT;
    END prc_evsched;
    h4.
    --creating the program
    DECLARE
    exc_ora_27476 EXCEPTION; --ora-27476: <program_name> ist nicht vorhanden
    PRAGMA EXCEPTION_INIT (exc_ora_27476, -27476);
    BEGIN
    BEGIN
    SYS.DBMS_SCHEDULER.DROP_PROGRAM(program_name=>'prg_evsched',FORCE=>TRUE);
    EXCEPTION
    WHEN exc_ora_27476 THEN
    NULL;
    END;
    SYS.DBMS_SCHEDULER.CREATE_PROGRAM
    ( program_name => 'prg_evsched'
    , program_type => 'STORED_PROCEDURE'
    , program_action => '"SYSGIS"."PRC_EVSCHED"'
    , number_of_arguments => 2
    , enabled => FALSE
    , comments => 'Program-Komponent für den Test von DBMS_SCHEDULER'
    --event message as the first param to prc_evsched 
    DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT
    ( program_name => 'prg_evsched'
    , argument_position => 1
    , metadata_attribute => 'EVENT_MESSAGE'
    --name of the job as the second param to prc_evsched 
    SYS.DBMS_SCHEDULER.define_program_argument
    ( program_name => 'prg_evsched'
    , argument_name => 'p_job_name'
    , argument_position => 2
    , argument_type => 'VARCHAR2'
    , default_value => 'dummy'
    --enable program   
    SYS.DBMS_SCHEDULER.ENABLE(NAME=>'prg_evsched');
    END;
    h4.
    --creating the first job (for parallel execution)
    DECLARE
    exc_ora_27475 EXCEPTION; --ora-27475: <job_name> muss job sein
    PRAGMA EXCEPTION_INIT (exc_ora_27475, -27475);
    BEGIN
    BEGIN
    --remove job
    SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched', FORCE=>TRUE);
    EXCEPTION WHEN exc_ora_27475 THEN NULL;
    END;
    DBMS_SCHEDULER.create_job
    ( job_name => 'job_evsched'
    , program_name => 'prg_evsched'
    , start_date => SYSTIMESTAMP
    , event_condition => 'tab.user_data.event_name = ''MYEVENT'''
    , queue_spec => 'evsched_event_queue'
    , auto_drop => FALSE
    , enabled => FALSE
    SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE
    ( job_name => 'job_evsched'
    , argument_name => 'p_job_name'
    , argument_value => 'job_evsched'
    SYS.DBMS_SCHEDULER.ENABLE(NAME=>'job_evsched');
    END;
    h4.
    --creating the second job (for parallel execution)
    DECLARE
    exc_ora_27475 EXCEPTION; --ora-27475: <job_name> muss job sein
    PRAGMA EXCEPTION_INIT (exc_ora_27475, -27475);
    BEGIN
    BEGIN
    --remove job
    SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched_2', FORCE=>TRUE);
    EXCEPTION WHEN exc_ora_27475 THEN NULL;
    END;
    DBMS_SCHEDULER.create_job
    ( job_name => 'job_evsched_2'
    , program_name => 'prg_evsched'
    , start_date => SYSTIMESTAMP
    , event_condition => 'tab.user_data.event_name = ''MYEVENT'''
    , queue_spec => 'evsched_event_queue'
    , auto_drop => FALSE
    , enabled => FALSE
    SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE
    ( job_name => 'job_evsched_2'
    , argument_name => 'p_job_name'
    , argument_value => 'job_evsched_2'
    SYS.DBMS_SCHEDULER.ENABLE(NAME=>'job_evsched_2');
    END;
    h4.
    --test block
    DECLARE
    PROCEDURE pr_ins_tab_evsched
    ( p_id IN NUMBER
    , p_status IN VARCHAR2
    IS
    BEGIN
    INSERT INTO tab_evsched(id,status) VALUES (p_id, p_status);
    COMMIT;
    --enqueue the MYEVENT-event
    IF p_status = 'M' THEN
    --enqueue works in 1sekunden-taktung.... !?
    dbms_lock.sleep(1); --#sleep-2#
    DECLARE
    v_enqueue_options DBMS_AQ.enqueue_options_t;
    v_message_properties DBMS_AQ.message_properties_t;
    v_message_handle RAW(16);
    v_queue_msg typ_evsched_payload;
    BEGIN
    v_queue_msg := typ_evsched_payload
    ( event_name => 'MYEVENT'
    , tab_evsched_id => p_id
    , daterf => SYSDATE
    v_enqueue_options.VISIBILITY := DBMS_AQ.ON_COMMIT;
    v_enqueue_options.delivery_mode := DBMS_AQ.PERSISTENT;
    v_message_properties.PRIORITY := 1;
    v_message_properties.DELAY := DBMS_AQ.NO_DELAY;
    v_message_properties.EXPIRATION := DBMS_AQ.NEVER;
    v_message_properties.CORRELATION := 'TEST MESSAGE';
    DBMS_AQ.enqueue
    ( queue_name => 'evsched_event_queue'
    , enqueue_options => v_enqueue_options
    , message_properties => v_message_properties
    , payload => v_queue_msg
    , msgid => v_message_handle
    END;
    END IF;
    COMMIT;
    END pr_ins_tab_evsched;
    BEGIN
    DELETE tab_evsched;
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
    END;
    SELECT * FROM tab_evsched ORDER BY id;
    SELECT * FROM sysgis.tab_evsched_event_queue;
    h4.
    --test scenarios/resultsh
    h5.
    --test results #sleep-1#=5, #sleep-2#=0
    --job (job_evsched) runs only once, only the first event is enqued/processed
    ID SYS_DATE STATUS PROCESSED PROCESSED_BY
    9 22.03.2012 17:00:41 M J job_evsched
    10 (Null) M N (Null)
    11 (Null) M N (Null)
    12 (Null) M N (Null)
    13 (Null) M N (Null)
    14 (Null) M N (Null)
    15 (Null) M N (Null)
    16 (Null) M N (Null)
    h5.
    --test results #sleep-1#=0, #sleep-2#=1
    --jobs (job_evsched/job_evsched2) run alternately, every events are enqued/processed
    ID SYS_DATE STATUS PROCESSED PROCESSED_BY
    25 22.03.2012 17:04:31 M J job_evsched_2
    26 22.03.2012 17:04:32 M J job_evsched_2
    27 22.03.2012 17:04:33 M J job_evsched
    28 22.03.2012 17:04:34 M J job_evsched_2
    29 22.03.2012 17:04:35 M J job_evsched_2
    30 22.03.2012 17:04:36 M J job_evsched_2
    31 22.03.2012 17:04:37 M J job_evsched
    32 22.03.2012 17:04:38 M J job_evsched_2
    h5.
    --test results #sleep-1#=5, #sleep-2#=1
    --jobs (job_evsched/job_evsched2) run alternately, only two events are enqued/processed
    ID SYS_DATE STATUS PROCESSED PROCESSED_BY
    41 22.03.2012 17:07:42 M J job_evsched_2
    42 (Null) M N (Null)
    43 (Null) M N (Null)
    44 (Null) M N (Null)
    45 (Null) M N (Null)
    46 (Null) M N (Null)
    47 22.03.2012 17:07:48 M J job_evsched
    48 (Null) M N (Null)
    */

    hi, thank you for your (fast) answer! that is the solution to my problem!
    now i have a follow-up question:
    i've got a procedure, that runs between 1 and 2 minutes long. unlimited running lightweight jobs
    would freeze the db...
    how can the count of the parallel running lightweight-jobs be limited?
    according to the documentation it is not possible:
    There is no explicit limit to the number of lightweight jobs that can run simultaneously to process multiple instances of the event.
    However, limitations may be imposed by available system resources.
    could you explain to me, what it (...available system recources...) means?
    eventually what i would like to have: max. two parallel running (lightweight) jobs....
    thank you in advance, bye, á
    ps: can i attach a file to the post anyway?
    Edited by: user4786904 on 23.03.2012 07:22

  • Need to restrict triggering of workflow only once(first time).

    Hi guys,
    I hv a requirement to trigger the workflow only once(first time).
    whatever is the the condition/changes in document, it should not trigger for second time.
    do we hv any options available for this........
    thanks in advance...
    santosh.

    Hi susan,
    Below is the requested information,
    Release : ECC 6.0
    we are working on custom WF for ECO creation(CC01).
    Description,
    ECO is created in SAP by legacy system, thru bapi CCAP_ECN_CREATE, the WF will take the editing of the material in that ECO to different departments like MRP, accounting, sales,quality etc.... & respectively creates the views.
    we cannot use CREATE event, bcos first the ECN(CC01) is created by bapi & further bapi creates the material & inserts it into ECN again, which is CHANGING the document. once this is done, our WF should trigger.
    As we dont have CHANGE event in ECM BO, i am using CREATE event & settting it for ON CHANGE in SWEC t-code.
    Bottomline is , it is triggering as soon as any changes happens.
    But, we want it to restrict for one time triggering.
    Regards.
    santosh.

  • Event Triggered process chain

    Hi Experts,
    We have a meta chain which contains two local chain in sequance and consuming 10 hours to complete
    Process Chain 1
    Process Chain 2
    We have used the events to trigger process chain 2 only when it meet certain condition and modified the meta chain as
    Process Chain 1
    Abap Prg to trigger Process chain 2
    But now the meta chain just consume 4 hours to complete even though process chain 2 is on progres.
    This is giving wrong update to the users as the load is completed.
    Is it possible to retain the status of the meta chain as in progress untill the process chain 2 triggered by event gets complets.
    Regards
    Suresh Kumar

    Hi Suresh,
    when you are using event as a process in the metachain, it checks if the event ran succesfullly or not.
    once the event is succesfull(event -  triggering of the process chain but not completion), the step turns green.
    so follow below procedure.
    1)in the abap program, instead of triggering the process chain,write a program which raises an exceptio if the condition you required is satisfied so that the step becomes red.
    use the proicess chain as next step in the process chain and conect this program to processchain step with th condition failure.
    Hope this helps,
    Srinath.

  • How to trigger the valuechange event on button

    Hi All,
    I am working on ADF Application and i have a requirement where i have a valuechange event function associated with the textbox andthe requirement is like the user will enter the value in text box and he/she will press the submit button directly without tab out .I want to trigger my value change event first and if all validation goes right then it should trigger the button event but user will press the butto only once.
    Please reply !!!
    Urgent !!
    Thanks..

    public int validate(){
    int result=0;
    if (value == null){
    //do something
    result=1;
    return result;
    on button click call this
    public String commandButton1_action() {
    if(validate()!=0){
    return null;
    //do rest...
    }

  • Process Chain after EVENT - More than once

    Hi all, I would like to run a process chain after an event; everything works fine with the following model...
    PC1 >>
         >> some processes
         >> EVENT TRIGGER
    PC2 >>
         (after EVENT) runs ok after event ONLY if I SCHEDULE it
    After succesfully run, I've tried to run again immediatly PC1 again and it runs ok, even triggers mentioned EVENT, but PC2 never runs again until I manually SCHEDULE it.
    The answer is: how should I SCHEDULE the process chain PC2 so I'll "never" need again to SCHEDULE it when I want it to run after event triggered on PC1?
    Hope you can help me.
    Thanks a lot!
    Bernardo

    Hello,
    Both process chains are separated. At the model I described, at the end of PC1 event is succesfully triggered. After event is triggered at PC1, PC2 triggers correctly due it is scheduled as "after event".
    Everything works fine, then, if I trigger PC1 again it runs correctly; event is triggered succesfully but PC2 (that is scheduled as "after event") doesn't runs; this is because I haven't SCHEDULED it again (after the first succesfully run).
    What I want is not schedule PC2 after a succesfully run. Is there any way to reach that purpose?
    Thanks again!
    Bernardo

  • Event Triggers not getting executed

    I'm having following code in beforeData(PLSQL) event trigger:
    ADCPackageName.MethodName
    There is no such package in database, even my report works fine and publish data without any error.
    Is there any configuration for enabling event triggers.
    I didn't sufficient documents on event triggers. I want to use them for returning some values to report variables and validating input parameters.

    Hi,
    I tried to use "SAP_WAPI_CREATE_EVENT" also but it is also behaving in the same manner.
    At first execution event is getting triggered but my workitem is not getting terminated.
    But when i am executing the same report second time, again my event is getting triggered, and this time my workitem got terminated, and workflow proceeded furthur.
    I checked it from SWEL, i have two entries for my event (i.e; first and second execution of report).
    Any idea why it is behaving like this.
    Please find below code for reference, apart from below code i have only declarations.
    call function 'SWC_ELEMENT_SET'
      EXPORTING
        element       = 'ActualState'
        field         = 'A'
      TABLES
        container     = it_cont
      EXCEPTIONS
        type_conflict = 1
        others        = 2.
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        OBJTYPE                       = 'WORKINGWI'
        OBJKEY                        = '000000003061'
        EVENT                         = 'Approve'
    IMPORTING
       EVENT_ID                      = it_event_id
      RECEIVER_COUNT                =
    TABLES
       EVENT_CONTAINER               = it_cont
    EXCEPTIONS
       OBJTYPE_NOT_FOUND             = 1
       OTHERS                        = 2
    COMMIT WORK.
    Regards,
    Amar

  • Dynamic event registration only works for 2 inputs??

    Hello,
    I have written a routine that traverses for GObjects when the user runs the VI.  Based on some information contained within the label of the control, the routine puts a reference to the control in one of 4 arrays.  I dynamically register these 4 arrays as part of an event structure.
    What I'm finding though is that only objects within the first 2 arrays (rw_event_array and wtc_event_array) ever trigger the event structure.  I have used the probes and breakpoints to verify that the other 2 arrays (wo_event_array and other_event_array) both are full of references, yet they never trigger the event.
    As a specific example, I have a control that is of type wo.  I stepped through my code and saw a reference to the object stored in the "other_event_array" variable.  I put a breakpoint on the event structure (which is triggered by a value change on the boolean control), yet it's never triggered.
    Why would it be working for 2 of the arrays I input, and not the other 2?
    A couple screen caps...here's the place where the arrays are built:
    Here's where they are registered:
    Just to be clear - it's not that the code inside the event structure "isn't working"...it's that the code inside the event structure is never executed.  The breakpoint you see surrounding the event structure never triggers.  And again, the first two arrays (rw and wtc) reliably trigger the event structure.
    thanks

    It's very hard to tell from your limited screenshots where the problem might be. Is there any chance you could upload the VIs instead?
    Why are you using local variables for the array references? Given that you must find all the references before you register for events on them, those should be wires. Otherwise there's a possibility of a race condition - the events could be registered before the arrays are filled. That's my best guess as to the problem. You wrote that you probed the array wire and confirmed that there are values in it, but did you probe the wire going into the Register for Events, or only the wire going into the array indicator?
    Have you checked if there are any error from the Register for Events node?

  • Chapter 6 Event-triggered campaigns

    From William...
    Chapter 6 Event-triggered campaigns is an exercise in the CCMO training where we send an email to Recipients who recently converted from Prospects to Clients, detected by a change in their status.
    Possibly the simplest way of accomplishing this is with the Incremental Query activity. However, to prevent pulling Recipients who are Clients already at the start of the campaign, the Incremental Query needs to be run twice, the first time to set the history.
    According to the documentation
    https://support.neolane.net/doc/AC6.1/en/WKF_Repository_of_activities_Targeting_activities .html#Incremental_query
    "The population already targeted is stored in the memory by workflow instance and by activity... two tasks [executions of a workflow step] based on the same Incremental Query for the same workflow instance will use the same log."
    In other words, two runs of an Incremental Query activity in a workflow share the same history log. For the first run of the Incremental Query activity, uncheck the 'Plan execution' option and transition into an End activity. This will set the history log to current Clients. For the 2nd run of the Incremental Query activity, check the 'Plan execution' option and transition into the Delivery.
    The 2nd (and subsequent) runs of the Incremental Query activity will pick up only new conversions from Prospect to Client.

    Hi Oguz,
    If you're trying to communicate between two loops, triggering the second from the first, then you should look at producer consumer type structures in File»New... under From Template.
    Stephen Meserve
    National Instruments

  • JTree - How do I fire a valueChange Event from a keyPressed Event?

    Hi,
    I have been stumped trying to figure out how to fire a valueChange event in my JTree from a keyPressed event.
    When a user changes tree node using the mouse a valueChange event fires. In my program the valueChange executes some code that must be done. I want to get my JTree to work, so that if a user is nagivating the tree using the keyboard, the code is only executed if they press the enter key.
    Below is a little demo program of what I am attempting to accomplish. Any suggestions would be greating appriciated.
    Thanks,
    Corey
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class SimpleTreeDemo extends JFrame  {
      public SimpleTreeDemo() {
      public static void main(String args[]) {
        JFrame j = new SimpleTreeDemo();
        DefaultMutableTreeNode category = new DefaultMutableTreeNode("Top of JTree");
        DefaultMutableTreeNode leaf1 = new DefaultMutableTreeNode("leaf1");
        DefaultMutableTreeNode leaf2 = new DefaultMutableTreeNode("leaf2");
        category.add(leaf1); category.add(leaf2);
        final JTree jtree = new JTree(category);
        boolean bflag = false;
        jtree.addTreeSelectionListener(new TreeSelectionListener() {
             public void valueChanged(TreeSelectionEvent e) {
                  System.out.println("valueChanged");
                  if (bflag)
                       // Execute Code
        jtree.addKeyListener(new KeyListener() {
            public void keyTyped(KeyEvent ke) {
              System.out.println("keyTyped");
            public void keyPressed(KeyEvent ke) {
                 System.out.println("keyPressed");
                 if (ke.getKeyCode() == KeyEvent.VK_ENTER)
                      bflag = true;
                    // Fire valueChanged here!
            public void keyReleased(KeyEvent ke) {
                 System.out.println("keyReleased");}
        Container c = j.getContentPane();
        c.add(jtree);
        j.setSize(200,200);
        j.show();

    Try this, it works for me.
    // Tree Key Listener
          tree.addKeyListener(new java.awt.event.KeyAdapter() {
             public void keyPressed(KeyEvent e) {
                tree_KeyReleased(e);
    private void tree_KeyReleased(KeyEvent e) {
          try {
          int keyCode = e.getKeyCode();
          // Get the Tree Path
          TreePath selPath = tree.getSelectionPath();
          if (keyCode == e.VK_DELETE) { //KeyCode - 127
             removeSelectedNode(); // Remove the node
          else if (keyCode == e.VK_ADD) { // Key Code - 107
             tree.expandPath(selPath); // Expand the Node
          else if (keyCode == e.VK_SUBTRACT) { // Key Code 109
             tree.collapsePath(selPath); // Collapse the Node
          else if (keyCode == e.VK_ENTER) {
              // What Ever you want to do here
          else {
          } catch (NullPointerException ex) {
          //System.out.println("Null");
    [/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Find Source of event triggering

    Hi all,
    I have a doubt in Workflow.
    A Workflow can be triggered by an event of the Business Object. But this can be done through
    1) Create Event SWUE
    2) Simulate Event SWU0
    3) Actual action in Tcode which triggers the event
    4) Custom program where we use Function Module to trigger event
    5) Directly executing function module SWE_Event_Create
    6) SWUS u2013 Execute Workflow
    7) SWIA u2013 Execute Workflow without Agent
    But if event linkage (SWETYPV) is active and once the Workflow is triggered (as seen in SWI1) u2013 how can we find out by what way (of the above mentioned options) the event has been triggered? i.e. how to find out the source of event triggering?
    Regards
    Vasu

    Hi,
    I am not sure if you can find the information. I suppose you have investigated the workflow container carefully?
    Then you could check all the WF database tables that are updated when the work item is created. For example check SWWWIHEAD table if there is some information about the creator (which program created it). If you can find the information, then you can easily enhance your workflow / business object / whatever to get the information.
    Then you could also check if you can get the information with the check function module (that is defined in SWETYPV). Put a breakpoint there, and see if the sy-<field> system variables include some information about the triggering program (perhaps sy-repid?). If you can find some suitable variable, then you could perhaps develop something based on the check function module.
    Regards,
    Karri

  • ValueChanged Event

    It seems the value changed event fires only when the form is posted. I have a requirement to invoke the valuechange event when user select one item from dropdown list. Is there any way to achieve this? It works When I add the following line on jsf:
    onChange="this.form.submit();"
    But i am not sure if it is a good solution ....... Any help on this will be appreciated.
    -TT

    Don't worry, you're right on track. It's different calling onChange="submit()" and clicking on the commandLink/commandButton on your form.
    Could you please post the pertinent JSP form code, and the method that gets executed when the valueChangeEvent gets fired (i.e. the valueChangeListener in your managed-bean)?
    From there we should be able to tell you exactly how to set up.
    CowKing
    PS - Keep in mind that JSF is a server-side technology and that nothing can happen until a submit takes place.

Maybe you are looking for

  • Consolidated companies are different

    Hi, User is trying to make an invoice through MIRO, he is getting the error as consolidated companies are different. pls suggest. Regards, venki

  • Blu Ray won't turn on after server issues

    So after the last couple days of not being able to connect properly to my online streaming, now my blu Ray won't even turn on all the way. It is stuck with the thin blue line on the screen and won't do anything else. I have tried unplugging it and pl

  • Fusion.FND_Session_MGNT  Exception in JDev 11.1.1.5.0

    Hi .. I am working with ADF and Jdev. I created an EO from a table and setting a column as the history column 'Created by' , threw me the following exception, but the stack trace with the error on getting the user id. I unchecked the history column f

  • How well will Mountain Lion run on the following MacBook Pro?

    Thinking about biting the bullet and upgrading to Mountain Lion on my MacBook Pro. My specs are as follows: MacBook Pro 15" (Late 2008 model MacBookPro5,1) Intel core 2 duo 2.53Ghz 8GB RAM 1TB HD with 390GB free Mac OS X 10.6.8 So, how well will Moun

  • -1712. My message program can´t open.

    -1712. My message program can´t open. When I try to open it in Launchpad the code 1712 appears. Can anyone help?