开发者

Update Field Manager fields dynamically based on ObjectChoiceField selectedIndex

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜