Entry Types
someplugin exampletypes.xml htdocs myplugin example.pngFor example, this would allow you to reference the example.png image as an icon for the entry type with the property:
<property name="icon" value="/myplugin/example.png"/>>
Column Types
- string - Use size="..." to specify the column size
- enumeration - See below to specify values
- enumerationplus - Just like enumeration but allows use to enter new text values
- list - A big string internally but shows a list of newline separated text values to the user
- password - A string but is shown in a password field
- clob - A big character large object
- int - Integer
- double - floating point number
- percentage - floating point number shows as percentage
- boolean
- date - Just a date
- datetime - A date and a time
- email - Shows as an email address
- url - Shows as a URL
- latlonbbox - spatial bounds
- latlon - A single point
<column name="fruit" label="Fruit" type="enumeration" values="apple,banana,orange" cansearch="true" />
Wiki Template
<wiki> <![CDATA[ +section title={{name}} :navtop { {description wikify=true}} :heading Charts { {group}} { {display type=linechart showMenu=true fields=discharge}} { {display type=linechart showMenu=true fields=gauge_height}} :vspace 0.5em :heading Table { {display_download}} { {display_table}} :vspace 1em ---- :heading Information +row +col-md-6 { {information details="true" showTitle="false" }} -col +col-6 { {map}} -col -row -section ]]> </wiki>
Create Entry Type Form
- A type ID - this needs to start with type_, be lower case with no spaces or special characters
- A name of the type
- A "super type" - entry types in RAMADDA are hierarchical. If you want this to be point data the specify type_point. There is a link to the master list of all entry types available.
- A handler - this is the Java class that handles this type. If this is point data then specify "org.ramadda.data.services.PointTypeHandler". If it is just some normal entry but you will specify metadata columns then specify "org.ramadda.repository.type.GenericTypeHandler". Else specify "org.ramadda.repository.type.TypeHandler"
- You can specify an optional Super Category and Category. This is used to organize the big list of types.
- An icon. You can provide your own icon as described above or view the icons available on github
- Properties - these are flags to control what is shown, e.g., area, date, etc. Note: If this is point data based on a CSV file then make sure you include the record.file.class=org.ramadda.data.point.text.CsvFile
- Columns - these are the columns as described above. For example, you can specify a "fruit" column whose tpye is enumeration and values are "Apple,Orange,Banana"
The form settings are not saved on the RAMADDA server. Rather, they will be saved in your browsers local
data storage keyed on the specific entry ID your are viewing. So, when you return to this form the past fields
should be filled out.
|