Problems with custom events

I'm trying to figure out this problem I'm having with custom events, I've read all the documents and tutorials that I can find, and this bit still makes no sense.

I have the following configuration:

LoginForm: custom component (which is created as a popup via the PopupManager)
ApplicationHeader: custom component (which is added to the MXML application)
application: creates the LoginForm as a popup via the PopupManager, has ApplicationHeader defined in the MXML.

When a user logs in the LoginForm dispatches an event customized, there are two defined listeners:

1. in the application:

private void showLoginForm(): void {}
var loginForm:LoginForm = LoginForm (PopUpManager.createPopUp (this, LoginForm, true));
loginForm.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
}

2. in the component custom of ApplicationHeader :

private function init (): void {}
parent.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
}

When the event is dispatched the request listener picks it up as expected, however the listener inside the custom component sees ever-even if the event is set to bubble.

The only way I managed to get this working is to do the following in the application:

private void userLoggedInHandler (event:UserLoggedInEvent.USERLOGGEDINEVENT): void {}
// .. the event handling logic
the return of the event
dispatchEvent (event);
}

This makes no sense at all, what happens if I didn't want the application to handle the event itself. There is a line in the documentation of the event
who says "You can only save a listener of events with an object if that object dispatches the event." who could explain it, but it is still absurd.

Any help/tips/examples would be most useful as I am pulling my hair out here.

Never mind, I just read this post ( http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid = 1257178 & highlight_key = y & keyword1 = custom % 20components) and I was pointed in the right direction - I had to add the metadata for the event to the application.

Tags: Flex

Similar Questions

  • Problem with the event

    Hello
    I am facing a problem with the events. Please Ref. Event.zip the attachment.

    AEv.vi is a LV2G used for the reading/Generate/Init/destroy the event. Test2.VI is a main vi (we must run this vi)

    The AEv.vi Init action must be done in the other vi (other than the Test2.vi:- but for the objective test I've initialized in Test2.vi only).

    Test2.VI is used for genetate event.

    I could have called statically AEv.vi inside the Test2.vi to generate an event... but the path that comes is decided when running... (I have many live similar to AEv.vi...) .. who decided at run time...)

    The problem:

    When I run Test2.vi, it gives me the error code 1 (try running test2.VI... it gives the dialogue on the occurrence of the error)...

    Can someone fix this?

    Thank you!

    I modified your screws to do what I think you want.  The way you did the user events will not work.  I added a line to send orders to Ev.vi

  • Problem with custom in an ActionScript component events

    All,

    I hope that my question is quite minor and front right to sort but for the life of me I can't understand it.

    I wrote an ActionScrip component that performs a logic (transformation of coordinates grographic).  Treatment can take a while and relies on calls to a number of server-based processes which are all works well.  The process of transformation of coordinates is started with a call to a public method in the main application component.

    helyx package
    {

    import flash.events.Event;
    import flash.events.EventDispatcher;

    Import mx.controls.Alert;
    Import mx.rpc.events.FaultEvent;

    [Event (name = "gridConverted_success" type = "flash.event.Event")]

    public static const SUCCESS: String = "gridConvert_success";

    SerializableAttribute public class GridConverter extends EventDispatcher
    {

    private void projectCompleteHandler(event:GeometryServiceEvent):void
    {

    / * logic to fill the _mgrsGrid variable * /.


    var eventObject:GridConverted = new GridConverted (GridConverted.SUCCESS);
    eventObject.mgrsGrid = _mgrsGrid;
    dispatchEvent (eventObject);

    }

    }

    In addition to the ActionScript component which respects the transformation logic I also coded a separate custom event that returns the output of the transformation to the main application:

    helyx package
    {
    import flash.events.Event;

    SerializableAttribute public class GridConverted extends Event
    {
    public static const SUCCESS: String = "gridConvert_success";

    public void GridConverted (type: String, bubbles: Boolean = false, cancelable: Boolean = false)
    {
    Super (type, bubbles, cancelable);
    }

    public var mgrsGrid:String;

    }
    }

    In the main application that starts the process, I have the following code to add a listener for the event:

    private function init (): void
    {

    / * other logics... * /.

    addEventListener (GridConverter.SUCCESS, gridConvertedHandler);

    }

    private void gridConvertedHandler(event:Event):void
    {
    txtGrid.text = gridConverter.mgrsGrid ();
    }

    My problem is that, while there is no error thrown 'gridConvertedHandler' is never called in response to the call 'dispatchEvent() '.

    Grateful for any thoughts...

    Tony

    You have added an event listener to the main application class which is not the one that actually dispatches the event. The auditor should be added to the instance of your GridConverter class.

    private function init (): void
    {

    / * other logics... * /.

    myGc. addEventListener (GridConverter.SUCCESS, gridConvertedHandler);

    }

  • Problem with custom "CTRL + <" shortcut in Photoshop CS6 or CC (Windows 7).

    Hello

    I have a problem with a shortcut customized in Photoshop CS6 and CC. It works fine in Photoshop CS5.

    I put the "CTRL + <" shortcut to the command "flatten image." I use it for years, so it's difficult to change my habits of . I saved the shortcuts and everything works fine until I have restart Photoshop.

    After restarting Photoshop, the shortcut is automatically set on "CTRL + &"! I edited the file ".kys" where my custom shortcut is saved, and the file is good:


    < control type = "static" id = "1141" name = "Flatten image" >


    < shortcut > Ctrl + & lt; < / shortcut >

    I maybe it might be a problem with the custom workspace that also store shortcuts but this file is fine too.

    I don't really know how this is possible because the files are correct... Photoshop saves this values elsewhere?

    I would really appreciate help with this.

    Thank you

    G.

    Hi people,

    Or is that what I should say hi?

    Looks like you found a big bug.  The thing is, this bug is also bit strange...

    First of all, CNTRL +.< does="" indeed="" change="" to="" cntrl+&="" on="" both="" win="" and="" mac. ="" that="" said,="" this="" is="" only="" an="" issue="" for="" french,="" german,="" italian,="" spanish,="" and="" danish,="" not="" english,="" czech,="" or="" romanian,="" as="" this="" key="" is="" \="" and="" cntrl+\="" is="" assigned="" to="" select="" layer="" mask="" in="" channel="" panel="" in="" the="" later="" languages. ="" i've="" tried="" in="" for="" a="" number="" of="" different="" commands="" and="" the="" results="" are="" the="">

    In addition, however, once I met the problem ONCE on Mac, the app correctly prevents its use again.  Odd.  Windows has no these "belts" for this problem.

    I went ahead and logged a bug.  To be honest, I don't expect that the key (to the left of the W on the French keyboard, to the left of the Z for English) to work as a hotkey in general as it is very dependent on language, but its transformation of< to="" &="" is="" pretty="">

    Thank you

    David

  • Problem with xfa.event.change in 3.3 XFA

    Hi all

    I found a problem with the way in which that XFA 3.3 treats the script below on a change event when a user more than 1 character in a textfield dough.

    sChange var = xfa.event.change;

    If ((sChange.length>1)) {}

    App.Alert ("Bad User\nCopy and paste has been disabled for this field");

    throw change

    XFA. Event.change = "";

    }

    XFA 3.0 the alert is sent, the change is eliminated, XFA 3.3, the alert is sent and persists the change.

    Any ideas?

    Yes, unfortunately, this is a known bug in Acrobat X and XFA forms.  He is currently in the study...  If you are targeting Acrobat or Reader 9.1 or later (not 10.0 or later), and then it works fine.

    Mark

  • Some problems with custom skin

    Hello

    I have created custom skin and I have some problems with it.

    (* 1) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-09-29.7372305410] item of Navigation within the Navigation pane command appears quite a color must be white, but gets by default the font for application (dark green) color. *
    My definition of the skin is the following:

    / * NAVIGATION PANE * /.
    AF | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end.gif'); width: 4px ;}}
    AF | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}

    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content-selected.gif') ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content-selected.gif') ;}}
    AF | navigationPane - tabs:tab {margin right: 2px ;}}
    AF | navigationPane - tabs:tab - link {color: #ffffff; make-weight: bold ;}}
    AF | navigationPane - tabs:tab - link: hover {color: Red; make-weight: bold ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - link {color: #ffffff}

    (* 2) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-09-29.7372305410] menu scroll icons displayed twice: my and by default (rich). My definition of the skin is the following: *.

    / * MENU * /.
    AF | menu {- tr - visible elements: 2 ;}}
    AF | menu: depressed.
    AF | menu: stressed {(background-image:url('/skins/zilprcskin/img/menuHighlighted.gif') ;}}
    AF | : bar menu-point-text {color: White; make-weight: bold ;}}
    AF | menu: highlight: bar-point-text {color: #CEFFF1 ;}}
    AF | menu: bar-point-open-icon {(content:url('/skins/zilprcskin/img/small-arrow-down.gif'); margin-left: 2px ;}}
    AF | menu: go to the top icon {(content:url('/skins/zilprcskin/img/small-arrow-up.gif') ;}}
    AF | menu: go to the bottom-icon {(content:url('/skins/zilprcskin/img/small-arrow-down.gif') ;}}
    AF | : submenu of the menu-open-icon {(content:url('/skins/zilprcskin/img/small-arrow-right.gif') ;}}
    AF:menu:bar - point-text {make-weight: bold ;}}
    AF | commandMenuItem:menu - point-icon-style,
    AF | : submenu of the menu-icon-style {background-color: #a1caca; border: none ;}}
    AF | commandMenuItem: highlight: menu - item text.
    AF | commandMenuItem: highlight: menu-point-Accelerator,.
    AF | commandMenuItem: highlight: menu-point-open-indicator.
    AF | menu: highlight: submenu text,.
    AF | menu: highlight: submenu-Accelerator,.
    AF | menu: highlight: submenu Open indicator {background-color: #a1caca; border: none ;}}

    (* 3) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-10-01.6059969354] I also have a problem with default Panel box. Header font color should be white and ago strange empty space in header: *.

    / * DEFAULT CORE BOX PANEL * /.
    . AFPanelBoxHeaderCoreDefault:alias {color: #ffffff ;}}
    AF | panelBox::content:core:default {border-color: #149492 ;}}
    AF | panelBox:header - departure: kernel: default {(background-image: url('/skins/zilprcskin/img/tab-start.gif') ;}}
    AF | panelBox:header - Centre: kernel: default {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}
    AF | panelBox:header - end: core: default {(background-image: url('/skins/zilprcskin/img/tab-end.gif') ;}}

    Kuba

    Hello Kuba,

    I have a quick look in your message. For the moment I can solve one of your questions. The text of the panelBox header that you use skin:

     af|panelBox::header-element { color:White; } 
    

    Is on the white space, the 'skins/zilprcskin/img/tab-start.gif' image enough width? I use the same selectors (af | panelBox:header - departure: kernel: default af | panelBox:header - Centre: core: by default, af | panelBox:header - end: core: by default) and it works for me (but I'm not using an image, the only background color). Probably you need to change the width of header-early, restricting the scope and the lengthening of the Center header.

    As Simon said, Firebug is very useful to do this :)

    JVN

  • weird problem with flash events

    I use a RTP300 (NA unlocked with 3.1.24 latest firmware) router and I'm having a strange problem with my phone.  I think I've finally pushed back.  The problem occurs only in the following circumstances.  When I'm on the phone with a single contact, and I get a call waiting 'click', if the first caller hangs up (I say someone calls etc.), and then when I pick up the 'click', the other appellant does not at all - hear me (sometimes I can hear them perfectly, sometimes without even that).  This problem occurs only if the first caller hangs up - if the first caller stays on the line when I pick up the second call all right.  It does not help if I hang up before you press the flash on the first point of contact.  The only way to make it work, is if I take the second call until the first caller hangs up.

    I'm not using a NAT, the telephone is directly connected to a cable modem and has an external IP address, so it can't be the problem.  Any ideas?  Thank you.

    I don't yet know what was causing the problem, but I found a work around.
    Instead of connect my phone to the port of line 1, I went to port RJ11 2 line and voila! problem solved.  So as long as I don't have need a second phone line I'll be ok .

  • Problem with the events and Movieclips

    Hi all.

    I got myself in a situation where everything was perfect with zoom events, keyboard events and drag-, click of the mouse.

    The project is:

    A movieclip with image sequence: original background.

    And other clips: also images sequence (png)

    They were all separate specific mouse events and all the zoom and key events.

    Now wen I click on the button with the movieclip to function, only the png image sequence is turning and the main mc is not.

    What should I do to rotate active both regardless of the mcs and main mc also png with these.

    Help, please.

    Thank you in advance.

    use:

    var mcA:Array = [garage_horizon_mc, garage_moss_mc, garage_ocean_mc, gutter_ocean_mc, gutter_horizon_mc, Audrey r_moss_mc, main_mc];

    for (var i: int = 0; i<>

    mcA [i] .addEventListener (MouseEvent.CLICK, garageF);

    }

    function garageF(e:MouseEvent):void {}

    for (var i: int = 0; i<>

    mcA [i] .visible = false;

    }

    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.gotoAndStop (rotationframe);

    MC. Visible = true;

    whateverF (mc);

    }

    function whateverF(rotater_gah:MovieClip):void {}

    rotater_gah.offsetFrame_gah = rotater_gah.currentFrame;

    rotater_gah.offsetX_gah = 0;

    rotater_gah.percent_gah = 0;

    rotater_gah.addEventListener (MouseEvent.MOUSE_DOWN, startDragging_gah);

    rotater_gah.addEventListener (MouseEvent.MOUSE_UP, stopDragging_gah);

    }

    function startDragging_gah(e:MouseEvent):void {}

    e.currentTarget.addEventListener (MouseEvent.MOUSE_MOVE, drag_gah);

    e.currentTarget.offsetX_gah = e.target.mouseX;

    }

    function stopDragging_gah(e:MouseEvent):void {}

    e.currentTarget.removeEventListener (MouseEvent.MOUSE_MOVE, drag_gah);

    e.currentTarget.offsetFrame_gah = rotater_gah.currentFrame;

    }

    function drag_gah(e:MouseEvent):void {}

    e.currentTarget.percent_gah = (e.target.mouseX - e.currentTarget.offsetX_gah)/e.currentTarget.width;)

    var frame_gah:int = Math.round(e.currentTarget.percent_gah*e.currentTarget.totalFrames) + e.currentTarget.offsetFrame_gah + 1;

    While {(frame_gah>e.currentTarget.totalFrames)}

    frame_gah = e.currentTarget.totalFrames;

    }

    While (frame_gah<=0)>

    frame_gah += e.currentTarget.totalFrames;

    }

    e.currentTarget.gotoAndStop (frame_gah);

    }

  • Problem with custom jobs 11.1.1.5

    Hello experts!

    I have a problem with the import of my tasks to the new env. I had previously worked with 11.1.1.3, and my fine imported tasks. But I have problems in 11.1.1.5.
    My steps:
    (1) modify the weblogic.properties and add dirs I need.
    (2) OIM_ORACLE_HOME game
    (3) place my jars in SheduleTask dir and dir location metadata xml files
    (4) run weblogicImportmetadata.sh

    What's wrong? Or should I change smth in xml?

    Thank you.

    Excuse me, import ofc.

    Published by: VarlamAnd on February 9, 2012 02:56

    Published by: VarlamAnd on February 9, 2012 02:59

    You must change the namespace here in 11.1.1.5


    **
    Published by: Zaba Nayan on February 9, 2012 03:30

    Published by: Zaba Nayan on February 9, 2012 03:31

  • Small problem with the events of the listener

    I have a small interface with 5 radio buttons and a buttonfield and when i click buttonfield I create an event. all this works fine, but when I want to go back to the previous page I see pop up with 3 had to 'save, ignore, reject' and when I click on one of them I create a duplicate of the trial before.

    How can I go to the previous page without showing the pop-up with 3 coiches and without creating duplicate event?

    It's the listener code

    FieldChangeListener listener = new FieldChangeListener() {}
          
    ' Public Sub fieldChanged (field field, int context) {}
     
    {if (delivery. IsSelected())}
                               
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                     
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                     
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Delivered");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");
                       
    } else {}
    {if (GuastoMeccanico.IsSelected ())}

    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                         
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                         
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Guasto Meccanico");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    {if (IncidenteStradale.IsSelected ())}

    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                          
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                          
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Incident Stradale");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    {if (LavoriInCorso.IsSelected ())}
                             
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                           
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                           
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Works in Corso");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");
    } else {}
    {if (SenzaConsegna.IsSelected ())}
                                          
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                            
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                            
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Not delivered");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    Dialog.Inform ("Nessun elemento indication!");
    }
    }
    }
    }
    }
    }
    };

    Added on-screen, this code will replace the popup screen.

    I don't understand the second part of the question, that is to say the second invent.  Add this code and make sure that the popup is removed and then tell us if all your problems are solved.

    Also search the doc for this method in the object Screen to understand how it works.

    /*
    * Override to ignore the save/discard/Cancel dialog box
    */
    public boolean onSavePrompt() {}
    Returns true;
    }

  • Problem with custom validation error message record

    Hi, so I'm having a problem of application an error message customized a validator backup.   I ran the following SQL scripts and updated the XML file as follows:

    INSERT INTO commonXLAExtensionCache VALUES (' 1058811679F0-6F46-48FC - 9A 15 - 271EC9A7D0FQ ")
    "ClassificationRequired", "ReflectiveRequiredValidator", "Validation rules")


    INSERT INTO commonXLAExtensionCacheItem VALUES ('1059666651E8-A7F7-447-8CF5-8EE1F467C20Q',
    "1058811679F0-6F46-48FC - 9A 15 - 271EC9A7D0FQ ', 0, 'RequiredPropertyMessage ',.
    ' Specification must have a ranking

    < rule type '6501' = >

    < event condition 'save' = >

    < if type = "ReflectiveRequiredValidator" report = "true" required = "true" property = "ProductAttributes.Classifications" msgcache = "ClassificationRequired" / > "

    < / condition >

    < / rule >

    I get an error message:

    Server error in ' / gsm' Application.


    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and its origin in the code.

    Exception details: System.NullReferenceException: Object Reference not set to an instance of an object.

    Source of error:

    You have the stack trace in the error message? Assuming it's the cache:

    Give a try instead and see if that solves it.

    Delete the original entry and change the name and the inheritfrom of the ValidationMessages/ReflectiveRequiredValidator message cache, as follows:

    INSERT INTO commonXLAExtensionCache VALUES (' 1058811679F0-6F46-48FC - 9A 15 - 271EC9A7D0FQ ")

    "ValidationMessages/ReflectiveRequiredValidator", "ValidationMessages/ReflectiveRequiredValidator", "Validation rules")

  • Problems with custom HTML form entry

    Hey everybody. I try to include form fields of seizure of custom text in my Web site. It is and tiself is not a problem. I add an HTML object and insert the code.

    (However, I would like that there are 2 different styles 1) = > text background and gray and 2 white) = > blue background and white text. But as soon as I announced a form of the second type, the first chages to.

    What happens / how can I change this?

    Capture2.JPG

    Here is my code:

    1. < style type = "text/css" >

    form {make: 12px Lato, arial; make-weight: bold; color: #ffffff ;}}

    input {background-color: #0099ff; width: 220px; height: 24 PX; float: left; font: 14px Lato, arial; color: #ffffff; height: 25px ;}}

    < / style >

    < are method = "post" action = "send_form_email.php" >

    < input type = "text" name = "corevalue2" value = "You can count on me" / > < br / >

    < / make >

    (2) < style type = "text/css" >

    form {make: 12px Lato, arial; make-weight: bold; color: #333333}

    input {background-color: #ffffff; width: 547px; height: 24 PX; float: left; font: 14px Lato, arial; color: #333333; height: 25px ;}}

    < / style >

    "< are method ="post"action =" ">."

    " < input type ="text"name ="target4"value =" ' target4 ' / > < br / >

    < / make >

    I do not see the same behavior, made some changes in the code as target value is not defined.

    Muse is rendered the same value, as inserted in the code, but are made to a few changes with the code then this could cause the problem.

    Thank you

    Sanjit

  • problem with creatiocomplete event

    Hi all

    I call the function Encyclopedia event creationcomplete of canvas which is the component by default when add new mxml file in your project

    private function init (): void

    {

    objIcity = new CityService();

    cityArray = objIcity.GetCity ();

    dgCity.dataProvider = cityArray;

    dgCity.visible = true;

    lnkBCity.selectedIndex = 1;

    }

    the problem here is that he receives the error on saying "BOLD" line

    Cannot access a property or method of a null object reference. as I soar dgcity which is advancedatagrid in my design code is poster null it...

    Why this is happening because there is the control in the design...

    what I think this question can be as the creationcomplete controls are not created and yet it is why his error giving... If it's then where should the answer I call this function to bind the advancedatagrid

    < mx:ViewStack id = "vsCity" borderStyle = "solid" width = "100%" height = "80%" color = '0 x 323232' >

    < mx:VBox id = "vbAddCity" label = "Add City" backgroundColor = "0xDCDCDC" width = "100%" height = "100 percent" fontWeight = "bold" >

    < mx:HBox >

    < mx:Label id = "lblCityName" text = "Name of the city" / >

    < mx:TextInput id = "txtCityName" / >

    < / mx:HBox >

    < mx:HBox >

    < mx:Button id = "btnAdd" click = "chkSelection ()" label = "Add City" / > "

    < mx:Button id = "btnCancel" click = "" txtCityName.text = "" label = "Cancel" / > "

    < / mx:HBox >

    < / mx:VBox >

    < mx:VBox id = "vbViewCity" label = "View city" backgroundColor = "0xDCDCDC" width = "100%" height = "100 percent" fontWeight = "bold" horizontalAlign = "center" >

    < mx:AdvancedDataGrid id = "dgCity" visible = "false" / >

    < / mx:VBox >

    < / mx:ViewStack > < / mx:VBox >

    By default the ViewStack creates the first 'view' and its children. The value CreationPolicy = "all" and you should have no errors.

    Setting creationPolicy = "all" can be a performance hit if there are many points of view with a lot of the user interface. In this case, you may need to find another way to make sure that everything that needs to exist in the creationComplete has been initialized.

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.stardustsystems.com
    Adobe Flex development and Support Services

  • Problem with PPR event based on two fields.

    Hello

    I am facing a problem in PPR case based on two fields

    There are two fields in the page based on its values, the third element should be required Yes/No

    foreigners and classification are the attributes of the field

    When the alien is N and the classification is CONFIDENTIAL_IND or SECRET_IND
    then the DCN is the area that should be mandatory

    But when I chenge foreign to Y then also the DCN field shows mandatory
    Please find the question where I did worng with the code that is selected is the area I am facing problem.

    DcnRequired is TransientAttribute



    Code sample of the RPP:

    Method
        public void handleShipmentCreateValidations(){
            OAViewObject vo = (OAViewObject)findViewObject("ShippingRequestCreatePVO1");
            OARow row = (OARow)vo.first();
            
            OAViewObject shipVo = (OAViewObject)findViewObject("ShippingRequestCreateVO1");
            OARow shipRow = (OARow)shipVo.getCurrentRow();
            String reason = (String)shipRow.getAttribute("ShipmentReason");
            String classification = (String)shipRow.getAttribute("Classification");
            String foriegn = (String)shipRow.getAttribute("ForeignShipment");
            Date expected = (Date)shipRow.getAttribute("ExpectedReturnDate");
           String receipt = (String)shipRow.getAttribute("ReceiptBackoutInd");
           
            if (receipt == null || "N".equals(receipt)){
                row.setAttribute("PoRequired","no");
            }
            else if("Y".equals(receipt))
            {
                row.setAttribute("PoRequired","yes");   
            }
            
            
        if ("OTHER".equals(reason))
            {
                row.setAttribute("ShipOtherRender",Boolean.TRUE);
            }
          /*  if (reason == null){
                row.setAttribute("ShipOtherRender",Boolean.FALSE);
            }*/
            else {
                row.setAttribute("ShipOtherRender",Boolean.FALSE);
            }
            *if (("CONFIDENTIAL_IND".equals(classification)||"SECRET_IND".equals(classification))*
            *&& "N".equals(foriegn)) {*
                *row.setAttribute("DcnRequired","yes");*
            *}*
            *if ("N".equals(foriegn) &&*
            *("CONFIDENTIAL_IND".equals(classification)||"SECRET_IND".equals(classification))){*
                *row.setAttribute("DcnRequired","yes");*
            *}*
            *else {*
                *row.setAttribute("DcnRequired","no");*
               
            *}*  
             if (expected == null){
                row.setAttribute("PaperworkNeeded","no");
            }
            else if (expected != null) {
                 row.setAttribute("PaperworkNeeded","yes");
            }  
            if (foriegn == null || "N".equals(foriegn)){
                  row.setAttribute("ContractRequired","no");
                  row.setAttribute("AttentionRequired","no");
                  row.setAttribute("PublicDomainRequired","no");
              }
              else if  ("Y".equals(foriegn))
              {
                  row.setAttribute("ContractRequired","yes");
                  row.setAttribute("AttentionRequired","yes"); 
                  row.setAttribute("PublicDomainRequired","yes");
                  
              }
              
    
        }   
    Co code
          if ("UpdateValidations".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))    
          {        
            am.invokeMethod("handleShipmentUpdateValidations");    
            } 
    and ppr UpdateValidations event name

    Published by: user1000 on September 28, 2010 08:45

    Published by: user1000 on September 28, 2010 08:56

    Krishna

            if ("N".equals(foriegn) &&
            ("CONFIDENTIAL_IND".equals(classification)||"SECRET_IND".equals(classification))){
               row.setAttribute("DcnRequired","yes");
            }
            else {
                row.setAttribute("DcnRequired","no");
    
            }
    

    Seems same code you wrote again. Try using above code.

    Yet one thing trying to debug when your code runs when you select foreigners there

    Thank you
    AJ

  • Problems with certain events in the outlook calendar not no projection in Thunderbird

    It is an intermittent fault. Sometimes it shows all the events, i.e. all those created in outlook.com and local calendar, on other occasions, that it shows that some of the events created in outlook.com. It doesn't seem to be a trend specific to this problem.

    How do you add an outlook.com calendar to Thunderbird?

Maybe you are looking for