FormManager/MForms Extensibilty

5 views
Skip to first unread message

Ronald Kayondo

unread,
Feb 17, 2012, 8:48:03 AM2/17/12
to openxd...@googlegroups.com, brent atkinson, Dagmar Timler

Hi Devs,

Am currently trying to update the workflow mobile client with mforms client and I have kinda hit a wall. :(

In the former openxdata mobile client the FormManger allowed registering of FormEventListeners which would enable one to manipulate a form before/after it is saved or before/after it is deleted. This allowed manipulation of a form  without the necessity to manually edit the core code. To show a form in the old mobile client all one had to do was to call  FormManager.showForm(..., formData,,,,,, currentDisplay);This functionality allowed easily extending the mobile client. 

In the current mforms-client this logic seems to have changed/removed and I was wondering whether there is an alternative way I could easily render a form given a certain formData object.

These are options I have thought about,
1.Try to put back the FormEventListener logic.
Problem: This would require quite some changes in the core code.
2. Write my custom standalone Form Runner which is independent of EpihandyController, FormManager and Model object.This will be a highly reusable MobileForm Runner since any class will be able to use it even in future.
Problem: This would lead to code duplication.

Looking forward for your Input as I would like to avoid duplicating any code and have a system that is easy to maintain.

Thanx in advance,
Ronald.

Mark Gerard

unread,
Feb 21, 2012, 1:06:53 AM2/21/12
to openxd...@googlegroups.com, brent atkinson, Dagmar Timler
Ronald,

I am not entirely sure what was removed when the code was re factored but we could probably identify missing functionality and create tickets?

Mark

--
You received this message because you are subscribed to the Google Groups "openXdata Developers" group.
To post to this group, send email to openxd...@googlegroups.com.
To unsubscribe from this group, send email to openxdata-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openxdata-dev?hl=en.

Reply all
Reply to author
Forward
0 new messages