How to produce sub-categories within a pick list?

All about DigiTerra Explorer 5 mobile GIS software: questions and answers, tips and tricks. You can share information and knowledge about DigiTerra Explorer 5 with other users, by using this forum.
User avatar
Balazs Hober
Site Admin
Posts: 260
Joined: Fri Aug 08, 2008 12:53 am
Location: Hungary, Budapest
Contact:

How to produce sub-categories within a pick list?

Postby Balazs Hober » Sat Jan 10, 2009 10:18 am

You can implement this problem in DigiTerra Explorer, but this is not too easy for a fresh user.

Let me give an example of what we mean below!
You would like to produce subcategories to this four level structure.
Image

I. At first you have to plan the datatable connection, datatable structure and the link fields for this problem
Image
Link fields: marked with red border
Pick list in the datatable: marked with blue border
Connections: marked with blue arrow

II. Next you have to create New Map project with a new vector layer and three datatables with the necessary structure
1. Tap the New Map button on the toolbar and set the map type (projected, geographic) and the coordinate precision of the map layers and the projection.
Image Image

2. Tap the New Layer button on the toolbar and create a new vector (*.MAP + *. TAB file types) layer
Image Image

3. Set the data field structure of this vector layer
a.) Tap the Records button on the Pan frame or tap the Records button on the toolbar
Image Image
b.) Create a new field (Level1_ID) for the connection and an other for the pick list (Level1) with the next parameters below
Tap the "ID" filed and set the parameters of the field (Name: Level1_ID; Type: Long integer (4); Default: Increment last value; Rule: Read only). Tap OK.
Image Image
Tap the Menu. Tap the New field option and set the parameters of the new field (Name: Level1; Type: Byte (1)). Tap OK.
Image Image Image

4. Tap the New Layer button on the toolbar and create three datatables (*.TAB file type): Level2_table, Level3_table, Level4_table with the following structure
a.) Create three datatables with the following names as below
Image Image
Image Image Image
b.) Set the data field structure of the three datatables as below
Level1_ID, Level2_ID, Level3_ID: Type: Long Integer(4); Default: Increment last value; Rule: Read only
Level2, Level3, Level4: Type: Byte(1); Default: Zero; Rule: None
Image Image Image

III. Create a Code Dictionary file in Notepad for the pick lists (Level1, Level2, Level3, Level4) with the following content and save it as levels.cdt. Set the new Code Dictionary file in DigiTerra Explorer.

Code: Select all

#   Level1
1   North
2   East
3   South
4   West

#   Level2
1   Parasitic
2   Deadwood
3   Fungi
4   Symbiotic

#   Level3
1   Minor
2   Major

#   Level4
1   Significant
2   Non-significant

1. Copy the levels.cdt to your mobile device and set it.
a.) Tap the Settings button on the toolbar. Tap Record tab and tap the Code dictionary button.
Image Image Image
b.) Tap the file to check the checkbox beside the datafile(s) you would like to add. Use the "\" or the ".." button to navigate to the Code Dictionary file you would like to set. Tap OK.
A green check mark indicates selected file.
Image
c.) Check the checkbox near the Code Dictionary button and tap OK.
Image

IV. Set the Link Fields to the connection in Level2_table; Level3_table; Level4_table. The Link Fields are the following:
Level2_table: Level1_ID
Level3_table: Level2_ID
Level4_table: Level3_ID
1. Tap the Layers button on the Pan frame or tap the Layers button on the toolbar.
Image
2. Tap Level2_table in the list and tab the source button.
Image
3. Select "Level1_ID" from the Link Field list and tap OK.
Image
4. Tap Level3_table in the list and tab the source button.
Image
5. Select "Level2_ID" from the Link Field list and tap OK.
Image
6. Tap Level4_table in the list and tab the source button.
Image
7. Select "Level3_ID" from the Link Field list and tap OK.
Image

IV. Set the vector layer for data collation (for editing) and close the datatables for editing
1. Tap the Grey pencil button on the header to close all layer.
Image Image
2. Tap the lock of the Level1_geometry layer and tap Yes to set this layer for editing. Tap OK to close the Layers panel.
Image Image

V. Set Tree view to the New record panel
1. Tap the Settings button on the toolbar.
2. Tap Record tab and select Tree view to the displaying of the New record panel.
Image

Now the software ready to the data collection!
Before you exit the software don't forget to collect minimum one record in each datatable and save this project! You can't save the empty datatables and the empty layer!

Let's see this video how it works!
http://forum.digiterra.hu/attmts/digiterraexplorer/sub-categories_within_a_pick_list/how_it_works.wmv
Attachments
subcat_pick_list_project.rar
You can download this full sample project!
(13.37 KiB) Downloaded 322 times

Return to “DigiTerra Explorer 5”

Who is online

Users browsing this forum: No registered users and 1 guest