Trigger Animate Audio Event with Key Position

So I've got a long scrolling site that is supposed to trigger an audio event at a certain position.
Right now I've got an edge animate file in there that is set to trigger at a specific key distance, which it sort of does.
The issue is that the audio is triggered when I first load the page and then will trigger again only if I'm scrolling upwards.
The animate file has a couple alterations. The scene has an oncompletion event that says to pause the whole piece and autoplay is turned off.
I'm using Win 7 and Chrome if that makes any difference.
Any suggestions?
If there is a more elegant solution I'm open to that as well. This just seemed to make sense with my current workflow.
Thanks all!

You would need to achieve this using JavaScript , add a snippet on event so that on complete load video file is played :
http://stackoverflow.com/questions/12680432/whats-the-play-event-on-a-video-html5-element
Thanks,
Sanjit

Similar Messages

  • Trigger an event with key command?

    In InDesign CS3_Scripting Guide quote "The following table lists events to which eventListeners can respond. These events can be triggered by any available means, including menu selections, keyboard shortcuts, or script actions." I currently have a script that activates a UI when the user presses save. I am interested in changing that action to happen when a user presses a key.
    I do not see any documentation on this. The UI popping up on save all the time is kind of annoying. I was thinking maybe option or command H or anything really.
    listen();
    function listen(){
    var mySampleScriptMenu = app.menuActions.item("$ID/kSave");
    var myEventListener = mySampleScriptMenu.eventListeners.add("beforeInvoke", myFunction, false);
    I am using CS5 mac.

    I found this in the Script UI 1-9 PDF.
    Listening to the keyboard
    To listen to the keyboard, define an event listener using the keyboard event
    keydown. Here is an example that prints some properties of the keyboard event
    (this doesn't work properly when you target the ESTK):
    var w = new Window ("dialog");
    var edit = w.add ("edittext");
    edit.active = true;
    edit.characters = 30;
    w.addEventListener ("keydown", function (kd) {pressed (kd)});
    function pressed (k)
    $.writeln (k.keyName);
    $.writeln (k.keyIdentifier);
    $.writeln (k.shiftKey ? "Shift pressed" : "Shift not pressed");
    $.writeln (k.altKey ? "Alt pressed" : "Alt not pressed");
    $.writeln (k.ctrlKey ? "Ctrl pressed" : "Ctrl not pressed");
    w.show ();
    I think this is something I might try. I am currently using key board shortcuts in Indesign now but if I write this into the code I will not have to set up on each machine and each version of indd. I am currently using option T to get my script going.
    Can you tell me what the d stands for in this function?

  • Iphoto events showing with key photo of a palm tree in gray?

    iphoto events showing with key photo of a palm tree in gray? Also indicates no photos but there are photos within the event??

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Audio player with some extra's - can't get player realized

    I try to build an audio player with some extra's like looping between 2 time marks.
    Till now i have an interface that can play back audio files but after that the problems start.
    There is no way i can add functions without creating a {color:#ff0000}NotRealizedError{color}.
    According to the documentation the start() method should realize (etc) the player, but it doesn't in my program and neighter does the method player.realize();.
    Can someone give me a hint to get me on the road again.
    Thanks in advance.
    Here is the complete code which generates the NotRealizedError on the dp.setRate(); method:
    (most of it is older source from a basic player on the internet).
    package dictaplayer;
    import java.awt.*;*
    *import java.awt.event.*;
    import java.io.*;*
    *import java.net.MalformedURLException;*
    *import java.net.URI;*
    *import java.net.URL;*
    *import javax.swing.*;
    import javax.media.*;
    public class DictaPlayer extends JFrame {
    private Player dp;
    private URI uri;
    private URL url;
    private boolean realized = false;
    public DictaPlayer()
    super( "Testing DictaPlayer" );
    JButton openFile = new JButton( "Open file to play" );
    openFile.addActionListener(
    new ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    openFile();
    createPlayer();
    getContentPane().add( openFile, BorderLayout.NORTH );
    setSize( 300, 300 );
    setVisible(true);
    private void openFile()
    File file = null;
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(
    JFileChooser.FILES_ONLY );
    int result = fileChooser.showOpenDialog( this );
    // user clicked Cancel button on dialog
    if ( result != JFileChooser.CANCEL_OPTION )
    file = fileChooser.getSelectedFile();
    try {
    uri = file.toURI();
    } catch (SecurityException e) {
    e.printStackTrace();
    // Convert the absolute URI to a URL object
    try {
    url = uri.toURL();
    } catch (IllegalArgumentException e) {
    e.printStackTrace();
    } catch (MalformedURLException e) {
    e.printStackTrace();
    private void createPlayer()
    if ( url == null )
    return;
    removePreviousPlayer();
    try {
    // create a new player and add listener
    dp = Manager.createPlayer( url );
    // blockingRealize();
    dp.addControllerListener( new EventHandler() );
    dp.start(); // start player
    dp.setRate(2);
    catch ( Exception e ){
    JOptionPane.showMessageDialog( this,
    "Invalid file or location", "Error loading file",
    JOptionPane.ERROR_MESSAGE );
    private void removePreviousPlayer()
    if ( dp == null )
    return;
    dp.close();
    Component visual = dp.getVisualComponent();
    Component control = dp.getControlPanelComponent();
    Container c = getContentPane();
    if ( visual != null )
    c.remove( visual );
    if ( control != null )
    c.remove( control );
    private synchronized void blockingRealize() {
    int teller = 1;
    dp.realize();
    while (!realized && teller <= 20) {
    try {
    wait(1000);
    System.out.println("not realized " +teller);+
    +teller++;
    } catch (java.lang.InterruptedException e) {
    System.exit(1);
    public static void main(String args[])
    DictaPlayer app = new DictaPlayer();
    app.addWindowListener(
    new WindowAdapter() {
    public void windowClosing( WindowEvent e )
    System.exit(0);
    // inner class to handler events from media player
    private class EventHandler implements ControllerListener {
    public void controllerUpdate( ControllerEvent e ) {
    if ( e instanceof RealizeCompleteEvent ) {
    Container c = getContentPane();
    // load Visual and Control components if they exist
    Component visualComponent =
    dp.getVisualComponent();
    if ( visualComponent != null )
    c.add( visualComponent, BorderLayout.CENTER );
    Component controlsComponent =
    dp.getControlPanelComponent();
    if (!realized) {
    System.out.println("not realized.");
    if ( controlsComponent != null )
    c.add( controlsComponent, BorderLayout.SOUTH );
    c.doLayout();
    }

    captfoss,
    Thank you for your comment.
    captfoss wrote:
    Start does realize the player, automatically, before it starts it... if it isn't realizing then it also isn't starting.Right, I thought so, but my test was wrong. I now tested it with getState() and I can see it's going from unrealized to realized.
    First off, you can only call setRate on a player that is realized but not started... further, any of the calls like configure, realize, start, stop, etc... are non-blocking calls...so you have to wait for them to finish before you go on to the next step.So you say that when the rate is changed (f.i. by a user in a gui) the program first has to bring player in non-started realized mode (stop + realize), call the setRate() and start the player again (on the exact position it was stopped)?
    The easiest solution would be to use Manager.createRealizedPlayer rather than Manager.createPlayer...Didn't find out yet why, but when i change this (only this), there is no playing.
    Also, ++teller++ is about the most-confused looking code I've ever seen...Just like all the asterisks, i now know that code changes when i toggle between the tabs (rich/plain/preview) in the message box.
    Beyond that, your "blocking realize" function doesn't appear to do anything except suggest you have no business coding anything this advanced. Your boolean value "realize" isn't ever changed, so, I'm not entirely sure what the point of that function is other than to wait 10 seconds.I got this somewhere from the internet. Thought it could help me realize the player, but it didn't (obvious) so i commented it out.
    Slowly I begin to understand the basics of JMF (at least i think so), but I also understand that there are other (Java) ways to build the application I need. Unfortunatly I have to little (hardly any) knowledge of all those (sound) API's (f.i. JLayer) to find my way through them and to decide which is the best for my use (user controled audio playback (at least WAV and MP3) with looping possiblities between 2 marked positions).
    If someone could give me an advise which API (method or whatever you call it) is best to focus on I shurely would appriciate that.

  • Trigger PAI after pressing enter key

    Hi all,
    How to trigger the PAI event after pressing the enter key on the keyboard. i have a input field and a button on the screen. after entering the value into the field and pressing buttot will take to next screen. But if I press enter key the value is getting cleared. How to trigger the PAI event after pressing the enter key?
    Thanks in advance,
    Dev.

    Hi,
    The keyboard event 'Enter' does not have a default sy-ucomm or a Function code associated with it.
    So, whenever you press Enter, it triggers the PAI (sy-ucomm would be blank) and somewhere in your code the value is being refreshed. You can debug thoroughly to find where the problem is.
    You can assign a Function code for Enter. Go to the GUI Status of the Screen -> Function Keys -> You will find a icon Enter (the one with the tick mark in a green circular background) -> Assign Function code like 'ENTER'.
    Now in your PAI, restrict your code saying
    if sy-ucomm = 'ENTER'.
    "Logic
    endif.

  • Does changing a KeyValuePair trigger the PropertyChanged event in ObservableDictionary?

    I am using the ObservableDictionary class available at:
    http://blogs.microsoft.co.il/shimmy/2010/12/02/observabledictionaryof-tkey-tvalue-vbnet/
    I will, for most of my code, be modifying KeyValuePair items that have already been added, and want an event to be triggered when I make these modifications. Both the Keys and Values properties are there, and they obviously change when a KeyValuePair
    is modified, but will that trigger the PropertyChanged event? I was having trouble figuring out when the PropertyChanged event would get triggered, since the only place I could find in the code that raised the event was from inside the OnCollectionChanged
    methods. Will the PropertyChanged event be triggered when I modify a KeyValuePair, or do I need to add PropertyChanged events to the KeyValuePair items myself? Any help would be appreciated. Thanks.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

    But I don't want to comment on it, I want to ask a question. Look at the existing comment: No reply to that (unless it was done privately).
    Nathan Sokalski [email protected] http://www.nathansokalski.com/
    So you are saying a comment about something can not be a question? When did that become some kind of planet earth law? And who's enforcing that?
    Since the comment capability asks for a name and email address then perhaps shimmy would respond to your comment. You do understand your comment could be something like "If I use your class will changing a key/value pair cause the property changed event
    to receive an event?".
    But no, perhaps that would be too easy to contact the person that created the class in the first place to ask a question or communicate with on the product.
    Since you are using the class then you should be able to determine if an event occurs when a key/value pair is altered. Or do you want somebody here to download and use the class and then provide you with information on how the class works or something?
    It's not a simple class to run through. But I'll post it.
    It seems to me the OnPropertyChanged sub gets called by the  Private Sub OnCollectionChanged(ByVal action As NotifyCollectionChangedAction, ByVal newItems As IList) which seems relatively simple to figure out.
    Imports System.ComponentModel
    Imports System.Collections.Specialized
    Public Class ObservableDictionary(Of TKey, TValue)
    Implements IDictionary(Of TKey, TValue), INotifyPropertyChanged, INotifyCollectionChanged
    #Region "Constructors"
    Public Sub New()
    m_Dictionary = New Dictionary(Of TKey, TValue)
    End Sub
    Public Sub New(ByVal dictionary As IDictionary(Of TKey, TValue))
    m_Dictionary = New Dictionary(Of TKey, TValue)(dictionary)
    End Sub
    Public Sub New(ByVal comparer As IEqualityComparer(Of TKey))
    m_Dictionary = New Dictionary(Of TKey, TValue)(comparer)
    End Sub
    Public Sub New(ByVal capacity As Integer)
    m_Dictionary = New Dictionary(Of TKey, TValue)(capacity)
    End Sub
    Public Sub New(ByVal dictionary As IDictionary(Of TKey, TValue), ByVal comparer As IEqualityComparer(Of TKey))
    m_Dictionary = New Dictionary(Of TKey, TValue)(dictionary, comparer)
    End Sub
    Public Sub New(ByVal capacity As Integer, ByVal comparer As IEqualityComparer(Of TKey))
    m_Dictionary = New Dictionary(Of TKey, TValue)(capacity, comparer)
    End Sub
    #End Region 'Constructors
    #Region "Fields"
    Private Const CountString As String = "Count"
    Private Const IndexerName As String = "Item[]"
    Private Const KeysName As String = "Keys"
    Private Const ValuesName As String = "Values"
    Public Event PropertyChanged(ByVal sender As Object, ByVal e As PropertyChangedEventArgs) _
    Implements INotifyPropertyChanged.PropertyChanged
    Public Event CollectionChanged(ByVal sender As Object, ByVal e As NotifyCollectionChangedEventArgs) _
    Implements INotifyCollectionChanged.CollectionChanged
    Private m_Dictionary As IDictionary(Of TKey, TValue)
    #End Region 'Fields
    Protected ReadOnly Property Dictionary As IDictionary(Of TKey, TValue)
    Get
    Return m_Dictionary
    End Get
    End Property
    Public Overloads Sub Clear() Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Clear
    If Dictionary.Count > 0 Then
    Dictionary.Clear()
    OnCollectionChanged()
    End If
    End Sub
    Public Sub Add(ByVal item As KeyValuePair(Of TKey, TValue)) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Add
    Insert(item.Key, item.Value, True)
    End Sub
    Public Sub Add(ByVal key As TKey, ByVal value As TValue) Implements IDictionary(Of TKey, TValue).Add
    Insert(key, value, True)
    End Sub
    Public Sub AddRange(ByVal items As IDictionary(Of TKey, TValue))
    If items Is Nothing Then Throw New ArgumentNullException("items")
    If items.Count > 0 Then
    If Dictionary.Count > 0 Then
    If items.Keys.Any(Function(key) Dictionary.ContainsKey(key)) Then
    Throw New ArgumentException("An item with the same key has already been added.")
    Else
    For Each i In items
    Dictionary.Add(i)
    Next
    End If
    Else
    m_Dictionary = New Dictionary(Of TKey, TValue)(items)
    End If
    OnCollectionChanged(NotifyCollectionChangedAction.Add, items.ToArray)
    End If
    End Sub
    Private Function Remove(ByVal item As KeyValuePair(Of TKey, TValue)) As Boolean _
    Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove
    Return Remove(item.Key)
    End Function
    Public Function Remove(ByVal key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).Remove
    If key Is Nothing Then Throw New ArgumentNullException("key")
    Dim item As TValue
    Dictionary.TryGetValue(key, item)
    Dim removed = Dictionary.Remove(key)
    If removed Then OnCollectionChanged() 'FieldsNotifyCollectionChangedAction.Remove, New KeyValuePair(Of TKey, TValue)(key, item)
    Return removed
    End Function
    Default Public Property Item(ByVal key As TKey) As TValue Implements IDictionary(Of TKey, TValue).Item
    Get
    Return Dictionary(key)
    End Get
    Set(ByVal value As TValue)
    Insert(key, value, False)
    End Set
    End Property
    Private Sub Insert(ByVal key As TKey, ByVal value As TValue, ByVal add As Boolean)
    If key Is Nothing Then Throw New ArgumentNullException("key")
    Dim item As TValue
    If Dictionary.TryGetValue(key, item) Then
    If add Then Throw New ArgumentException("An item with the same key has already been added.")
    If Equals(item, value) Then Exit Sub
    Dictionary(key) = value
    OnCollectionChanged(NotifyCollectionChangedAction.Replace, New KeyValuePair(Of TKey, TValue)(key, value),
    New KeyValuePair(Of TKey, TValue)(key, item))
    Else
    Dictionary(key) = value
    OnCollectionChanged(NotifyCollectionChangedAction.Add, New KeyValuePair(Of TKey, TValue)(key, value))
    End If
    End Sub
    #Region "ReadOnly methods and properties"
    Public Overloads Sub CopyTo(ByVal array() As KeyValuePair(Of TKey, TValue), ByVal arrayIndex As Integer) _
    Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo
    Dictionary.CopyTo(array, arrayIndex)
    End Sub
    Public Overloads ReadOnly Property Count As Integer Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Count
    Get
    Return Dictionary.Count
    End Get
    End Property
    Public ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).IsReadOnly
    Get
    Return Dictionary.IsReadOnly
    End Get
    End Property
    Public ReadOnly Property Keys As ICollection(Of TKey) Implements IDictionary(Of TKey, TValue).Keys
    Get
    Return Dictionary.Keys
    End Get
    End Property
    Public ReadOnly Property Values As ICollection(Of TValue) Implements IDictionary(Of TKey, TValue).Values
    Get
    Return Dictionary.Values
    End Get
    End Property
    Public Function Contains(ByVal item As KeyValuePair(Of TKey, TValue)) As Boolean _
    Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains
    Return Dictionary.Contains(item)
    End Function
    Public Function ContainsKey(ByVal key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).ContainsKey
    Return Dictionary.ContainsKey(key)
    End Function
    Public Function ContainsValue(ByVal value As TValue) As Boolean
    Return Dictionary.Values.Contains(value)
    End Function
    Public Function TryGetValue(ByVal key As TKey, ByRef value As TValue) As Boolean _
    Implements IDictionary(Of TKey, TValue).TryGetValue
    Return Dictionary.TryGetValue(key, value)
    End Function
    Public Overloads Function GetEnumerator() As IEnumerator(Of KeyValuePair(Of TKey, TValue)) _
    Implements IEnumerable(Of KeyValuePair(Of TKey, TValue)).GetEnumerator
    Return Dictionary.GetEnumerator
    End Function
    Private Function GetIEnumerableEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator
    Return DirectCast(Dictionary, IEnumerable).GetEnumerator
    End Function
    Private Sub OnPropertyChanged()
    OnPropertyChanged(CountString)
    OnPropertyChanged(IndexerName)
    OnPropertyChanged(KeysName)
    OnPropertyChanged(ValuesName)
    End Sub
    Protected Overridable Sub OnPropertyChanged(ByVal propertyName As String)
    RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
    End Sub
    Private Sub OnCollectionChanged()
    OnPropertyChanged()
    RaiseEvent CollectionChanged(Me, New NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset))
    End Sub
    Private Sub OnCollectionChanged(ByVal action As NotifyCollectionChangedAction,
    ByVal changedItem As KeyValuePair(Of TKey, TValue))
    OnPropertyChanged()
    RaiseEvent CollectionChanged(Me, New NotifyCollectionChangedEventArgs(action, changedItem))
    End Sub
    Private Sub OnCollectionChanged(ByVal action As NotifyCollectionChangedAction, ByVal newItem As KeyValuePair(Of TKey, TValue),
    ByVal oldItem As KeyValuePair(Of TKey, TValue))
    OnPropertyChanged()
    RaiseEvent CollectionChanged(Me, New NotifyCollectionChangedEventArgs(action, newItem, oldItem))
    End Sub
    Private Sub OnCollectionChanged(ByVal action As NotifyCollectionChangedAction, ByVal newItems As IList)
    OnPropertyChanged()
    RaiseEvent CollectionChanged(Me, New NotifyCollectionChangedEventArgs(action, newItems))
    End Sub
    #End Region 'ReadOnly methods and properties
    End Class
    La vida loca

  • How can I trigger an onchange event for hidden or never displayed item

    hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
    set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
    When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
    it, B never gets changed.
    How can I trigger this onchange event (from B to set C) with B not visible?
    Thanks,
    Carol

    hi Varad -- Probably more info than you want... but here's the whole chain of events.
    Hope it answers your question.
    C
    **** 1
    In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
    onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
    **** 2
    jsLookupValue is the following.
    The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
    // Continue only if there are valid values
    if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
    //Check to see if the source_item_value is null (either all spaces or empty
    //If it is, set the dest item to null, but only if it's not already --
    //otherwise we get into a loop.
    source_item_value = trim(source_item_value);
    dest_item_value = trim($v(dest_item_name));
    if (source_item_value.length==0) {
    if (dest_item_value.length != 0) {
    $s(dest_item_name, null);
    }else{
    //This is the AJAX call to the Application Process from step 1
    ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
    //Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
    ajaxRequest.addParam('x01', source_item_value);
    ajaxRequest.addParam('x02', source_column_name);
    ajaxRequest.addParam('x03', dest_item_name);
    ajaxRequest.addParam('x04', dest_column_name);
    ajaxRequest.addParam('x05', lookup_table_name);
    //Now do the actual AJAX call and put the result in ajaxResponse
    ajaxResponse = ajaxRequest.get();
    //Check if there is a response
    if (ajaxResponse) {
    //We need to format the JSON return string and put it in a JSON object
    // the formatting is done by a function in the external JSON library
    // the jsonobj can be used to retrieve the data returned by the App process
    var jsonobj= ajaxResponse.parseJSON();
    // And finally, we set the DNAME item with the value of the jsonobj.DNAME
    // an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
    if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
    $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    }else{
    } //not setting
    }else{
    alert('No response from app process');
    } //no response
    } //no source item value
    } //no bad nulls
    } //function
    **** 3
    I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL.

  • In my events the key photos no longer show up and the picture amount reads 0, but the pictures are still there when I click on that event. Why does the amount read 0?

    In some of my events in iphoto no pictures show up in the key photos. In others they do. I just upoaded some and no problem. I noticed that in the lower right corner of each event with no key photo the photo amount reads zero. I click on that event and all of the photos do show up. Does anyone know why this is  happening, or have come across this before? Thanks, Daryl

    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.

  • I am trying to trigger a custom event using a program but does not work ..

    HI ....i am trying to trigger a custom event of a custom object type using a program but does not work. If trigger the same event using SWUE it works.
    below is the code...
    {Key = '0010001115'. "Sales Order Number (hard-coded)
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        objtype                       = 'ZXXXXXXXF'
        objkey                        = KEY
        event                         = 'ZEVENT'
      CREATOR                       = ' '
      TAKE_WORKITEM_REQUESTER       = ' '
      START_WITH_DELAY              = ' '
      START_RECFB_SYNCHRON          = ' '
      NO_COMMIT_FOR_QUEUE           = ' '
      DEBUG_FLAG                    = ' '
      NO_LOGGING                    = ' '
      IDENT                         =
    IMPORTING
      EVENT_ID                      =
      RECEIVER_COUNT                =
    TABLES
      EVENT_CONTAINER               =
    EXCEPTIONS
      OBJTYPE_NOT_FOUND             = 1
      OTHERS                        = 2}
    Please guide me if i am missing something.

    Hi Sunny,
    I think you should try creating the event using FM SAP_WAPI_CREATE_EVENT.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
      EXPORTING
        OBJECT_TYPE             =  'ZXXXXXXXF'
        OBJECT_KEY              = key
        EVENT                   = 'ZEVENT'
    *   COMMIT_WORK             = 'X'
    *   EVENT_LANGUAGE          = SY-LANGU
    *   LANGUAGE                = SY-LANGU
    *   USER                    = SY-UNAME
    *   IFS_XML_CONTAINER       =
    IMPORTING
       RETURN_CODE             = rcode
       EVENT_ID                = event_id
    * TABLES
    *   INPUT_CONTAINER         =
    *   MESSAGE_LINES           =
    *   MESSAGE_STRUCT          =
    Regards,
    Saumya

  • Controlling event with two controls

    Here's what I have.
    I have two separate Time loops. Inside each timed loop I have an event structure. Each even structure is trigger by pressing a button each. This works just fine.
    However, I'd like to add a third button, that executes both event structures. I want to do this without creating additional events in each structure. Is this possible to somehow wire this third button to the other two and trigger the two based off the action of the third? I'm having trouble getting that to work.
    Thanks
    Message Edited by crazyjay on 02-24-2010 09:15 PM
    Solved!
    Go to Solution.

    Quick example
    Attachments:
    Event with Value Signaling.vi ‏12 KB

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • SRM - Problem with a SRM Order with text position

    Hello,
    I produced an order requisition from SRM. (Document Type EC / Field Sel.Key NBB) Unfortunately I cannot change the category of commodities during this order requisition over the transaction ME52N. This must be however possible. The appropriate Field Sel.Key NBB is correctly adjusted.
    The problem apparently lies in SRM. With normal SRM orders in the R/3 an order is put on. The category of commodities may not be changed then no more.
    With SRM orders with text positions a order requisition is to be put on in the R/3. Functions also. The category of commodities is not also here alterable only unfortunately. That must function however.
    My question: How can one change the data of the order requisition with text orders over SRM?
    Regards
    J.V.

    hi J.v
    you can make new request rather than changing the purchase request since material group in important data.
    why you want to edit the PR and again trying to edit the data in sc created from pr.
    I recommend you to create a new PR for your request.
    since
    eprofile offered sap ecc according to your material grp / purchase group combination inthe eban table (eprofile field).
    but why you are trying to edit the same pr in the backend method(it is no.2 activity in sap - not supposed to do right)
    if you dont want that request cancel the sc (complete it).
    hope now you understood.
    br
    muthu

  • Insert 'with key', impossible?

    Hello,
    I try to insert 'LIKE LINE OF' table into internal table but I found only INSERT... INTO... INDEX!
    Is it possible to insert this line on special position like node_key?
    thanks

    Hi tobias,
    1. I don't think is any special syntax for inserting w.r.t. to node key.
    2. Workaround is by using READ Statement before inserting.
       READ ITAB with key fiedl1 = val1 .
    3. Then we can use insert.
    regards,
    amit m.

  • Read Table ITAB with key Dynamic Value index 1

    Here is sample Intenral table
    Columnname-C01 / C02 / C03
    Value-123 / 456 /789
    I would like to search value of the internal table according to dynamic value given by the code.
    i.e.
    read table ITAB with key <Dynamic Value> index 1.

    Hi,
    Apart from read, you can also use <b>SEARCH</b> statement.
    Syntax
    SEARCH
    Searches for strings.
    Syntax
    SEARCH <f>|<itab> FOR <g> [ABBREVIATED]
                              [STARTING AT <n1>]
                              [ENDING AT <n2>]
                              [AND MARK]
                              [IN BYTE MODE|IN CHARACTER MODE].
    Searches the field <f> or table <itab> for the string in the field <g>. The result is stored in SY-FDPOS. The additions let you hide intermediate characters, search from and to a particular position, and convert the found string into uppercase. In Unicode programs, you must specify whether the statement is a character or byte operation, using the IN BYTE MODE or IN CHARACTER MODE (default) additions.
    Hope this information is useful to you.
    Regards,
    Saumya

  • Locking audio together with SMPTE

    Hey All,
    In the prior versions of Logic I could sync up two audio tracks with SMPTE. I can not seem to figure out a way to do this anymore in Logic X. I use to get the offset by using Move Region to Original Record Position then take the resulting error message and insert it as the offset. How is that done in Logic X?

    Hello Kalinda!
    "I used to be able to pause audio in Kaffeine and play it in Firefox and vice versa. Now Amarok will error and crash if I try and use it while Kaffeine is open and has a video paused. Kaffeine (KDE3) and Amarok (also KDE3) both use xine and should get along fine, but they suddenly no longer work together. And Kaffeine shouldn't be stealing the sound from Flash in Firefox, either. " <- Can you show the error output if you run this from console ?

Maybe you are looking for

  • When I search a music artist in the itunes store and then click to view all albums the screen is blank.

    When I search a music artist in the itunes store and then click to view all albums the screen is blank. Why is itunes store not showing me all of the Albums?

  • Can't get mouse to work with mac mini

    Yes, I replaced the batteries. Not sure what's going on. I booted the Mac Mini and the message I'm getting is "Searching for mice -0 found" then it will attempt to search again...nothing. I've attempted keyboard commands, but I'm unable to close out

  • KVM for mini-dv?

    Hi. I've got a MacBook Pro with a mini-DVI video port and one of the new LED Cinema Displays that go so beautifully with it, also using mini-DVI. I'm getting one of the just-released Mac Minis, which also has a mini-DVI video out. I'd like to set up

  • Creating a daemon process with processBuilder

    Hello, This is our problem, we are creating a new process from a java application, with the processBuilder methods. The idea is to launch this process and when the java application is closed the process continues running. But the problem is that when

  • Calendar Question: Why do all day untimed events switch to all day timed events???

    I've complained about this on other threads, but so far nobody has answer.  Can somebody please tell me why all day untimed events on the Pre sometimes switch to all day TIMED events (i.e., an event that starts at 12am and ends at 11:59pm)??  My gues