Custom Event - Issues with triggering
Hi Experts,
I've developed one workflow for travel management. The flow is as below.
1. Whenever expense report is created, workflow will get triggered
2. If the expense report requires receipts, workflow will be waiting for the receipts attachment. After attaching the receipts workflow will move further for approval process. For this I've created one custom event, which will be triggered from enhance spot (OA_BADI_LINK) implementation when receipts are attached
3. I'm using the custom event created and wait step to hold the workflow till the event get triggered
4. If receipts are required and not attached for 2 days, workflow will be terminated
It was working fine in development server. After transporting the all related objects to testing server, in testing server the workflow was not moving further even after attaching the receipts. I wanted to check whether the custom event is getting triggered or not, while attaching the receipts. For this, I've requested admin team to switch on the event trace (SWELS) in testing server. After switching on the event trace, my workflow is working fine. I mean, the workflow is moving further whenever receipts are attached.
I'm with no clue, why it was not working before activating the event trace and why it is working after that.
Can any one help me in finding out the cause?
Thanks in Advance,
Siva Sankar.
Hi Shital,
Thanks for ur reply.
Standard event that is maintained in SWE2 was getting triggered and workflow was getting started. But, the custom event that is getting triggered from enhancement was not working properly.
What settings admin do using SWEQADM tcode?
Thanks,
Siva Sankar.
Similar Messages
-
UCCX 10.5 - Issue with triggers
Dear all,
We have had a pretty bad issue with our UCCX 10.5, for a reason unknown the CTI Points that link our UCCX with CUCM were all unregistered in CUCM (10.5).
I tracked down the issue that it could have had something to do with IPv6 and fixing the IPv4 in the Common Device Configuration op the CTI Port. For some reason i wasn't able to change this manually because CUCM would complain about the naming (UCCX_7000), it seemed that the underscore was not allowed.
I decided to remove the Call Control Group under UCCX and make a new one, when i did remove it. I rebooted the UCCX cluster (2 servers) and all of my triggers are gone, i was able to add the CTI points and get them registered, but now the applications in UCCX have no trigger. Is there a fast way to assign the triggers or is it a manual process (193 applications).
We did upgrade this UCCX once and we still have the older version in OS admin, can it work that i change versions back to 9.X and get my configuration back and then perform a new upgrade to 10.5?
Oh yes it was also a very bad moment to find out that the backup wasn't running properly since someone had messed with the SFTP server and forgot to mention :(
Could someone help me outyou need to add them manually.
Regarding CTI Route point registration with CUCM, let first explain how the communication goes on between them.
UCCX downloads the JTAPI client from CUCM, CCX Engine (RmCm and CM Telephony subsystems) controls JTAPI client, while CTIManager (JTAPI Provider) controls the server side. Agents' phones should be associated with RmCm user, while both CTI ports and Route Points should be associated with the JTAPI user (if it's HA deployment, then there will two JTAPI users; JTAPI_1 controls CTI RPs and CTI ports of the 1st server and JTAPI_2 conrols CTI RPs and CTI ports of the 2nd server).
if the CTI RP appears as Unregistered, then it should be associated correctly with JTAPI user, Usually I start with analyzing JTAPI logs from UCCX side especially if my customer wants root cause analysis.
Thank you,
Shadi -
Hope you flex geniuses can help me on this one....
the issue: an action script custom event is being dispatched
by one object but is not being "heard" by it's parent despite the
fact that a) the child object uses the [event] declaration in it's
class definition, b) the event is being correctly dispatched, and
c) the parent object uses an addEventListener method to listen for
the event.
the layout:
includes an application component (mxml) that has as it's
only direct child an action script custom component called
FloorPlan. On creationComplete the floor plan object instantiates
an action script class called Booth as many times as is required
(based on the number of booths that needs to be displayed on the
floor plan) and then adds the instances to itself via addChild()
method. The booth objects are based on Sprite class and so they
have click events, etc. When one of the booth instances is clicked,
the click event of the booth instance fires and the handler creates
an instance of the ShowCompanyProfileEvent (action script class
based on the Event class) and then dispatches it. The
ShowCompanyProfileEvent event handler for now should just open an
Alert box.
I know the code works within the Booth class because when I
register an event listener in the booth class itself and then click
on a booth, the listener "hears" the dispatched event and opens the
Alert box.
The problem is that The floor plan instance has a registered
event listener to listen for the dispatched custom event also but
nothing happens when I click a booth instance (which like I said
should dispatch the custom event). I deleted the addEventListener
code in the booth class thinking that maybe it was catching it
first but still it wouldn't work.
Any ideas? I have reallysearched and searched to no avail. As
I mentioned, I get no errors at all when I compile and run the
code. I just don't get the expected results.LensterRAD, don't know if I got the hole idea but I guess you
are listening to the ShowCompanyProfileEvent directly on the
FloorPlan, something like:
FloorPlan.addEventListener(ShowCompanyProfileEvent,
someFunction);
if this is the case, you'll probably need to add the BUBBLE
parameter to the event, so it will follow the hole event
propagation model.
something like: dispatchEvent(ShowCompanyProfileEvent,
true); -
FD32 - Customer credit, Issue with mass update of "TITLE OF NOTE" field
Hi All,
we have requirement for mass upload of credit master records. I am facing an issue with creation/populating of Title of note field. When we go directly to FD32 transaction we have a button "Services for Object" near tiltle of second screen of FD32 through which we can create a title of note (SOOD-OBJDES) but when we go to FD32 through SHDB for BDC recording, that option is not found.
Any idea on how to handle mass update for that field?
DhareppaHi,
You can use function module 'SGOS_NOTE_CREATE'. to create a note after you create customer credit limit through SHDB for BDC recording. It is going to be a separate program.
Function Module Parameters:
IS_OBJECT-OBJKEY = customer no + credit control area. --> ex. 20000000140001
IS_OBJECT-OBJTYPE = BUS1010
IP_TITLE = Your title
IT_CONTENT = your note content.
Cheers,
Chaiphon -
Events Issues with Description
Morning.
I have to report an issue with the "events" section of iPhoto. The text under the images is both unclear and overlapping the events thumbnails. The desciption isnt log either.
Has anyone else managed to unravel this issue?
Any feedback appreciated?To edit event titles correctly make sure you have HelveticaNeue installed on your system. HelveticaNeue.dfont is what worked for me. Restart iPhoto after installing the font.
-
Custom Authentication Issue with Policy Agent
Hi,
I have a custom authentication module which is hosted on the BEA application server and I am trying to access through the policy agent on apache.
I have set the following property in AMAgent.properties file
com.sun.am.policy.am.loginURL= http://host:port/amserver/UI/Login
So When the user requests a protected resource, the policy agent forwards the user to Identity Server with the module as CustomLoginModule. However, after this, authentication is succeed, user sesion is being created and I get the following error message in the agent log file.
2004-10-19 16:20:26.908 Error 27620:e1140 PolicyEngine: am_policy_evaluate: InternalException in Service::construct_auth_svc with error message:Application authentication failed during service creation. and code:3
2004-10-19 16:20:26.908 128 27620:e1140 RemoteLog: User unknown was denied access to http://hostname:port/weblogic/protapp/protected/a.html.
2004-10-19 16:20:26.908 Error 27620:e1140 LogService: LogService::logMessage() loggedBy SSOTokenID is invalid.
2004-10-19 16:20:26.909 Error 27620:e1140 all: am_log_vlog() failed with status AM_REMOTE_LOG_FAILURE.
2004-10-19 16:20:26.909 -1 27620:e1140 PolicyAgent: URL Access Agent: access denied to unknown user
The necessary policy object is already created in Identity Server. Please send your suggestions to fix this problem.
Thanks
NeerajHi Neeraj,
I still have not been able to resolve that issue. Let me know If you find a solution for the same.
Thanks,
Srinivas -
How Verizon WIreless Deals With A Customer's Issues With A Flawed Device
(link removed)
Let me start at the beginning…
I have had a bad history with phones during my 6 years I been with Verizon Wireless(VZW). All the phones I had with them always have some manufacturer issues. I either had to pay a deductible or was allowed to exchange it for free due to it still being under warranty. I had to go through this 14 times in under 6 years. For the most part, Verizon Wireless has been very helpful with these issues & the amazing service they provided as kept me a very loyal customer. These qualities even lead me to sign up for Verizon FiOS over Comcast when I moved into my new apartment.
On February 17th, 2014, I received my tax refund. Most of it was going to repairs for my car, but for a birthday gift to me, I wanted to upgrade my phone. At the time, VZW had a deal to trade in your old phone & upgrade to a new phone. Your trade in got $100 taken off the cost of your new phone. I thought that was a sweet deal since the phone I had, The Motorola Razr Maxx HD was my 4th replacement to replace my original phone from when I first upgrade my phone with a new contract 2 years ago, The Motorola Droid 3. The Razr Maxx HD was a good phone but not what I wanted, It did what it needed to do & the technology was steller. Just not my first choice in a phone.
Since the Droid 3 was no longer in production, i always had to get a replacement phone VZW saw fit for me to get. Now with my contract up & my opportunity to get a new phone, I knew what I wanted I wanted the Samsung Galaxy Note 3 now. It has so many amazing features, apps & it is the perfect phone for someone my size. I can easily text with it, I do not feel I will crush the phone holding on to it & all of the hardware in it is like nothing on the market at that time. I been researching the phone months before it came out & I knew once I had the money, this is the phone I wanted.
So I went to the VZW Store ready to make the exchange and have a phone I wanted finally for once in nearly 2 years. I got there to be helped my a gentleman named Teddy. He was eager to help me. I told him why I was there & instantly got the ball rolling. My phone I wanted was in stock, I was able to get $100 from the trade-in promotion. HE also informed me I could get a free tablet by just paying the taxes for it, A mere $15 & The Note 3 was on sale. I could walk out this day with a new phone AND a tablet for $172! So I agreed to it & all I had to do was pay. Then the problems started…
I was told I could not pay with my debit card. This was due to an issue of a returned payment. An issue I had with VZW due to their company in October 2013 in which they took 9 days to process my monthly bill payment to only return it when the funds was still available to complete it. So I had to leave the store to find an ATM to withdrawal the cash so I could purchase the phone & tablet. Once I came back, we tried to finish the sale. Now I was told I could not trade in my phone due to the fact VZW did not allow me to make debit payments because of their own error. I was told i could pay full price for the phone and I could not get the tablet. I declined & left the store.
Very upset, I called VZW’s customer service line to formally complain. They could do nothing to help me since no one, not even a supervisor could fix these restrictions to my account. This made me more upset, so I went above their head & reported my situation to The Better Business Bureau(BBB). Within 7 days, a Manager From VZW’s Home Headquarters, named Brian (removed), finally called me to resolve my issues. HE apologized, removed my account restrictions & was sending me A Galaxy Note 3 for my troubles free of charge. I wanted the tablet too but did not care at this point. I just wanted a phone I wanted for once & I can do without a tablet. I never went out of my way to get one before & I was not planning to now.
On February 25, I received my new phone. I instantly fell in love. The phone was the perfect size for me & it worked just like every review I read online said it would. Then on February 27th, the phone began to have charging issues. The factory charging cable that came the the phone began to have issues charging the phone, then not recognizing the charger at all. I called customer service to make a complaint. This is when I learned for the first time that The Samsung Galaxy Note 3 has a defect with it’s charging cable & charging the device. They told me I could either mail the cable for a replacement or try to get the replacement at a store. So I decided to go to the same VZW store to get the replacement.
Once I got there, I had to wait in line for 30 minutes to finally speak to someone. Once I did, I was told they had no chargers in store. All that could be done was call Samsung & have a replacement phone sent to me. I asked what would I do for a charger until then & they said I could use the micro USB charger from my last phone to charge it.
So I mailed the charger to Samsung, who said it would take 8-10 days to get my replacement. During this time, the phone began to now stop holding a long charge. So I again called customer service. I was again told to go to the VZW store to get a replacement charger. I went back to the store again to be told they could do nothing for me since I did not have to original charger. All I the could do was sell me a mobile charger for 50% off. Since i need my phone, I had no choice. I had to spend $30 now on a device to help my faulty one.
March 6th, my replacement charger arrived. I was happy because now I can charge my phone with the proper charger & get a full battery life from it. That same day the charger had the same issues again. So i instantly took it to the Verizon Store to be told I need to call customer service for a replacement phone. So I return home to see in my mailbox is my VZW bill. The statement says my bill is $400! Verizon Wireless & Brian (removed) had charged me full price for my phone despite what he told me when he called me.
I instantly called his office to only get his answering machine. I left a very angry yet respectful message explaining my disgust with what he & VZW have done since I got this phone. I said I refuse to pay anything until this issue is fully resolved. I then proceeded to file another complaint to The BBB. This time I would get no response from VZW. Instead i had to call and chat online with their customer service lines for over a month to have a REFURBISHED device, a replacement battery & a generic charging cable sent to me. My phone still has charging issues & I must travel around DAILY with my mobile charger to make it a whole day to be able to use my device.
Verizon Wireless and Brian (removed) will not resolve this issue for me. Instead they have suspended services to my phone and are forcing me to pay the full price for the phone or having my service “permanently discontinued”.
I am left with no choice but to pay this by next month. I need my phone for personal, business & emergency reasons just like everyone else. I can not pay this AND an early termination fee. Verizon Wireless has done nothing to help me & now I am stuck in a contract for the next 16 months with a company that has done this to me during the last 2+ months. I have a improper working phone and they get $400 for it and Brian (removed) gets his commission.
Before I pay this bill, I am making one last complaint to The BBB & I am spreading my story across social media like wildfire, I am hoping someone at Verizon Wireless sees this. MAYBE they will do the right thing. Then again, they had the chance to & have not….
Mr. Brian (removed) & Verizon Wireless,
My Name IS Reginald (removed). Due to months of complaints you should very well know who I am. Since you will NOT help me, I have no choice but to play by your rules and pay you ridiculous cost for a phone despite the act of what I was verbally told. You & your company you work for have had countess times to make this right & you have not. I might have to be stuck in a situation like this, but the entire internet will now learn of your actions & how you treat people. Maybe this will teach you all how to properly treat your paying customers. Someone can still make this right. You have my number, but you would have to reactivate it to contact me though.
Regards,
Reginald (removed)
Edited as required by the Verizon Wireless Terms of Service
Message was edited by: Admin ModeratorReginald, We absolutely want to make this a better experience. Would it be possible for us to work together in direct message. Please follow us and we can get started.
Sheritah_vzw
Follow us on Twitter
@VZWSupport -
Issue with triggers while importing (imp) to another user
hi all,
we have two oracle databases (oracle 10g R2)
1. production
2. test (clone of production)
whenever we need to update the test database for the developers we take a full export dump of the production (hardly 20GB) and import the same into test after dropping the tables in the required schema
export system/***@production file=exp.dmp log=log.log full=y statistics=nonewe have a schema named user1, in production.
same is the case in test
I got a request to refresh the user1 schema in test, but with a different schema user2 (new schema created), as there was some critical dev. work going on with user1 schema.
hence i didnt want to touch the user1 schema in test environment & after taking an export dump of the production i didnt import it into the same schema.
i imported the dump data to user 2 schema
imp system/***@test file=exp.dmp log=implog.log fromuser=user1 touser=user2 statistics=nonethe moment i did this developers working with user1 schema started facing issues when their code hit triggers on user1 schema. all insert/update triggers in the user1 schema started pointing to corresponding tables in user2.
any clues why something like this happened? what was the mistake in he imp command i used?
thanks for your timeHi,
Check for the trigger source in your original schema. If it has schema name mentioned before the tables on which the trigger is created, it would create problem during import. While importing, it will reference the previous schema , though you are importing it in new schema.
If this is the case, remove the schema name from the source and then export and re import.
Regards
Vinitaa -
Custom scrolller - issue with multiple objects....
Hi,
I'm developing a very simple custom scroller as a proof of concept. The idea is to have a background image(content_mc), lay multiple objects(myContent[i]) on top of the image, and scroll them all as a cohesive unit. However, I can not scroll myContent[i] appropriately; each object has a unique position and when I try to scroll them, they all assume one position(in which everything overlaps), move to that position and then scroll(see the ### comment below). Does anyone know how to accomplish this?(or does any of this not make the slightest bit of sense?)
Thx for any help,
Chipleh
var rect:Rectangle;var scrollerMinY:Number = scrollbar_mc.scroller_mc.y;
var contentMaxY:Number = content_mc.y;
var padding:Number = 40;
scrollbar_mc.scroller_mc.buttonMode = true;
scrollbar_mc.scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragIt);
function dragIt(e:MouseEvent):void {
rect = new Rectangle(4, 3, 0, 180);
scrollbar_mc.scroller_mc.startDrag(false, rect);
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt);
scrollbar_mc.scroller_mc.addEventListener(Event.ENTER_FRAME, scrollIt);
function dropIt(e:MouseEvent):void {
scrollbar_mc.scroller_mc.stopDrag();
scrollbar_mc.scroller_mc.removeEventListener(Event.ENTER_FRAME, scrollIt);
function scrollIt(e:Event):void
var scrollerRange:Number = rect.height;
var contentRange:Number = content_mc.height - mask_mc.height + padding;
var percentage:Number = (scrollbar_mc.scroller_mc.y - scrollerMinY) / scrollerRange;
var targetY:Number = contentMaxY - percentage * contentRange;
content_mc.y = targetY;
//###Herein lies the problem; I can not get multiple clips to align consistently like content_mc
for(var i:int = 0;i<myContentArray.length;i++)
var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
myContent.y = targetY - myContent.y;Hiyas moccamaximum,
Thx for the reply. Below are the screenshots, where the "align consistently" issue is apparent. When I instantiate the objects, the objects align per the "Before scrolling" screenshot. As soon as I start to scroll, the objects all align to one position(targetY)i.e.: "After scrolling" screenshot. I understand why that is happening, what i don't understand is how to maintain the layout of the objects while scrolling, per:
for(var i:int = 0;i<myContentArray.length;i++)
var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
myContent.y = targetY;
Before scrolling:
During scrolling: -
Custom infotype - issues with conversion class - making fields display only
Hi,
I created the custom infotype 9008 using t-code PM01, created conversion class ZCL_HRPA_UI_CONVERT_9008_XX and assigned it to screen structure ZHCMT_BSP_PA_XX_R9008 in the view V_T588UICONVCLAS. Coded the methods IF_HRPA_UI_CONVERT_STANDARDOUTPUT_CONVERSION and IF_HRPA_UI_CONVERT_STANDARDINPUT_CONVERSION. I'm trying to make some fields display only within the method OUTPUT_CONVERSION dynamically. Coded the check class ZCL_HRPA_INFOTYPE_9008 with business logic.
Everything seems to be working fine when I test using the test tool through t-code PUIT_UI.
When I try to create/modify 9008 record through PA30, the code in the methods OUTPUT_CONVERSION and INPUT_CONVERSION is never getting executed. The control is not coming there at all. The fields are allowing input. Any idea why this is happening.
We are on ECC 6.0 and at service pack level SAPKE60035. Couldn't find any relevant SAP notes as well. Appreciate your help in this regard.
Thanks,
Kumar.Hi Venkata,
Check this document.
This explains about custom infotype creation.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1?overridelayout=true
regards,
Brinda L -
CUSTOM CLASSLOADER ISSUES WITH APPLET
HELP WOULD BE MUCH APPRECIATED FROM ANYONE KNOWING ABOUT CLASSLOADER ISSUES
I have an applet that must be dynamically extensible at run time. I am using
the URLClassLoader to support dynamic class loading for the modules the
applet must contain on the specific page.
Each jar file contains:
* The class files, icons and other resources for the module
* a file called META-INF/ext.initializers
The initializers file contains a list of classes which implement my
ExtensionInitializer interface. I am using
ClassLoader.getResources("META-INF/ext.initializers") to obtain these lists.
This works fine.
Each class implementing ExtensionInitializer is responsible for attaching
various objects to the main applet i.e extra GUI items, information
processors etc...
The problem I am getting is that although the class loader will load
resources ok, it WILL NOT LOAD the damn classes!!!
Here's the snippet of code where it runs into trouble:
while (it.hasNext())
String name = (String)it.next();
Class c = classLoader.loadClass(name);
ExtensionInitializer initializer =
(ExtensionInitializer)c.newInstance();
initializer.preInitialize(session);
System.out.println("Pre Initialized: " + initializer);
// Remember we initialized this so we can call postInitialize
later
initializers.add(initializer);
The output proving that the URLs were infact added and the ext.initializers
list was processed (containing the class name
com.katalyzt.toolbox.ext.cm.gui.CaseInitializer):
Extension URLs
file:/C:/java/Katalyzt/lib/ext/Case.jar
file:/C:/java/Katalyzt/lib/ext/WorkArea.jar
Found initializer:
jar:file:/C:/java/Katalyzt/lib/ext/Case.jar!/META-INF/ext.initializers
java.lang.ClassNotFoundException:
com.katalyzt.toolbox.ext.cm.gui.CaseInitializer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
com.katalyzt.toolbox.gui.AppletExtensionLoader.loadExtensions(AppletExtensio
nLoader.java:97)
at
com.katalyzt.toolbox.gui.ToolboxSessionPanel.preInitialize(ToolboxSessionPan
el.java:70)
at
com.katalyzt.toolbox.gui.ToolboxSessionApplet.init(ToolboxSessionApplet.java
:28)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)
java.lang.ClassNotFoundException:
com.katalyzt.toolbox.ext.cm.gui.CaseInitializer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
com.katalyzt.toolbox.gui.AppletExtensionLoader.loadExtensions(AppletExtensio
nLoader.java:97)
at
com.katalyzt.toolbox.gui.ToolboxSessionPanel.preInitialize(ToolboxSessionPan
el.java:70)
at
com.katalyzt.toolbox.gui.ToolboxSessionApplet.init(ToolboxSessionApplet.java
:28)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)
Found initializer:
jar:file:/C:/java/Katalyzt/lib/ext/Case.jar!/META-INF/ext.initializersIt is the standard secure java.net.URLClassLoader that I am using to load the classes. I create an instance of this with a URL[] specifying the urls of dynamic extension jars. Someone suggested that security restrictions may be to blame but it also occurs with the applet viewer with all class loading restrictions turned off. The resource files contained in the jars do become available. Someone suggested was signing the jars which I will check today.
-
IDOCS: One time customer Processing Issue with TRMTYP
Hi Gurus,
We are working on the process of Transfer of Location Master from SAP ECC 6.0 to Third Party TMS and we are facing the following problems: While transmitting One Time Customer:
In case of one time customer Account group used are CPD and CPDA. And when we send TPSLOC01 IDOC the TRMTYP has to be OC but it is taking by default CU.
As per my understanding:
Customer one time or regular is determined based on Account Group.
Please guide us on the same to get OC instead of CU in case of one time customer location transfer.
Thanks&Regards
SreekanthHi All,
I am closing this as there are no updates on this.
Thanks a lot.
Sreekanth -
Custom event not traced in the SWEL transaction
Hi Experts,
In my development server I have created a custom BOR ZBUS2078 with few custom events and delegate it to the standard BOR BUS2078.
I have moved the same to quality. But i could not find the trace for the custom events of ZBUS2078 unlike the standard events of BUS2078 in the SWEL transaction .
However those custom events are getting triggered in my development server.
I have checked the delegation and the custom BOR in the quality and they are same as in development server
Object type : BUS2078
Delegation type : ZBUS2078
What could be the problem and how to resolve it?
Please provide your valuable solution and suggestions.
Thanks in Advance.
Regards
K ArasuIssue resolved. I have maintained those custom events in SWEC in quality server.
-
I'm new to flex and how it handles Event Bubbling. I can make a custom event work with this code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
applicationComplete="init()" name="app">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import flash.events.Event;
import mx.controls.Alert;
private function init():void {
addEventListener("myEvent",testListener);
var testEvent:Event = new Event("myEvent",true);
dispatchEvent(testEvent);
private function testListener(event:Event):void {
Alert.show("Trigger Worked");
]]>
</fx:Script>
</s:Application>
But when I break out the code so the Event fires in a class the parent does not catch it.
MyEvent.as file:
package comp {
import flash.display.MovieClip;
import flash.events.Event;
public class MyEvent extends MovieClip{
public function MyEvent() {
var testEvent:Event = new Event("myEvent",true);
dispatchEvent(testEvent);
TestEvents.mxml file:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
applicationComplete="init()" name="app">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import comp.MyEvent;
import flash.events.Event;
import mx.controls.Alert;
private function init():void {
addEventListener("myEvent",testListener);
var tempEvent:MyEvent = new MyEvent();
private function testListener(event:Event):void {
Alert.show("Trigger Worked");
]]>
</fx:Script>
</s:Application>
I know I'm missing something simple. Could someone please point me in the correct direction.
Thanks,
SolThanks for the help!!! I got it to work using most of your code. The only change I had to make was move the dispatchEvent out of the construtor and into it's own function. That way the listener is definded before it fires.
Now I noticed you added the listener to the object itself is this bubbling? I thought if you have bubbling turned on the main app can have the listener and if a child fires an event it would bubble up. If the listerner is not on the MyEvent class it does not work.
Here is the new Working code if you take the : tempMyEvent off this line:
addEventListener(MyEvent.MY_EVENT, myEventHandler);
it does not work
Should it? Should the event bubble up and still be fired?
Below is working code:
MyEvent.as
package comp {
import flash.display.MovieClip;
import flash.events.Event;
public class MyEvent extends MovieClip{
public static const MY_EVENT:String = 'myEvent';
public function MyEvent() {}
public function disEventTest():void {
dispatchEvent(new Event(MyEvent.MY_EVENT,true));
TestEvents.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
applicationComplete="init()" name="app">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import comp.MyEvent;
import flash.events.Event;
import mx.controls.Alert;
private function init():void {
var tempMyEvent:MyEvent = new MyEvent();
tempMyEvent.addEventListener(MyEvent.MY_EVENT, myEventHandler);
tempMyEvent.disEventTest();
private function myEventHandler(event:Event):void {
Alert.show("Trigger Worked");
]]>
</fx:Script>
</s:Application>
Thanks again for your help this will at least get me moving forward again.
Sol -
Hi,
I have Custom workflow and Business Object for BUS2105. It is working fine and generating and email notification for next user to take a decision on the PR. Now, the issue is when a user cancel the one release steps two events are getting triggered (RELEASESTEPCREATED & SIGNIFICANTLYCHANGED). To handle this i have used these two events (RELEASESTEPCREATED & SIGNIFICANTLYCHANGED) in Basic data of the workflow. And I have used the Fork to handle these events 1 to run the normal business logic and other to send email notification to notify the PR is step is cancelled. In this email notify I have used the wait step to wait for the event SIGNIFICANTLYCHANGED. But the workflow is just executing the business process and workflow is completed.
Could you please let me know the how to handle this situation.
Thanks,
Sriram POnna.Hello,
Define SIGNIFICANTLYCHANGED as a terminating event for your workflow.
regards
Rick Bakker
hanabi technology
Maybe you are looking for
-
Center text horizontally and vertically on composition?
Hello, I'm working on a short projects (15 minutes length). Every 30 seconds a title fade in/out against a blank (grey) composition. How do I go about easily centering the text (single word) on the composition both horizontally and vertically? I know
-
Complex query using 'sql like' statement.
Given the following basic class structure. public class Project { private String name; private Architecture architecture; private Resources resources; public Architecture getArchitecture(); public void setArchitecture(Archite
-
In case of service notification, is approval functionality possible ? Can we have something similar to purchase order approvals (release strategy) ? I mean the service notification should be approved by defined user or group. Can anybody suggest some
-
Encountered an error "PLS-00103: Encountered the symbol "CREATE" when expec
HI All, I am creating a procedure and trying to use temp table... Here is the code": PROCEDURE P_PARENT_TREE topic_id_in IN NUMBER, topic_hierarchy_details_out OUT SYS_REFCURSOR ) IS temp_children_level topic_children.children_level%TYP
-
Downloaded OS x Lion two days ago and since then no wifi. Help!!
Hi. Had an iMac one week and in my excitement o downloaded my free OS X Lion. Since then I've used it twice and both times I can't connect to the Internet. I feel so disappointed at this as I'm no good with computers at all and it worked fine before