itemEditEnd not shooting in DataGrid

In a specific DataGrid is not shooting - all others in my work as an app very well. I got another Flex developer to look at my code just in case I go crazy or something and he thinks that it is a bug in the Flex framework somewhere I use Flex Builder 2.0.1 FWIW


The following isolated code has the same behavior (breakpoint in onEdit event listener func does not trigger). A large part of it may seem superfluous, but in a real application, it is necessary in the real application (I just tried to isolate the cause!).

Any ideas?

Quote:

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml '
creationComplete = "onInit (); »
>
< mx:Canvas
' xmlns:MX =' http://www.adobe.com/2006/mxml '
xmlns:WOCCU = "" org.WOCCU.Components. * ""
Width = "100%" height = "100%" id = "ccc".
paddingTop = paddingLeft = "0" "0" paddingRight = "0".
>
< mx:Script >
<! [CDATA]
Import mx.events.DataGridEvent;
Import mx.events.DataGridEventReason;
Import mx.collections.ArrayCollection;

DataProvider
private var _dp:ArrayCollection;

This will contain a table (hash) accessible by bottombar or somesync
[Bindable]
public var bottomBar:Array;

public function onInit (): void
{
_dp = new collection ArrayCollection ([{PK: 'Mast', label: "XXX" col1: 'Matthews', col2: 'XEXE', level: 1}]);
entrygrid.dataProvider = _dp;
trace ('init');

}


public void refresh (): void
{
TODO: check if the ID of the entity and other accessories are not empty!
Refresh the content or somesync
}

Callback function - when the data arrives
protected function onData(result:Array):void
{
Built our dataprovider or somesync
var tmpDPRow:Array;
var _bottomBar:Array = new Array();
_dp = new ArrayCollection();

for (var j: String in result) {}
First of all, check level. If 0 this bottombar line belongs.
If (result [j] ['level'] == '0') {}
pk: String var = result [j] ['PK'];
PK = PK. Replace("-","_"); n ' is not valid in the ID of the object, to replace us with _
_bottomBar [pk] = new Object();
_bottomBar [pk] ['label'] is result [j] ['label'];.
_bottomBar [pk] ['value'] is [j] result ['col2'];.
} else {}
Go on the fields
tmpDPRow = new Array();
tmpDPRow ["PK"] = result [j] ['PK'];
tmpDPRow ['label'] = result [j] ['label'];
tmpDPRow ["col1"] = result [j] ["col1"];
tmpDPRow ['col2'] = result [j] ['col2'];
_dp. AddItem (tmpDPRow);
}
}

Apply the lower bar
this.bottomBar = _bottomBar;
Apply to all the data to the datagrid control
this.entrygrid.dataProvider = _dp;

}

public void onEdit(event:DataGridEvent):void {}

trace ("fire on the whole!");
If (event.reason == DataGridEventReason.CANCELLED) {}
return;
}

SHOULD any EMERGENCY UPDATE frickin database!
This.Refresh (); Subtotals have changed - need to update
}


[]] >
< / mx:Script >
<!--
Note the hack below: column widths are ridiculously large values
The idea is that Flex will resize down and maintain proportions
->
"" < mx:DataGrid xmlns:mx = ' http://www.adobe.com/2006/mxml '
Width = "100%" height = "100%" showHeaders = 'false' itemEditEnd = "onEdit (event)" id = "entrygrid" > "
< mx:columns >
< mx:DataGridColumn = "0" visible width is 'false' dataField is 'PK' >
< / mx:DataGridColumn >
< mx:DataGridColumn width = "70000" itemRenderer = "mx.controls.TextInput" editable = "false" dataField = "label" > "
< / mx:DataGridColumn >
< mx:DataGridColumn width = "15000" itemRenderer = "mx.controls.TextInput" editable = "false" dataField = "col1" > "
< / mx:DataGridColumn >

< mx:DataGridColumn width = "15000" itemRenderer = "mx.controls.TextInput" rendererIsEditor = "true" editable = "true" dataField = "col2" > "
< / mx:DataGridColumn >
< / mx:columns >
< / mx:DataGrid >
< / mx:Canvas >
< / mx:Application >

Tags: Flex

Similar Questions

  • Script of not shooting

    Hi all

    I'm new to the application development and still in the learning phase, I began with the construction of the example Hello World for OS 7 and made a few tweaks for coding by adding additional features and by invoking the native maps app. When I upgraded to a Q10 I then carried on the application successfully to OS10 and decided to give him the native look and feel by using BBUI.js, but in doing so, it seems that one of the javascripts is not shooting.

    I tried all kinds of variations to rewrite the code but still no joy. I even used web Inspector, but it does not report them to the top of all the problems.

    If someone is able to help my coding how would you like to see.

    What about Dave

    Hello

    I solved my problem by setting a preference of background color in my config file

    Its a steep learning curve.

    Thank you

  • DataGrid: can I recover the data, BUT it does not show the datagrid control

    Hello

    Hi - I've traced data through php mysql in actionscript but it does not show the datagrid control. Here is my code.

    Import fl.controls.DataGrid;

    Import fl.controls.dataGridClasses.DataGridColumn;

    Import fl.data.DataProvider;

    Import fl.controls.ScrollPolicy;

    Import fl.managers.StyleManager; necessary to format the text in cells

    import flash.display.MovieClip;

    import flash.net.URLRequest;

    import flash.events.Event;

    import flash.events.MouseEvent;

    import flash.net.URLLoader;

    to import flash.net.URLVariables;

    import flash.net.URLRequestMethod;

    import flash.net.URLLoaderDataFormat;

    Create a new instance of the DataGrid component.

    var aDg:DataGrid = new DataGrid();

    var myDp:Array = new Array();

    var myData:URLRequest = new URLRequest ("http://www.cambridgekids.es/kglad/php/getUsers.php");

    myData.method = URLRequestMethod.POST;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = pouvez;

    loader.addEventListener (Event.COMPLETE, dataOnLoad);

    Loader.Load (mydata);

    function dataOnLoad(evt:Event) {}

    for (var i: uint = 0; i < evt.target.data.cant; i ++) {}

    myDp.push ({number: evt.target.data ["firstname" + i], Apellido:evt.target.data["lastname"+i]});})

    / / trace (evt.target.data ["firstname" + i]);

    }

    myDp.dataProvider = new DataProvider (myDp);

    }

    aDg.dataProvider = new DataProvider (myDp);

    aDg.columns = ['number', 'Apellido'];

    aDg.setSize (800,300);

    aDg.move (150,200);

    aDg.rowHeight = 40; / / allows 2 lines of text in the default text size.

    aDg.columns [0] .width = 80;

    aDg.columns [1] .width = 30;

    aDg.resizableColumns = true;

    aDg.verticalScrollPolicy = ScrollPolicy.AUTO;

    addChild (aDg);

    DOH! I thought I was in the flex forum so ignore my previous answer.

    You must set the dataProvider on the dg after completing the dataprovider with data so spend aDg.dataProvider = new DataProvider (myDp); at the end of the dataOnLoad method

  • 5 Lightroom import not shooting information with JPEG files

    When I shoot in raw 5 Lightroom doesn't have no problem importing my shooting information.  I try the super fine jpeg on an Olympus MDGs em 10 mark ii.  Lightroom matter very good photos, but there is no shooting of information that accompanies the photos.  Anyone know of a fix?  Thank you.

    Triple-check that you do not have an import of metadata preset active.  In the import window, right column, under apply during import, make sure that metadata are set to None before importing JPEG files:

    If this does not help, please download a JPEG sample directly from the camera (not imported by LR) card to Dropbox or similar and post the link here. We will check that indeed the EXIF metadata that are compatible with LR 5.

  • How not to sort datagrid column on double click

    Hello

    I'm currently building an application containing a DataGrid for the representation of data. I created a datagridheader custom in order to add an input text for the filtering of the columns (see code below).

    My goal is to hide the textinput and then display it on a double click on the header. So I would like to know how to avoid the type of this column whenever I double click. ?

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:GridItemRenderer ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" resize = "onColumnResize (event)" clipAndEnableScrolling = 'true' doubleClick = "managefilterField (event)" > "

    < fx:Declarations >

    <!-the default value of the sortIndicator < code > < code > property.

    It must be an IFactory for an IVisualElement.

    < p > This value is specified in a < code > < code > fx:Declaration block and can be overridden

    by a supporting statement < code > = "defaultSortIndicator" </postcode >

    in an MXML subclass. < /p >

    @langversion 3.0

    @playerversion flash 10

    @playerversion AIR 2.0

    @productversion flex 4.5

    ->

    < fx:Component id = "defaultSortIndicator" >

    < data s:Path = "M 3.5 7.0 L 0.0 0.0 7.0 0.0 L 3.5 7.0 L" implements = "spark.components.gridClasses.IGridVisualElement" >

    < fx:Script >

    <! [CDATA]

    Import spark.components.DataGrid;

    Import spark.components.Grid;

    /**

    * @private

    */

    public void prepareGridVisualElement(grid:Grid,_rowIndex:int,_columnIndex:int):void

    {

    const dataGrid:DataGrid = grid.dataGrid;

    If (! dataGrid)

    return;

    const color: uint = dataGrid.getStyle("symbolColor");

    arrowFill1.color = color;

    arrowFill2.color = color;

    }

    []] >

    < / fx:Script >

    < s:fill >

    < s:RadialGradient rotation = "90" focalPointRatio = "1" >

    <!---@private-->

    < s:GradientEntry id = "arrowFill1" color = "0" alpha = "0.6" / >

    <!---@private-->

    < s:GradientEntry id = "arrowFill2" color = "0" alpha = "0.8" / >

    < / s:RadialGradient >

    < / s:fill >

    < / s:Path >

    < / fx:Component >

    <!-displays the label of renderer property, which is the value of the column < code > < code > headerText.

    It must be an instance of a TextBase < code > < code > < code > < code > s:Label.

    < p > This Visual element is added to the < code > < code > labelDisplayGroup by of the rendering engine

    prepare() < code > < code > method.   Constraint of size/location specified by the labelDisplay

    define its location relative to the labelDisplayGroup. < /p >

    < p > This value is not specified with a < code > < code > fx:Declaration and can be overridden

    by a supporting statement < code > = "labelDisplay" < code >

    in an MXML subclass. < /p >

    @langversion 3.0

    @playerversion flash 10

    @playerversion AIR 2.0

    @productversion flex 4.5

    ->

    < s:Label id = "labelDisplay".

    Red left = "1" = "0" right = "0" top = low '0' = '0 '.

    textAlign = 'start '.

    fontWeight = "bold".

    verticalAlign = "middle".

    maxDisplayedLines = "1".

    showTruncationTip = "true" / >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    Import net.awl.ismp.console.components.misc.FilterCriteria;

    Import net.awl.ismp.console.events.ColumnFilteredEvent;

    Import net.awl.ismp.console.events.ColumnResizedEvent;

    Import mx.events.ResizeEvent;

    Import spark.components.gridClasses.IGridVisualElement;

    Import mx.core.IVisualElement;

    Import spark.components.DataGrid;

    Import spark.components.GridColumnHeaderGroup;

    Import spark.components.gridClasses.GridColumn;

    Import spark.primitives.supportClasses.GraphicElement;

    variables and constants of color chrome

    DEFAULT_COLOR_VALUE:uint private static const is 0xCC;.

    DEFAULT_COLOR:uint private static const is 0xCCCCCC;.

    Private static const DEFAULT_SYMBOL_COLOR:uint = 0 x 000000;

    private static var colorTransform:ColorTransform = new ColorTransform();

    /**

    * @private

    */

    private void dispatchChangeEvent(type:String):void

    {

    If (hasEventListener (type))

    {

    dispatchEvent (new Event (type));

    }

    }

    protected function onColumnResize(event:ResizeEvent):void

    {

    dispatchEvent (new ColumnResizedEvent (ColumnResizedEvent.COLUMNRESIZED_EVT, this.width, this.column.columnInde x));

    }

    //----------------------------------

    maxDisplayedLines

    //----------------------------------

    private var _maxDisplayedLines:int = 1;

    [Bindable ("maxDisplayedLinesChanged")]

    [Inspectable (minValue = "-1")]

    /**

    This property value is used to initialize the

    * < code > < code > maxDisplayedLines property of this converter

    * < code > labelDisplay < code > element.

    *

    * @copy #maxDisplayedLines spark.components.supportClasses.TextBase

    *

    * @default 1

    *

    * @langversion 3.0

    * @playerversion flash 10

    * @playerversion AIR 1.5

    * @productversion flex 4.5

    */

    public function get maxDisplayedLines (): int

    {

    Return _maxDisplayedLines;

    }

    override the stateChanged(oldState:String,_newState:String,_recursive:Boolean):void function

    {

    trace ("status changed to:" + oldState + "to" + newState);

    super.stateChanged (oldState, newState, recursive);

    }

    /**

    * @private

    */

    public function set maxDisplayedLines(value:int):void

    {

    If (value == _maxDisplayedLines)

    return;

    _maxDisplayedLines = value;

    If (labelDisplay)

    labelDisplay.maxDisplayedLines = value;

    invalidateSize();

    invalidateDisplayList();

    dispatchChangeEvent ("maxDisplayedLinesChanged");

    }

    //----------------------------------

    sortIndicator

    //----------------------------------

    private var _sortIndicator:IFactory;

    private var sortIndicatorInstance:IVisualElement;

    [Bindable ("sortIndicatorChanged")]

    /**

    * A visual element that appears when the column is sorted.

    *

    * < p > the sortIndicator visual element is added to the < code > < code > sortIndicatorGroup

    * by this converter < code > < code > prepare() method.  Constraint of size/location

    * specified by the sortIndicator set its location relative to the sortIndicatorGroup. < /p >

    *

    * @default null

    *

    * @langversion 3.0

    * @playerversion flash 10

    * @playerversion AIR 1.5

    * @productversion flex 4.5

    */

    public function get sortIndicator (): IFactory

    {

    return (_sortIndicator)? _sortIndicator: defaultSortIndicator;

    }

    /**

    * @private

    */

    public function set sortIndicator(value:IFactory):void

    {

    trace ("setSortIndicator");

    If (_sortIndicator is value)

    return;

    _sortIndicator = value;

    If (sortIndicatorInstance)

    {

    sortIndicatorGroup.includeInLayout = false;

    sortIndicatorGroup.removeElement (sortIndicatorInstance);

    sortIndicatorInstance = null;

    }

    invalidateDisplayList();

    dispatchChangeEvent ("sortIndicatorChanged");

    }

    /**

    * @private

    * Create and add the sortIndicator to the sortIndicatorGroup and the

    * labelDisplay in the labelDisplayGroup.

    */

    override public function prepare(hasBeenRecycled:Boolean):void

    {

    trace ("ready!");

    Super.Prepare (hasBeenRecycled);

    If (labelDisplay & & labelDisplayGroup & & (labelDisplay.parent! = labelDisplayGroup))

    {

    labelDisplayGroup.removeAllElements ();

    labelDisplayGroup.addElement (labelDisplay);

    }

    trace (sortIndicator);

    trace ("sortIndicatorInstance:" + sortIndicatorInstance);

    column: GridColumn = const this.column;

    If (sortIndicator & & column & & column.grid & & column.grid.dataGrid & & column.grid.dataGrid.columnHeaderGroup)

    {

    const dataGrid:DataGrid = column.grid.dataGrid;

    const columnHeaderGroup:GridColumnHeaderGroup = dataGrid.columnHeaderGroup;

    If (columnHeaderGroup.isSortIndicatorVisible (column.columnIndex))

    {

    If (! sortIndicatorInstance)

    {

    sortIndicatorInstance = sortIndicator.newInstance ();

    sortIndicatorGroup.addElement (sortIndicatorInstance);

    chromeColorChanged = true;

    invalidateDisplayList();

    }

    Initialize the sortIndicator

    sortIndicatorInstance.visible = true;

    const gridVisualElement:IGridVisualElement = sortIndicatorInstance as IGridVisualElement;

    If (gridVisualElement)

    gridVisualElement.prepareGridVisualElement (column.grid,-1, column.columnIndex);

    sortIndicatorGroup.includeInLayout = true;

    sortIndicatorGroup.scaleY = (column.sortDescending)? 1:-1;

    }

    on the other

    {

    If (sortIndicatorInstance)

    {

    sortIndicatorGroup.removeElement (sortIndicatorInstance);

    sortIndicatorGroup.includeInLayout = false;

    sortIndicatorInstance = null;

    }

    }

    }

    }

    private var chromeColorChanged:Boolean = false;

    private var colorized: Boolean = false;

    /**

    * @private

    * Apply the chromeColor style.

    */

    override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function

    {

    trace ("update list display");

    Apply the color chrome

    If (chromeColorChanged)

    {

    var chromeColor:uint = value ("chromeColor");

    If (chromeColor! = DEFAULT_COLOR | colorized)

    {

    colorTransform.redOffset = ((chromeColor & (0xFF << 16)) > > 16)-DEFAULT_COLOR_VALUE;

    colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) > > 8)-DEFAULT_COLOR_VALUE;

    colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;

    colorTransform.alphaMultiplier = alpha;

    transform.colorTransform = colorTransform;

    var exclusions: Array = [labelDisplay, sortIndicatorInstance];

    Apply reverse colorization exclusions

    If (exclusions & & exclusions.length > 0)

    {

    colorTransform.redOffset = - colorTransform.redOffset;

    colorTransform.greenOffset = - colorTransform.greenOffset;

    colorTransform.blueOffset = - colorTransform.blueOffset;

    for (var i: int = 0; i < exclusions.length; i ++)

    {

    var exclusionObject:Object = exclusions [i];

    If (exclusionObject & &)

    (exclusionObject is DisplayObject |)

    exclusionObject is GraphicElement))

    {

    colorTransform.alphaMultiplier = exclusionObject.alpha;

    exclusionObject.transform.colorTransform = colorTransform;

    }

    }

    }

    colorized = true;

    }

    chromeColorChanged = false;

    }

    super.updateDisplayList (unscaledWidth, unscaledHeight);

    }

    /**

    * @private

    */

    override public function styleChanged(styleProp:String):void

    {

    var allStyles:Boolean =! styleProp | styleProp == "styleName";

    super.styleChanged (styleProp);

    If (allStyles | styleProp == "chromeColor")

    {

    chromeColorChanged = true;

    invalidateDisplayList();

    }

    }

    protected function managefilterField(event:MouseEvent):void

    {

    trace ("double click on sortIndicator:" + this.sortIndicatorInstance);

    this.filterInput.visible =! this.filterInput.visible;

    this.filterInput.includeInLayout = this.filterInput.visible;

    this.filterSpacer.visible = this.filterInput.visible;

    this.filterSpacer.includeInLayout = this.filterInput.visible;

    if(!this.filterInput.visible)

    {

    this.filterInput.text ="";

    dispatchEvent (new ColumnFilteredEvent (ColumnFilteredEvent.COLUMNFILTERED_EVT, new FilterCriteria (this.column.dataField, this.filterInput.text)));

    }

    this.filterInput.setStyle ("borderColor", 0xFF6319);

    this.filterInput.setStyle ("focusColor", 0xFF6319);

    () this.filterInput.setStyle

    }

    protected function onTextInputSelection(event:MouseEvent):void

    {

    Event.stopImmediatePropagation;

    this.filterInput.setStyle ("borderColor", 0xFF6319);

    this.filterInput.setStyle ("focusColor", 0xFF6319);

    }

    protected function onKeyUp(event:KeyboardEvent):void

    {

    if(Event.charCode==Keyboard.Enter)

    {

    internship. Focus = null;

    }

    }

    protected function onFocusOut(event:FocusEvent):void

    {

    this.filterInput.setStyle ("borderColor", 0x00ff00);

    this.filterInput.setStyle ("focusColor", 0x70B2EE);

    dispatchEvent (new ColumnFilteredEvent (ColumnFilteredEvent.COLUMNFILTERED_EVT, new FilterCriteria (this.column.dataField, this.filterInput.text)));

    }

    []] >

    < / fx:Script >

    < s: states >

    < name s: State = "normal" / >

    < name s: State = "flat" / >

    < name s: State = "low" / >

    < / s: states >

    <!-layer 1: shadow->

    <!---@private-->

    < s:Rect id = "shadow" left = "-1" right = "-1" high = low '-1' = '-1' radiusX = "2" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    < s:GradientEntry color = "0x000000".

    Color.Down = "0xFFFFFF"

    Alpha = "0.01".

    Alpha. Down = "0" / > "

    < s:GradientEntry color = "0x000000".

    Color.Down = "0xFFFFFF"

    Alpha = "0.07"

    Alpha. Down = "0.5" / > "

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 2: fill->

    <!---@private-->

    < s:Rect id = "fill" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    < s:GradientEntry color = "0xFFFFFF".

    Color.hovered = "0xBBBDBD"

    Color.Down = "0xAAAAAA"

    Alpha = "0.85" / >

    < s:GradientEntry color = "0xD8D8D8".

    Color.hovered = "0x9FA0A1"

    Color.Down = '0 x 929496'

    Alpha = "0.85" / >

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 3: filling lowlight->

    <!---@private-->

    < s:Rect id = "lowlight" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation '270' = >

    < s:GradientEntry color = "0x000000" ratio = "0,0" alpha = "0,0627" / >

    < s:GradientEntry color = "0x000000" ratio = alpha '0.48' = "0,0099" / >

    < s:GradientEntry color = "0x000000" ratio = alpha "0.48001" = "0" / >

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 4: highlight of fill->

    <!---@private-->

    < s:Rect id = "highlight" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    < s:GradientEntry color = "0xFFFFFF".

    ratio = "0.0".

    Alpha = "0.33".

    Alpha.hovered = "0.22"

    Alpha. Down = "0.12" / >

    < s:GradientEntry color = "0xFFFFFF".

    ratio = '0.48 '.

    Alpha = "0.33".

    Alpha.hovered = "0.22"

    Alpha. Down = "0.12" / > "

    < s:GradientEntry color = "0xFFFFFF".

    ratio = "0.48001."

    Alpha = "0" / >

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 5: race to highlight (all States except down)->

    <!---@private-->

    < s:Rect id = "highlightStroke" left = "0" right = "0" top = low '0' = '0' excludeFrom 'low' = >

    < s:stroke >

    < s:LinearGradientStroke rotation = "90" weight = "1" >

    < s:GradientEntry color = "0xFFFFFF" alpha.hovered = "0.22" / > "

    < s:GradientEntry color = "0xD8D8D8" alpha.hovered = "0.22" / > "

    < / s:LinearGradientStroke >

    < / s:stroke >

    < / s:Rect >

    <!-layer 6: highlight of the stroke (to the low State only)->

    <!---@private-->

    < s:Rect id = "hldownstroke1" left = "0" right = "0" top = low "0" = "0" includeIn = "bottom" >

    < s:stroke >

    < s:LinearGradientStroke rotation = "90" weight = "1" >

    < s:GradientEntry color = "0x000000" alpha = "0.25" ratio = "0,0" / >

    < s:GradientEntry color = "0x000000" alpha = "0.25" ratio = "0.001" / >

    < s:GradientEntry color = "0x000000" alpha = "0.07" ratio = "0,0011" / >

    < s:GradientEntry color = "0x000000" alpha = "0.07" ratio = "0,965" / >

    < s:GradientEntry color = "0x000000" alpha = "0.00" ratio = "0.9651" / >

    < / s:LinearGradientStroke >

    < / s:stroke >

    < / s:Rect >

    <!---@private-->

    < s:Rect id = "hldownstroke2" left = "1" right = "1" top down = '1' = '1' includeIn = "bottom" >

    < s:stroke >

    < s:LinearGradientStroke rotation = "90" weight = "1" >

    < s:GradientEntry color = "0x000000" alpha = "0.09" ratio = "0,0" / >

    < s:GradientEntry color = "0x000000" alpha = "0.00" ratio = "0.0001" / >

    < / s:LinearGradientStroke >

    < / s:stroke >

    < / s:Rect >

    <!-< s:Rect id = "fill" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    "< s:GradientEntry color.normal"0xf9f9f9"color.hovered =" = 0xfcfdfa ".

    Color.Down = "0xdceac2" alpha = "0.85" / > "

    "< s:GradientEntry color.normal"0xeaeaea"color.hovered =" = 0xdceac2 ".

    Color.Down = "0xd2e1b5" alpha = "0.85" / > "

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >->

    <!-< right '7' = left s:VGroup = '7' high low = '5' = '5' gap = "6" verticalAlign = "middle" >

    < s:TextInput width = "100%" / >

    < s:HGroup width = "100%" >

    < s:Group id = "labelDisplayGroup" width = "100%" / >

    < s:Group id = includeInLayout = "false" "sortIndicatorGroup" / >

    < / s:HGroup >

    < / s:VGroup >->

    < s:VGroup verticalAlign = "middle" left = "7" = "5" top right = '7' low gap '5' = '2' = >

    "< s:TextInput id ="filterInput"width ="100% "visible ="false"includeInLayout = 'false' keyUp =" onKeyUp (event) "Focusout/focusouthandler() =" onFocusOut (event) "click ="onTextInputSelection (event)"/ >

    < s:Spacer id = "filterSpacer" visible = "false" includeInLayout = "false" height = "5" / >

    < s:HGroup width = "100%" height = "100%" verticalAlign = "middle" >

    < s:Group id = "labelDisplayGroup" width = "100%" / >

    < s:Group id = includeInLayout = "false" "sortIndicatorGroup" / >

    < / s:HGroup >

    < / s:VGroup >

    < / s:GridItemRenderer >

    You can use 'alt' or 'Ctrl' click and just check on the event to see if one of these is 'true '.

  • Tab doesn't work does not correctly for Datagrid ComboBox ItemEditor

    When you run the app type a1 in the discovery of an App combo box and then type the tab key.

    Click the 3rd row in the column as Bs and show a combobox.

    Type a3 and her and then press ENTER.  Note that the A3 is saved under the selected and recorded on the dataprovider element

    Press the return key back key and press ENTER.  Note that the null value is saved and that nothing is selected.

    Type a3 again and press ENTER.

    Hit of the new backspce, but this time typing the tab key.  Note that the previous value is returned.  Oops.

    {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".

    xmlns:vo = "valueObjects.*".

    Width = "100%" height = "100%" >

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.events.FlexEvent;

    protected function aCBLabel(item:Object):String

    {

    If (item! = null)

    Return item.name;

    on the other

    Return ' ';

    }

    protected function bDG_creationCompleteHandler(event:FlexEvent):void

    {

    bDG.selectedIndex = 0;

    }

    protected function bAFormat(item:Object,_column:DataGridColumn):String

    {

    If (item [column.dataField]! = null)

    return item [column.dataField] .name;

    on the other

    Return ' ';

    }

    []] >

    < / fx:Script >

    < fx:Declarations >

    < vo: ADto id = "aDto" / >

    < vo: BDto id = "bDto" / >

    < s:ArrayCollection id = "aList" >

    < vo: ADto >

    < vo: id > 1 < / vo: id >

    < name: vo > a1 < / vo: name >

    < vo: bs >

    < vo: BDto >

    < vo: id > 1 < / vo: id >

    < vo: aDto >

    < vo: ADto >

    < vo: id > 1 < / vo: id >

    < name: vo > a1 < / vo: name >

    < / vo: ADto >

    < / vo: aDto >

    < / vo: BDto >

    < vo: BDto >

    < vo: id > 2 < / vo: id >

    < vo: aDto >

    < vo: ADto >

    < vo: id > 2 < / vo: id >

    A2 < vo: name > < / vo: name >

    < / vo: ADto >

    < / vo: aDto >

    < / vo: BDto >

    < vo: BDto >

    < vo: id > 0 < / vo: id >

    < / vo: BDto >

    < / vo: bs >

    < / vo: ADto >

    < vo: ADto >

    < vo: id > 2 < / vo: id >

    A2 < vo: name > < / vo: name >

    < vo: bs >

    < vo: BDto >

    < vo: id > 3 < / vo: id >

    < vo: aDto >

    < vo: ADto >

    < vo: id > 3 < / vo: id >

    < name: vo > a3 < / vo: name >

    < / vo: ADto >

    < / vo: aDto >

    < / vo: BDto >

    < vo: BDto >

    < vo: id > 0 < / vo: id >

    < / vo: BDto >

    < / vo: bs >

    < / vo: ADto >

    < / s:ArrayCollection >

    < s:ArrayCollection id = "Ballista" >

    < vo: ADto >

    < vo: id > 1 < / vo: id >

    < name: vo > a1 < / vo: name >

    < / vo: ADto >

    < vo: ADto >

    < vo: id > 2 < / vo: id >

    A2 < vo: name > < / vo: name >

    < / vo: ADto >

    < vo: ADto >

    < vo: id > 3 < / vo: id >

    < name: vo > a3 < / vo: name >

    < / vo: ADto >

    < / s:ArrayCollection >

    < / fx:Declarations >

    < source = fx:Binding "aCB.selectedItem as ADto" destination = "aDto" / > "

    < s:Form id = "AForm" width = "700" height = "170" >

    < s:layout >

    < s:BasicLayout / >

    < / s:layout >

    < s:HGroup x = "0" y = "50" width = "670" height = "60" >

    < s:Label height = "25" fontWeight = "bold" = "find a" verticalAlign = "middle" / >

    < s:ComboBox id = "aCB".

    prompt = "enter or select a name.

    labelFunction = "aCBLabel."

    x = "110" y = "10" width = "375" >

    < mx:ArrayCollection id = list "asList" = "{aList}" / >

    < / s:ComboBox >

    < / s:HGroup >

    < / s:Form >

    < mx:DataGrid id = "bDG" x = "10" y = "140" width = "450" height = "200".

    Editable = "true".

    dataProvider = "{aDto.bs}" "

    creationComplete = "bDG_creationCompleteHandler (event)" >

    < mx:columns >

    < mx:DataGridColumn id = "bidDC".

    headerText = "id".

    Editable = "true".

    dataField = "id".

    editorDataField = 'value '.

    Width = "50" / >

    < mx:DataGridColumn id = "bNameDC".

    headerText = "Like Bs"

    Editable = "true".

    dataField = "aDto.

    labelFunction = "bAFormat."

    editorDataField = 'value '.

    Width = "150" >

    < mx:itemEditor >

    < fx:Component >

    < s:MXDataGridItemRenderer implements = "mx.managers.IFocusManagerComponent" >

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.controls.dataGridClasses.DataGridListData;

    Import mx.controls.listClasses.BaseListData;

    Import mx.events.FlexEvent;

    Import spark.events.DropDownEvent;

    Import spark.events.IndexChangeEvent;

    [Bindable]

    public var down: ArrayCollection;

    protected function cb_InitializeHandler(event:FlexEvent):void

    {

    Low = outerDocument.bAList;

    aDto = outerDocument.bDG.selectedItem.aDto;

    If (aDto! = null)

    {

    var t:ADto;

    for (var i: int = 0; i < bAs.length; i ++)

    {

    t = low [i];

    If (aDto.id is t.id)

    {

    cb.selectedIndex = i;

    break;

    }

    }

    }

    }

    override public function setFocus (): void

    {

    cb.setFocus ();

    }

    public function get value (): ADto

    {

    If (cb.isDropDownOpen)

    cb.closeDropDown (true);

    cb.validateNow ();

    aDto = cb.selectedItem as ADto;

    return aDto

    }

    protected function cb_closeHandler(event:DropDownEvent):void

    {

    aDto = cb.selectedItem as ADto;

    }

    []] >

    < / fx:Script >

    < fx:Declarations >

    < vo: ADto id = "aDto" / >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < s:ComboBox id = "cb".

    Width = '100% '.

    prompt = "{aDto.Name}" "

    dataProvider = "low" {} ".

    labelField = 'name '.

    Initialize = "cb_InitializeHandler (Event)" "

    Close = "cb_closeHandler (Event)" >

    < / s:ComboBox >

    < / s:MXDataGridItemRenderer >

    < / fx:Component >

    < / mx:itemEditor >

    < / mx:DataGridColumn >

    < / mx:columns >

    < / mx:DataGrid >

    < / s:Application >

    {Code}

    {Code}

    package valueObjects

    {

    import com.adobe.fiber.services.IFiberManagingService;

    import com.adobe.fiber.valueobjects.IValueObject;

    Import mx.collections.ArrayCollection;

    Import valueObjects.BDto;

    import com.adobe.fiber.core.model_internal;

    Using namespace model_internal;

    public class com.adobe.fiber.valueobjects.IValueObject implements ADto

    {

    private var _internal_id: int;

    private var _internal_name: String;

    private var _internal_bs: ArrayCollection collection;

    model_internal var _internal_bs_leaf:valueObjects.BDto;

    public void ADto()

    {

    }

    public function get id(): int

    {

    Return _internal_id;

    }

    public function get name(): String

    {

    Return _internal_name;

    }

    public function get bs(): ArrayCollection collection

    {

    Return _internal_bs;

    }

    public function set id(value:int): void

    {

    var oldValue:int = _internal_id;

    If (oldValue! == value)

    {

    _internal_id = value;

    }

    }

    public function set name(value:String): void

    {

    var oldValue:String = _internal_name;

    If (oldValue! == value)

    {

    _internal_name = value;

    }

    }

    public function set bs(value:*): void

    {

    var oldValue:ArrayCollection = _internal_bs;

    If (oldValue! == value)

    {

    If (value is ArrayCollection collection)

    {

    _internal_bs = value;

    }

    else if (value is table)

    {

    _internal_bs = new ArrayCollection (value);

    }

    else if (value == null)

    {

    _internal_bs = null;

    }

    on the other

    {

    throw new Error ("value of bs should be a collection");

    }

    }

    }

    private var _managingService:com.adobe.fiber.services.IFiberManagingService;

    public function set managingService(managingService:com.adobe.fiber.services.IFiberManagi_ngService):void

    {

    _managingService = managingService;

    }

    }

    }

    {Code}

    {Code}

    package valueObjects

    {

    import com.adobe.fiber.core.model_internal;

    import com.adobe.fiber.services.IFiberManagingService;

    import com.adobe.fiber.valueobjects.IValueObject;

    Import valueObjects.ADto;

    Import mx.collections.ArrayCollection;

    Using namespace model_internal;

    public class com.adobe.fiber.valueobjects.IValueObject implements BDto

    {

    private var _internal_id: int;

    private var _internal_aDto: ADto;

    private static var emptyArray:Array = new Array();

    public void BDto()

    {

    _internal_id = 0;

    }

    public function get id(): int

    {

    Return _internal_id;

    }

    public function get aDto(): ADto

    {

    Return _internal_aDto;

    }

    public function set id(value:int): void

    {

    var oldValue:int = _internal_id;

    If (oldValue! == value)

    {

    _internal_id = value;

    }

    }

    public function set aDto(value:ADto): void

    {

    var oldValue:ADto = _internal_aDto;

    If (oldValue! == value)

    {

    _internal_aDto = value;

    }

    }

    private var _managingService:com.adobe.fiber.services.IFiberManagingService;

    public function set managingService(managingService:com.adobe.fiber.services.IFiberManagi_ngService):void

    {

    _managingService = managingService;

    }

    }

    }

    {Code}

    the tab wasn't working because because he wasn't changing the selection and just leave the drop-down list box.  For example, in the value of the Add function if (cb.textInput.text == "") cb.selectedIndex = - 1;  This will change the selection as you wish and solve the problem.

  • My hx50v can NOT shoot 1920 in PS mode, why?

    I have sony hx50v

    When I shoot mode PS , he shoots at 1440 x 1080 is NOT 1920 x 1080

    Why?

    Please help me it is very important to me, especially when I convert it to 720 it shrinks the widh

    Thank you

    Hello!

    Please visit this link and refer to page n °: 121 to check the https://docs.sony.com/release/DSC-HX50_HX50V_guide_EN.pdfsettings.

    Thanks to Andy.

  • Model of not shooting

    I have a custom table that is full when a new UNSAccountB is created.

    I created a password field model in my custom table which is:

    Value = $UID_UNSAccountB.Password$

    When the password in UNSAccountB is changed, don't shoot the model... But if I use Object Explorer and run the model, it works very well.

    Does anyone know why the model does not automatically? Change indicator is checked

    If I remember correctly, QC will set the variable FULLSYNC during its operations. That would explain the difference between your "Execute" model and synchronization of password QC.

    You must change your model accordingly.

  • Firefox will not shoot to the top of page Add-ons and can never end updates.

    As others have had it, I had the same problem with Add-ons compatibility check after upgrading firefox. He has never progressed so I ended up following the steps, others responded to other issues by removing compatibility under the profile folder files, and other files. None which seemed to work. I found myself completely remove firefox and reinstall, but which did not help. I really need to install firebug, but when I try to download it just hangs up and never even begin to download. Hope this is enough detail. Thank you.

    I think it was more a problem with the Mavericks. I expect the next update and it finally did after that I asked this question. Everything seems to be back to normal now.

  • finished QNetworkAccessManager signal is not shooting in expansion bb10

    Hi all

    I created plugin (native extension) network in which there is a file moc also to load the slot of signal feature. This extension is done following tasks:

    1 entry for Javascript.

    var jsonData = {"url": "'https://cors-test.appspot.com/test ', "timeOutValue": 4"};

    2 launches a thread extension and call the function of demand on the system from here. Here is the code snippet for same.

    void* SignalThread(void* parent) {
        TemplateJS *pParent = static_cast(parent);
    
        int argc = 0;
        char **argv = NULL;
        QCoreApplication QCoreApplication(argc, argv);
        webworks::TemplateNDK *m_signalHandler = new webworks::TemplateNDK(pParent);
        m_signalHandler->doNetworkRequest();
    
        QCoreApplication::exec(); //When I try to remove this line extension stops working and when I try to implement quit, application closes.
        delete m_signalHandler;
        return NULL;
    }
    
    bool TemplateJS::StartThread(){
    
        pthread_attr_t thread_attr;
        pthread_attr_init(&thread_attr);
        pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED);
    
        pthread_t m_thread;
        pthread_create(&m_thread, &thread_attr, SignalThread, static_cast(this));
        pthread_attr_destroy(&thread_attr);
        if (!m_thread) {
            return true;
        } else {
            return false;
        }
    }
    

    3 doNetworkRequest function more sends the network request to URL and receive the answer in the slot and return to Javascript application

    4. If no reply is received between the value of timeout then extension sends "operation cancelled" as info application javascript error

    JavaScript application performs tasks:

    1. the request is to have two buttons

    2. the two buttons are hitting the same function and component the same post.

    Question:

    This extension works great for first time response and sends to javascript, but when to call the same function second time in the same application, extension sends "operation cancelled" in javascript. For example: if I click on the Test button it sent a response but if I click the Test1 button after getting response Test button it returns the message "transaction cancelled".

    If timeout is removed from the extension, then it returns nothing and stuck somewhere.

    What I found in the extension is, connect statement returns true both times.

    QObject::connect (_networkAccessManager, SIGNAL (finished(QNetworkReply*)),
    This, SLOT (onRequestFinished(QNetworkReply*)));

    By extension, control comes after below line. But not a response to the onRequestFinished location.

    Answer QNetworkReply * = _networkAccessManager-> get (request);

    Please let me know what I am doing wrong.

    This is a very urgent and major of my application implementation.

    Help, please

    Thanks in advance.

    Question is due to every javascript function call new pthread is be created every time and existing thread is never destroyed. However, I assumed that this local variable of pthread_t destroyed but it is not run like that. If trying to kill thread existing manually using pthread_cancel(), application crashes. Application of network function is called in this thread and QNetworkAccessManager slot is never get called except for the first time.

    To solve it, I used a public global variable that allow to create the thread only once and give the signal for the following applications when native code receives a StartThread function call. For signalling, used pthread mutex lock and characteristic signal.

    Here is the code for the function StartThread:

    bool TemplateJS::StartThread()
    {
    
        parseJsonParams();
    
        if (!g1.g_isSignalThreadCreated) {
            g1.g_isSignalThreadCreated = true;
    
            pthread_attr_t thread_attr;
            pthread_attr_init(&thread_attr);
            pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED);
            pthread_t m_thread;
            pthread_create(&m_thread, &thread_attr, SignalThread, static_cast(this));
            pthread_attr_destroy(&thread_attr);
    
        } else {
            pthread_mutex_lock(&mutex);
            pthread_cond_signal(&cond);
            pthread_mutex_unlock(&mutex);
    
        }
        return true;
    }
    

    And here's the code must call after event notification.

    void TemplateNDK::Workerthread_waitForNextTime()
        {
            pthread_mutex_lock(&mutex);
            pthread_cond_wait(&cond, &mutex);
            pthread_mutex_unlock(&mutex);
    
            //keeps waiting here until get Signal from StartThread.
            doNetworkRequest();
        }
    
  • InvokeTargetReply finished() signal not shooting?

    I have a problem like that in the original post in this thread:

    http://supportforums.BlackBerry.com/T5/native-development/invokation-framework-slot-for-signal-Finis...

    The poster of thread apparently solved their problem for their use case by invoking a card instead of an application, but this solution is not suitable for my use case - I simply invoke a basic application, by using a reusable code taken right out of BlackBerry tutorials, and apparently, so the launch of base app, finished() signal is not emitted.  This seems so basic that I expect others have run across it, and there is a subtle touch that is not sufficiently covered in the tutorials.

    Code:

    void ApplicationUI::launchCoreApp() {
    
        qDebug() << "The launchCoreApp() method was called";
    
        bb::system::InvokeManager invokemanager;
        bb::system::InvokeRequest request;
    
        request.setAction("bb.action.OPEN");
        request.setTarget("sys.browser");
        request.setUri("http://www.blackberry.com");
    
        bb::system::InvokeTargetReply *reply = invokemanager.invoke(request);
    
        if(reply) {
            if(reply->isFinished()) {
                qDebug() << "In launchCoreApp(), reply finished before we could connect signal to handler slot";
            } else {
                qDebug() << "In launchCoreApp(), connecting reply finished signal to handler slot";
                bool ok = connect(reply, SIGNAL(finished()), this, SLOT(onInvokeTargetFinished()));
                Q_ASSERT(ok);
            }
    
        }
    
    }
    
    void ApplicationUI::onInvokeTargetFinished() {
        qDebug() << "The onInvokeTargetFinished() slot was reached";
    }
    

    Note that this is just a test code and I didn't intend to instantiate a new InvokeManager on each call to the launchCoreApp() function - I just need to see how things work.

    So, when I run the above, launches the browser and goes to the provided URI, my debug console told me that the value of reply-> isFinished() is false, so my code takes the branch to connect the finished() signal to the onInvokeTargetFinished() slot.

    However, the slot is apparently never called, not the browser launch and not when I close the browser.

    It's reusable code light directly from the tutorials and docs, but it doesn't seem to work as announced.

    When subtle I'm missing?

    Where in the lifecycle of the invocation request response is the finished() signal is supposed to be issued?  The reference docs are very clear on this - they just say it is issued when the response message is "received", whatever that means (I understand that it is a future model, I'm not clear which is received in the life cycle integer invocation response).

    I am compiling against level API 10.2 BTW.

    I work, the only thing needed is to define the parent for the response, otherwise it will be deleted at the end of the function where it is created.

        bb::system::InvokeTargetReply *reply = invokemanager.invoke(request);
        reply->setParent(this);
    

    The parent is responsible to remove the answer, so be sure to remove it in your home.

    void ApplicationUI::onInvokeTargetFinished() {
        qDebug() << "The onInvokeTargetFinished() slot was reached";
        bb::system::InvokeTargetReply *reply = qobject_cast(sender());
        reply->deleteLater();
    }
    
  • ondeviceready not shooting in application phonegap bb10

    Hello

    I am developing a HTML5, JQuery basic application with corodova (phonegap), but several times, I found that app video plays (which is my fist in html5 section) and then app does not pass to the next article, I guess it's perhaps because of ondeviceready not firing I see newspapers on my debugger like this.

    ondeviceready not fired for more than 5secs.

    Please let me know, how it can be solved.this happens at least 4/10 times.

    Hi all
    This problem is now resolved.
    It is because in our application, I was first playing a video via the html5 video tag then go index.html, which stops because of error 'onstalled', which is common, so I solved by successcallback that i do the same thing for "onended" video event.
    Here there is no question of Cordoba at all, it was sometimes true, but sound as rare as 1 in 50 times.

  • FieldChangedListener not shooting at the selection point in ObjectChoiceField

    So the custom FieldChangedListner that I have attached to my ObjectChoiceField I coded to trigger a popup when a certain item is selected does not fire not at all (is not the FieldChangedListner) when the user opens the select list and chooses this point that triggers the popup, while they are already about this.

    I understand that the BONE probably does not pull it because the area has not actually changed the selection, the selection remains on the same element, even if the user has entered in selection mode and same selected item.

    The question I have is: is their way to trigger an event when the user selects the item even they have currently selected? If so, can someone tell me how to proceed?

    Thank you.

    Seems that fieldChangedListener works correctly if it said you that when the selected item changes.

    I think on the substitution of onFocus and reset the selection if you what to have the kind of level of control that you are after.

  • My application does not (do not shooting) upwards when they are deployed on the device?

    Hello. First time here... a developer starting BB...

    I just built my first Blackberry app (Hello World) and now is trying to deploy on a real device. I use the plugin Java of Blackberry for Eclipse as IDE. As this is just a simple application requires no signature code.

    In the deployment of my application, I followed all the procedures (and all other alternative methods)... the application is deployed (or rather busy) on the device (I can see the icon of the application, etc.), but my problem is when I try to click on it to fire upward (nothing happens)!

    Additional information:

    I cleaned my project several times in Eclipse and after each cleaning I have package for the project...

    I used Desktop Software of Blackberry first to locate the .alx files...

    I even tried to use JavaLoader to load on the device that i have been successfully

    BUT the app is not put to fire/load upward!

    All developers experience out there care to shed light... ?

    Thank you very much

    I think that ive mysterically HM. solved my problem. I do not know if I have actually resolved but now I can launch my application.

    what I did was just completely reseting my camera (by removing the battery)

  • Recon trust AD didn't write not shooting data in USR table and console UI.

    Hello

    When we AD Trusted reconciliation, IOM pulls all the information and write it in the UD_ADUSER table, but does not fill in USR table and the IOM UI console.

    I checked the Lookup.ActiveDirectory.UM.ReconAttrMap.Trusted and the Lookup.ActiveDirectory.UM.ReconAttrMap, these searches have all mappings.

    Should I check?

    any help would be appreicated.

    Thank you

    I refreshed the reconciliation profile by clicking on the button create a profile reconciliation in reconciliation of the Console Design tab.

    After that I may jobs recon... it perfectly pulled all the attributes.

    Thank you

Maybe you are looking for