Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

ComboBox binding complexData

Avatar

Level 1
Hi i have a problem to binding a comboBox with a complex data
can you

help me pls.

Devis

ps.

Where i can find more documentation about "RefreshFill" i
have a bit problem to understand it.

Thanks again devis



Here my code







[Bindable]

private var lkreparti:ArrayCollection = new
ArrayCollection();

private var dsReparti:DataService;

dsReparti = new DataService("reparti");

dsReparti.fill(lkreparti);

dsReparti.autoCommit = false;





<mx:Binding source="cbReparto.selectedItem"

destination="responsabile.trpr001"/>





<mx:ComboBox id="cbReparto"

dataProvider="{lkreparti}" labelField="rprdsc"

selectedItem="{responsabile.trpr001}"/>

</mx:FormItem>









Here my class ActionScript





package com.visitatori.vo

{

import mx.utils.ArrayUtil;

import mx.collections.ArrayCollection;



[Managed]

[RemoteClass(alias="com.visitatori.vo.Trsp001")]





public class Trsp001

{

public function Trsp001() {}

public var rsppkid:int;

public var rspcgn:String="";

public var rspnme:String="";

public var rspsct:String="";

public var trpr001:Trpr001= new Trpr001();





}

}





package com.visitatori.vo

{

import mx.collections.ArrayCollection;



[Managed]

[RemoteClass(alias="com.visitatori.vo.Trpr001")]



public class Trpr001

{

public function Trpr001() {}

public var rprpkid:Number;

public var rprdsc:String="";

public var tbdg001s:ArrayCollection=new

ArrayCollection();

}

}











0 Replies