Hi,
I would like to do datafield with different display options. Because I want to display different thing and I don't to have many datafields app, I would like to have one datafield app that can be placed many times on datafield and I can select in connect IQ what each instance (or location) shows.
I almost have it, but I have difficulty to get information in onUpdate function about which datafield position is currently updated. Right now I use method that in onCompute method I reset counter and then each onUpdate call I increase counter so I know which field is being drawn currently. This works well in simulator, but not in real device, because onUpdate is called sometimes more often than onUpdate (due to radar, touch, screen change etc).
Is there any way, how to determine which datafield is currently updated by onUpdate function? Or any index of updated field etc? I don't want to do many copies of my datafield app to be able to configure each one in connect IQ.
Thanks,
Tomáš