I have an ObjectChoiceField and I have a VerticalFieldManager (VFM) with a couple of LabelFields and EditFields.
I want to update the fields in the VFM dynamically based on the selectedIndex of the ObjectChoiceField.
I already trap the user choice via a fieldChangeNotify, but I am not sure of the best strategy to update the VFM.
Is my only option to delete the all the fields, and create new instances on each field change?
P.S. I am going for a filter effect, so one op开发者_运维技巧tion will show all records, but another will only show a subset.
Take a look at this answer: ObjectChoiceField in Blackberry
As suggested in answer, use fieldChanged() instead of fieldChangedNotify() method.
精彩评论