How to add new field to form_definition_version and add to form grid in web gui

12 views
Skip to first unread message

Glenn Mullett

unread,
Oct 12, 2013, 6:08:54 AM10/12/13
to openxda...@googlegroups.com
Hi All


I have been trying to wrap my head around what seems to be a magic RPC black box...

I would like to add a new field to the openxdata db to form_definition_version.  I would then like to display the values in this field in the main form grid in the web gui.  Would anybody be able to point me in the right direction i.t.o. what classes / xml would need to be modified to achieve this?

Many thanks.

Regards,
Glenn

Dagmar Timler

unread,
Oct 14, 2013, 4:24:18 AM10/14/13
to openxda...@googlegroups.com
Hi Glenn

To add a field to form_definition_version, you should do the following:
 1. Create a Liquibase changeset to add the column in the database
 2. Change the FormDefVersion object to include the new attribute
 3. Change the appropriate Hibernate XML files (*.hbm.xml) to map the new attribute
 4. Change the FormSummary object to add the attribute so it can be displayed on the screen
 5. Change the FormListView class to add a column to the table.

Hope this helps
Dagmar


--
You received this message because you are subscribed to the Google Groups "openXdata Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-use...@googlegroups.com.
To post to this group, send email to openxda...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxdata-users/cda354d6-e2e3-4c25-8840-202128b0ad8f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Gerard

unread,
Oct 14, 2013, 6:23:29 AM10/14/13
to openxda...@googlegroups.com
Thanks Dagmar - 

Glenn - this type of question is suited for the dev chat - maybe you should go ahead and create a ticket so we can have a wholesome view of what you are trying to achieve - 

Mark

Glenn Mullett

unread,
Oct 14, 2013, 11:21:42 AM10/14/13
to openxda...@googlegroups.com
Thanks Dagmar.

Got it working.   

@Mark - apologies - I shall post to the dev forum with these type of queries in future.  I wanted to retrieve stored gps xy's (stored per form version) and zoom to the location in a gwt-openlayers map on selection of the form version in the grid.  This is now working fairly well. 

Thanks.

Regards 
Glenn
Reply all
Reply to author
Forward
0 new messages