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
Similar Messages
-
How to fire event to generate insert message for the child objects?
We are in process to integrate CRM On Demand and existing Microsoft SQL DB.
We have the following problem:
For ex., we have CRM Object_1 that already synchronized with the SQL DB. CRM also has independent Object_2 and its child Object_2.1
We dicided that we want to connect the Object_2 as child to the Object_1.
The question is how to fire event to generate insert message for the Object_2 and Object_2.1?
What is the best technique? Is it possible to do it by workflow configuration or it needs to be done programmatically?
Thanks,
Dmitry
Edited by: 955827 on Aug 29, 2012 11:57 AMHi,
integration events can be generated only via worklow. You will need to create separate workflows for each record type (regardless if it is child or parent) because a workflow for the parent record type will not trigger when a child record is created/ associated. Also, the association workflows will trigger only when the specific event occurs.
There is not way to generate the integrtaion events programatically. They are generated by workflows and are read/ interpreted by a code extension. -
LinkToAction how to use it with parameter?
Hello,
searching for tutorials about the use of the LinkToAction I have seen that here is a possiblity in WD4J to use a context-node.
How can you pass a parameter in WD4A? (I am using a rowrepeater for a list of books and would like to pass the bookID to the event)
How can I do this?
Thanks a lot,
VanessaThanks for your answer Lekha,
unfortunaltely I don't get the point.
>
Lekha wrote:
> From this action if you want to export the bookid then it should be a exporting parameter..
>
> you can specify this way...
Somehow I don't get the point. How can I pass the bookid to the method?
I have a rowrepeater. One of the elements is the link to the action. I will add the bookid as parameter. That is clear.
My problem is how to connect the bookid of the row that is displayed to the method? Is it just because of the name? I don't see any context I can associate?
Could you please go a little bit more in detail,
Vanessa -
How to do submit with parameter?
Hi,
I would like to pass some data from Program A to Program B.
How do i do a submit statement with parameter from Program A to pass data to Program B.
How do i grab the data from Program B that was pass by Program A?
Regards,
RaydenHEllo,
DO like this.
SUBMIT B WITH SO_PROJ IN SO_PROJ
WITH SO_PSP IN SO_PSP
WITH SO_WWSTO IN SO_WWSTO
WITH SO_WWGFG IN SO_WWGFG
WITH SO_ISTAT IN SO_ISTAT
WITH SO_ESTAT IN SO_ESTAT
EXPORTING LIST TO MEMORY
AND RETURN.
" Ouptut from Report B.
Import the list from memory and store it in table listobject
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* WRITE 'Error in list_from_memory.'.
ENDIF.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
LISTASCI = LT_TXT
LISTOBJECT = LISTOBJECT
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3.
CHECK SY-SUBRC = 0.
DATA: LV_LINES LIKE SY-TABIX.
DESCRIBE TABLE LT_TXT LINES LV_LINES.
LOOP AT LT_TXT INTO W_TEXTLINE.
CHECK SY-TABIX > 3.
CHECK W_TEXTLINE(5) <> 'Keine'.
CHECK W_TEXTLINE(5) <> '-----'.
DO 120 TIMES. REPLACE ' |' WITH '|' INTO W_TEXTLINE. ENDDO.
"WRITE / w_textline(255).
PERFORM HANDLE_LINE_ZSTATUS USING W_TEXTLINE.
ENDLOOP.
* Free memory
CALL FUNCTION 'LIST_FREE_MEMORY'.
Cheers,
Vasanth -
Hi guys,
I implemented a BPM with 3 Times inputs and 3 timers. I need to set the TimeDate of the Timer Event with the three inputs. How can I do it? I tried with to create a DataObject with three Time attributes, before the Timer activities I assign the inputs to the data objects and in the Time Date I inserted the Expression with the data object attributes but it doesn't work!
I tried also to insert three string as inputs (instead the Time) and then I insterted a trasformation before the Timer activities but it doesn't work too...
Please help me!
ThanksI solved inserting -'2h' in the Timer expression...So the question now is: Why the input DateTime has increased of 2 hours? I will open a topic...
Thanks -
How to fire event on panel in coverflow?
Hi,
I have cover flow.Inside that 10 panels(created dynamically) will be present.
when u run application we will get coverflow.My requirement is when i click on first panel i have to
fire event.similarly when i click on remaining panels(ie first click it will show to user(panel1) and second click on the same pane1(panel1) event
will be fired.for suppose second click on panel2(not panel1),then i dont want fire event).How to do that?
Regards
D.Mahesh BabuHi Sarah,
Looks like you are talking of exactly what I want!
I have attached a sample VI to try achieve what I want. But it still has some issues which are:
1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
Kindly note I am using LV FDS 7.1 on Win2000
Thanks,
Gurdas
Message Edited by Gurdas on 03-27-2006 11:51 PM
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.edu
Attachments:
Graph_PlotLegend_Event.vi 45 KB -
Fire events with run-time menu
Hi,
I developed an application based on an event structure. Almost all the events are fired when their corresponding controls are modified. I’d like now to alternatively fire an event by selecting an item in the run-time menu.
In the ‘Menu Selection with Events.vi’ example the selection of any item in the run-time menu fires the event 0 (specifier menu selection (user)). Inside that event 0 according to the item a function is executed.
Is is possible to point out to another event instead? Or is possible to add the selection a menu item (or sub menu item) to fire an event that is usually fired when a the value of a control changes?
I enclose a VI and its .rtm file (LabVIEW 8.0)
Thanks,
Charly
It's always sunny in California! Certified LabVIEW Associate Developer!
Attachments:
MenuEventStructure Folder1.zip 19 KBThis is to shine light on Wiebe response, here how you can do it:
yet, this mode of operation works with switching booleans, not with latching (you cannot set the value of a latch indefinitely). therefore you will also need to implement a prgramatic latching solution (e.g. after 200ms return value to false).
a more involved, but better solution would be to register the events.
Message Edited by Gabi1 on 10-08-2007 02:31 PM
... And here's where I keep assorted lengths of wires...
Attachments:
MenuEventStructure.png 13 KB -
How to fire event in VS C# when QuickTime sees a marker.
I am using Visual Studio 2005 C# to run QT with ActiveX. I have set markers in the video file that show up in the window at the bottom of a QT movie. I want to be able to capture that marker with an event handler and tell a microcontroller to do something when that marker is hit. I've done a lot of research and can't find a way to extract the marker name or even find an event handler that will fire when the marker is hit. Since QT shows the name in the window I'm thinking there has to be a way to get that information to a C# application.
Any help would be appreciated,
Stevehi,
You can create a method from the methods tab in your view controller. Write the code for populating your combo box in this method. Now in the doInit you can call this method. In the action handler of the button also call this method.
hope this helps you.
regards,
Rahul. -
How to supply events with url links in a public readable event calendar?
When creating a new event on this calendar, how do I supply a url with
hypertext links so reader can click on it and lead to a 'more info' page?
I tried the example supplied by "Reviewer's Guide, iPlanet Calendar Server
5.0". From chapter 4, Advanced Features, I imported a supplied ical file
(ba_music.ics) to JSmith's BayAreaMusic calendar, I got no problem when
importing. Then, when I looked at the calendar, I expected to see hyperlinks,
yet what I saw were only plain text html, no links, no images( such as -
<html>
<a target=ics2 href=http://www.sfsymphony.org/>
<img src=imf/greynte2.gif align=left width=27 height=28>Symphony Concert<br>
8:00pm
</html>
What did I do wrong?
Ching-IWhen creating a new event on this calendar, how do I supply a url with
hypertext links so reader can click on it and lead to a 'more info' page?
I tried the example supplied by "Reviewer's Guide, iPlanet Calendar Server
5.0". From chapter 4, Advanced Features, I imported a supplied ical file
(ba_music.ics) to JSmith's BayAreaMusic calendar, I got no problem when
importing. Then, when I looked at the calendar, I expected to see hyperlinks,
yet what I saw were only plain text html, no links, no images( such as -
<html>
<a target=ics2 href=http://www.sfsymphony.org/>
<img src=imf/greynte2.gif align=left width=27 height=28>Symphony Concert<br>
8:00pm
</html>
What did I do wrong?
Ching-I -
How to fire event to a textarea?
Hi all!
I am developing a small chat application where the data typed at the client on a textarea should be reflected in the textarea at the server. I can send data through the network and append it at the client. But if I want to handle the special keystrokes like backspace and all, I need to manually identify the code for that particular key and then do that operation on the server textarea. But what I am trying is I will send the TEXTEVENT object through the network and using information in it, I will construct a new TEXTEVENT object by changing the source object alone. Then I want to fire that on the textarea. We have a method processTextEvent in TextComponent(base of textarea). But it is protected and so even if I try to extend the textarea and do it, I don't have access to that method.
Can anyone help me out!
Thanks in advance.
Bye
VijayHere's some code that works in Window$, but fails badly in Solaris 9. In Solaris it doesn't display the characters and produces an "unexpected exception in code outside the JVM".
Here's the client
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import java.util.LinkedList;
public class TestEC extends Frame implements KeyListener
TextField input;
Socket sock=null;
boolean connected = false;
InputStream is = null;
ObjectOutputStream oos = null;
Thread recvThread = null;
Thread sendThread = null;
Queue sendQueue = null;
TestEC()
input = new TextField(30);
addWindowListener(new WindowAdapter()
{public void windowClosing(WindowEvent evt){System.exit(0);}});
add(input);
input.addKeyListener(this);
pack();
private boolean connect(String address, int port)
try
sock = new Socket(address, port); // try to connect to port 9999 on my Solaris system
is = sock.getInputStream();
oos = new ObjectOutputStream(sock.getOutputStream());
sendQueue = new Queue();
recvThread = new Thread(new Runnable(){public void run(){doRecv();}});
recvThread.start();
sendThread = new Thread(new Runnable(){public void run(){doSend();}});
sendThread.start();
connected = true;
catch(IOException e)
System.out.println("failed to connect to: "+address+":"+port);
sock = null;
connected = false;
return connected;
public void keyPressed(KeyEvent e){sendKey(e);}
public void keyReleased(KeyEvent e){sendKey(e);}
public void keyTyped(KeyEvent e){sendKey(e);}
private void sendKey(KeyEvent e)
sendQueue.push(e);
public static void main(String[] args)
String address = "127.0.0.1";
if(args.length > 0)address = args[0];
TestEC tec = new TestEC();
if (tec.connect(address,9999))tec.show();
else System.exit(0);
// read and discard until close seen, then shutdown
private void doRecv()
int last = 0;
try{while(connected && -1 != last){last = is.read();}}
catch(IOException e){e.printStackTrace();}
connected = false;
try
sock.close();
sendThread.interrupt();
catch(Exception ce){ce.printStackTrace();}
private void doSend()
Object obj;
while(connected)
obj = sendQueue.pop();
if(obj != null)
try{oos.writeObject(obj); oos.flush();}
catch(IOException e){e.printStackTrace();}
// a simple queue class between two threads
class Queue
LinkedList q = new LinkedList();
public synchronized void push(Object obj)
q.add(obj);
this.notify(); // tell pop to run with it
public synchronized Object pop()
if(q.isEmpty())
try{this.wait();}
catch (InterruptedException e){return null;}
return q.remove(0);
} And here's the server
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class TestES extends Frame
TextField output;
Socket sock=null;
boolean connected = false;
ObjectInputStream ois = null;
Thread recvThread = null;
Thread listenThread = null;
TestES()
output = new TextField(30);
addWindowListener(new WindowAdapter()
{public void windowClosing(WindowEvent evt){System.exit(0);}});
add(output);
pack();
private void start()
listenThread = new Thread(new Runnable(){public void run(){doListen();}});
listenThread.start();
private void doListen()
ServerSocket ssock = null;
try
ssock = new ServerSocket(9999); // listen on port 9999 on this host
sock = ssock.accept();
ois = new ObjectInputStream(sock.getInputStream());
recvThread = new Thread(new Runnable(){public void run(){doRecv();}});
recvThread.start();
connected = true;
catch(IOException e)
System.out.println("listen failed");
sock = null;
connected = false;
public static void main(String[] args)
TestES tes = new TestES();
tes.start();
tes.show();
// read and process events from socket
private void doRecv()
Object obj;
while(connected)
try
obj = ois.readObject();
postEvent(obj);
catch(Exception e){e.printStackTrace(); connected = false;}
try
sock.close();
catch(Exception ce){ce.printStackTrace();}
private void postEvent(Object obj)
output.requestFocus();
output.dispatchEvent((KeyEvent) obj); -
How to fire event in view controller from component controller.
I have a component usage that fires an event wich i have subscribed in the component controller.
iv_usage->subscribe_event( iv_event_name = 'TAKE_IT'
iv_handler = me ).
After the event the method IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT in the component controller is called.
method if_bsp_wd_event_handler~handle_event.
endmethod.
The usage component is opened as a popup window. After pressing a button, the data is transfered via context node binding to the calling component. But now i want to close the popup.
My intension is to fire a event for the view controller in the IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT method that closes the popup.
Is this possible?
Or let me explain it this way:
I want to close a popup after a button in the popup is pressed.
best regards
JürgenHello Juergen
I am assuming your target pop-up is of type ref to IF_BSP_WD_POPUP.
1.Make this a view controller class attribute.
2. After the code to create the pop-up, you can add the following block :
gv_target_popup->set_on_close_event( iv_view = me iv_event_name = 'CLOSEPOPUP').
3. Now define event handler EH_ONCLOSEPOPUP where you can write the logic for on_close.
You can access the same reference gv_target_popup at the event handler level as well.
Hope this helps.
Regards
Nisha -
How to include link with parameter in marketing emails?
Hi, my client wants to send out personalized marketing emails to customers with a link back to the BC site that have a parameter on the end that passes the customer's email address the message was sent to. Then the landing page can parse that email off the end of the URL and insert it into the web form on the page where the customer can update his info, insuring he is using the same email that BC sent the message to rather than supplying a different one.
If you insert a BC tag like {tag_recipientemail} into the body of the message it will replace that tag with the customer's email, but it doesn't work to use that BC tag within the HTML link in the email like this:
<a href="https://mysite.worldsecuresystems.com/birthday?{tag_recipientemail}" > Click Here </a>
That renders the TAG code {tag_recipientemail}on the end of the URL, not the email address.
Anyone found a work around?
If this was a web page I could use javascript to fix this, but of course email clients receiving messages don't allow javascript to run inside them, so this has to be fixed server side by BC.I suspect the same. That should work in the real campaign. I believe that it doesn't work in the e-mail me functionality because the user you are logged in is not connected to the CRM table, which is where that tag is pulling the info from.
Cheers,
-mario -
How to fire sounds with various frequencies
Hello,
I'm willing to create a program to check how people hear sounds and plot curves based on audible frequencies.
Are there java classes to play a sound at a particular frequency. ?
I'm running Windows XP on a PC with just speakers and earphone.
Thanks to point me to the good package (if it exists) or to provide me with a sample code.There's a bug in the forum software that's inserting
a space when displaying long urls, like here:
c2coff=1& q=test
Darn, didn't notice the blanks. Usually they're more obvious.
b) searching for the keywords you used doesn'tbring
up any code as far as I saw. Funnily, though, it
returns this thread...Then I guess that you skipped over this one:
http://www.softsynth.com/jsyn/tutorial/
(#10 in the list)
and this one:
http://javaboutique.internet.com/audio/
Very probably. All I saw on my list were online hearing tests, but no code. :) Thanks. -
How to link event with program?
My program z_report_idoc is called in background job using event OM20000013 created in SM62.
Code uses FM: CALL FUNCTION BP_EVENT_RAISE
But i dont know how it is linked to program.
Can anyone have idea how to link program and where i can view this linkage.
Regards,
Gurmukh1. Go to transaction SWELS and swich on the event.
2. Then go to vd01 and create customer.
3. Go to transaction SWELS and swich off the event.
4. Go to transaction SWEL. it will displays the events regarding your process. -
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
Maybe you are looking for
-
My iCloud email on iPad keeps saying it won't connect to server.
My iCloud email on iPad keeps saying it won't connect to server. Tried removing and adding iCloud back on device already. Says last update was Thursday (3 days ago). I don't use this email much but got a few emails and attachments I need for work fro
-
Copy expression only not working
I'm working on AE CC 2014. Copy expression only is not working, I'm not sure if it's not copying anything or not pasting what it copied. But no expression is being applied to the other layers as it used to be the case before.
-
ANN: Eric Meyer CSS extenstion for DW available
This is a multi-part message in MIME format. ------=_NextPart_000_0096_01C7E564.0D039F60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable We're extremely proud to announce the release of our latest extension
-
Getting Logic Express 7.2 to read AU Plug-ins
Hi all, I'm running Logic Express 7.2 on a Macbook Pro. I haven't had any problems so far, but recently a friend bought me Amplitube for my birthday and I can't get Logic to acknowledge its presence. I installed the AU file, which is sitting in the l
-
Plantronics Audio 995 (wireless) - Won't boot up
I am using this headset: http://www.plantronics.com/northamerica/enUS/products/computer/multi-use-headsets/audio-995 Plantronics Audio 995. When the USB dongle is plugged into the back upon bootup, it won't boot. Just sits at the grey screen and will