I've got this bug here I need to fix quickly, and I hope you guys can help.
I've got a textbox that I'm binding to the
.client2SurvivorLevelAnnualIncomeAfterTax property of the value object
asset.
I'm using the following line to do it:
BindingUtils.bindProperty(txtLevelAnnualIncomeAfterTax , 'text', asset,
'client2SurvivorLevelAnnualIncomeAfterTax');
What I need to do is to format the text property with a number formatter
toNumber. I tried to do this with a getter:
[Bindable("client2SurvivorLevelAnnualIncomeAfterTaxChanged")]
public function get client2SurvivorLevelAnnualIncomeAfterTax(): String {
return toNumber.format(asset.client2SurvivorLevelAnnualIncomeAfterTax);
}
but it's not working. Anyone know how I might be able to do this? Thanks
much in advance.