Skip to content

Field

Template allows us to classify data according to different industries. But in each template, we need to define the Name, SKU, UPC, Quantity, etc., which we call Field.

INFO

If this is your first time knowing DatamineHub, you may wonder what DatamineHub does and whether it can meet your needs. You can quickly browse our brief introduction and main concepts

INFO

If you don’t have an account yet, you can give it a try. DatamineHub offers a permanent free tier, and no credit card is required for registration.

DatamineHub Web App

You can also start with mobile app and scan your barcode with mobile app for free, even try it without signup.

download from apple store, start to track your inventory and others with great barcode scan
download from google play store, start to track your inventory and others with great barcode scan

TIP

Field feature is available on both DatamineHub Mobile App and Web App. You can choose which platform you would like to check which decides the screenshots in this page.

INFO

You can also watch the corresponding video (double click to full screen)

What's a Field?

Fields are data types related to your business, such as inventory data. You may need to record SKU, Quantity, Price, Supplier, etc. These are fields.

How to add fields?

Since there are two ways to create sheet, Template Based and Non Template Based, to learn more about sheet, check sheet doc.

So there are also two ways to manage the fields:

Fields in Template

Let's say you just created a new template called 'Inventory track'. But so far, this is just an empty template, we need to define the fields for this template.

To do so, let's simply tap the vertical ellipsis icon on template 'Inventory track', and choose the first menu option, it will pop up the Add Field modal. To learn how to create template, check the template doc.

tap the view fields in the ellipsis menu to view the inventory track fields which contains SKU, Quantity, Barcode etc.
click the view fields in the ellipsis menu to view the inventory track fields which contains SKU, Quantity, Barcode etc.

Initially, there is no fields (or some fields from the clone template):

Tap the 'Add Field' button in the upper right corner, the Add New Field modal pops up:

add a new field to inventory track, set the field name, description and data type, such as text, number, decimal, formula.

Click the '+ New Field' button, the Add New Field modal pops up:

add a new field to inventory track, set the field name, description and data type, such as text, number, decimal, formula.
  • Field Name: set a name to the field, such as SKU, Quantity, etc. It's mandatory.
  • Description: set a meaningful description about the purpose of this field. Although it's not mandatory, better to do.
  • Field Type: we support 8 different types. Check the Field Types section below to know the details on each type and how to use them.
  • Is Barcode?: Depends on the type you chose, if It's text and there is no barcode in the template yet, you can mark this text field as Barcode. A Barcode field is also a text field too, the benefit is, you can use the powerful barcode scanning function, by tapping the barcode icon at the bottom of the app.

a barcode scan icon on the middle bottom of mobile app, tap it to scan barcode immediately.

It will scan and extract the barcode and set it to this barcode field automatically, which is fast, accurate.

  • Is Required?: if set this field as required, then you will need to provide a value in the sheet that based on this template. Otherwise, the value can be skipped.

Repeat the process for each field you need. Let's say you created fields: Barcode, SKU, Title, Quantity, Price, Purchased Date, Supplier, Amount. Finally, the fields list would looks like:

inventory track template fields, include Barcode, SKU, Quantity, Price, Supplier, Purchased Date, Amount on mobile app.

Tap 'DONE' button, back to templates list:

template list on mobile app with the new created fields in inventory tracking template
inventory track template fields, include Barcode, SKU, Quantity, Price, Supplier, Purchased Date, Amount on web app.

Back to Templates page, you would see your template with the fields count:

template list on web app with the new created fields in inventory tracking template

The fields badge tells how many fields in this template. While you see the sheets badge is 0, because we haven't created sheets based on this template.

Manage Fields

You can manage the fields of given template by tapping the vertical ellipsis menu and select View Fields, then in the fields list, tap the vertical ellipsis menu:

edit field, move position of field and delete field by tapping the ellipsis icon on each field.
edit field, move position of field and delete field by clicking the ellipsis icon on each field.
  • Edit Field: You can change the Name, Description, Is Barcode and Is Required toggles. But you cannot change the data type because of the data compatibility. Let's say you have a Quantity field and you already have items added. Now, change the Quantity field from number to text will cause incompatible issue, there is no way to convert a number 2 to a text.
edit field allows to change the field name and description, is required and barcode flag, but not the data type.
edit field allows to change the field name and description, is required and barcode flag, but not the data type.
  • Move Up/Down: it will move the given field to show up/down in the field list.

  • Delete Field: with the confirmation, you can delete fields from the template. Note: the data of this field in the sheets will be unavailable.

delete a field from template on mobile app, this will remove all the previous added data in sheets that based on this template.
delete a field from template on web app, this will remove all the previous added data in sheets that based on this template

Fields in Sheet

If you created a Non Template Based sheet, you will need to manage the fields within the sheet. Let's say you just created a new Non Template Based sheet named 'Equipment maintenance 001', to learn how to create a sheet, check the sheet doc.

non template based sheet is no need to create the template, but add the field during the first item adding to the sheet.
non template based sheet is no need to create the template, but add the field during the first item adding to the sheet.

Conceptually, the fields of a sheet belongs to that given sheet only, different from the template fields, there is no dedicated place to manage the sheet fields. You only can do that when adding/editing the items in the sheet.

To Add items to a sheet, choose it as Working Sheet. To learn more about Working Sheet, check the Working Sheet doc.

select a sheet from multiple sheets as the current working sheet, then scan barcode and add items to this working sheet.
select a sheet from multiple sheets as the current working sheet, then add items or import file to this working sheet.
Tap the 'Add Item' button or the SCAN icon at the bottom of app, the Add New Item modal pops up:
Click the '+ New Item' button, the Add New Item modal pops up:
add the first new item to non template based sheet, there is no fields in the sheet and need to create field first.
add the first new item to non template based sheet, there is no fields in the sheet and need to create field first.

Initially, there is no field in this sheet, so we can create one, tap the orange + icon to create a new field, let's say a text field for Barcode data:

add a new field to the non template based sheet on the mobile app, such as a Barcode field, choose text as the data type.
add a new field to the non template based sheet on the web app, such as a Barcode field, choose text as the data type.

Here, we toggled the Is Barcode? ON and Is Required? ON. Set the field name 'Barcode', a simple meaningful description, field type as text.

Tap the Add Field button, back to the Add New Item page. Now, we see the just created Barcode field:

the new added Barcode field is on the add item view on mobile app, scan the barcode by tapping the scan icon.
the new added Barcode field is on the add item modal on web app, start to add the barcode value.
The badges tell it's a text, required, barcode field. Tap the click the barcode icon to launch the barcode scanner view, start to capture barcode. the barcode scanner will be launched to scan barcode automatically, pretty cool.

Since it's the web app, if your computer has an external barcode scanner plugged in, you can get the barcode from it. Otherwise, you have to enter the barcode mannually. If your business requires barcode heavily, we recommend to use the mobile app where you can use the built-in barcode scanner to capture the barcodes.

Actually, there is a more cool feature, tap the big barcode icon at the bottom of the app, it will even create a Barcode field for the sheet automatically if the given sheet doesn't have a Barcode field. Check the barcode scanner doc.

Follow the above process, you can add more fields to the sheet. You might noticed already, you only need to define these fields for your first item in the sheet. Once you have all fields ready, the next item you will add to the sheet doesn't require you to define the fields again.

Manage Fields

You can manage the fields of given sheet during adding item or edit item in the sheet. In the previous section, we just created a Barcode field and added that item to the sheet.

Either tap the '+ New Item' button or the vertical ellipsis menu to Edit the item:

tap the ellipsis icon to edit the field in working sheet.
click the pencil icon to edit the item in working sheet.

Now, in the item edit modal:

display the edit item view in mobile app for non template based sheet.
display the edit item modal in web app for non template based sheet where we can edit the field inline.

You can continue to add more fields by tapping the + icon or the vertical ellipsis menu to Edit/Delete the field.

edit sheet field is available on the non template based sheet item edit. allowing you to edit the field or delete it.

Let's add two more fields: Quantity and Price:

added quantity and price fields to non template sheet in the edit item view.
added quantity and price fields to non template sheet in the edit item modal.

Now, tap the vertical ellipsis, you would see:

tap the ellipsis icon to edit the field in the edit item view for non template sheet.
click the ellipsis icon to edit the field in the edit item modal for non template sheet.

There are two extra options: Move Up, Move Down. these allow you to adjust the sequence of the field position in the sheet.

  • Edit Field: You can change the Name, Description, Is Barcode and Is Required toggles. But you cannot change the data type because of the data compatibility. Let's say you have a Quantity field and you already have items added. Now, change the Quantity field from number to text will cause incompatible issue, there is no way to convert a number 2 to a text.
edit field allows you to change the field name and description, is required and barcode flags, but no field type change.
edit field allows you to change the field name and description, is required and barcode flags, but no field type change.
  • Move Up/Down: it will move the given field to show up/down in the field list.

  • Delete Field: with the confirmation, you can delete fields from the sheet. Note: the data of this field in the sheet will be unavailable.

delete a field from the template on mobile app, this will remove this field value from all sheets based on this template.
delete a field from the template on web app, this will remove this field value from all sheets based on this template.

Field Types

Field TypeUse Case
textAnything that can be described in words can be used in the text field, such as name, title, description, notes, barcode.
numberNon negative number, such as Quantity, age.
decimallike 0.5, 3.87 those floating point value, typically used for Price, Weight etc.
moneyMoney is also a decimal, the difference is money includes currency, so you can specifiy the currency to the decimal, such as USD, EURO, etc. this is helpful to represent price, amount etc.
datetimedate with time.
textareatextarea is also a text, but with this type, you can input more characters.
optionsIt's a list, you define the options and then choose one in your sheet. For example, Supplier. You probably can define all your suppliers, such as Walmart, Target etc, and then just pick one when adding items. You can also set one as default, so you don't have to choose one every time.
formulaThis is a very powerful feature, no matter how complex the formula is, as long as it's valid. It's typically used for field associate with other fields. Let's say you have a Quantity field for the item quantities, a Price field for single item price, you probabaly want to have an Amount field that represents the total price. so you don't need to calculate the Amount manually everytime, just set the Amount field as formula, and formula expression as Price * Quantity, then the app will do the calculation automatically.

TIP

Below screenshots for each field type is based on DatamineHub mobile app, the web app follows the same rule.

text

To add a text field, such as title, name, SKU, barcode, notes.

add a text field SKU to represent the product which is a common field in inventory and sales

If it's barcode field and you can toggle the 'Is Barcode?' on. In this way, you will be able to use the barcode scanning function which is awesome.

And if it's a required field, just toggle the 'Is Required?' on.

number

add a number field Quantity to record the products number in warehouse

For any non-negative number based thing, like Age, Quantity, choose this type.

And if it's a required field, just toggle the 'Is Required?' on.

decimal

add a decimal field Price to be the unit price of the product

For any floating point value, like Price. Choose this type.

And if it's a required field, just toggle the 'Is Required?' on.

money

add a money field Price, different than decimal, money field has a currency prefix

money field is also decimal, you can use decimal to represent the price, but if you need to have the currency, then the money field is the right choice, once you chose the money field, you can select a currency, we have the most common currencies for your selection, but If the currency you need is not listed here, you can select other and enter the currency you actually use. Like below:

add custom currency prefix if the desired currency is not in USD, CNY, HKD, SGD, GBP, CAD etc.

And if it's a required field, just toggle the 'Is Required?' on.

datetime

add a datetime field Purchased Date to track the date and time when the product was purchased from suppliers

For any date time value, like Purchased Date. Choose this type.

And if it's a required field, just toggle the 'Is Required?' on.

textarea

add a textarea field, it is useful to long sentences, such as product description

textarea is also a text, but more useful if you need a long string, such as title, description, notes etc.

And if it's a required field, just toggle the 'Is Required?' on.

options

It's a list, you define the options and then choose one in your sheet. For example, Supplier. You probably can define all your suppliers, such as Walmart, Target etc, and then just pick one when adding items. You can also set one as default, so you don't have to choose one every time.

To add an option, set the value and tap '+' icon to add it.

add an options field Supplier, options allow to predefine a few options to choose, useful in category like field

You can add all options. Note: by default, the first added option is the default, that means, when you adding item to sheet, you don't need to select one, the default will be chosen automatically. Of course, you can change the default.

predefine options in an options field Supplier, such as Walmart, Target, Amazon

Delete option: tap the delete icon to delete that option.

delete an option from the options value list

The popup makes sure you know the delete.

Edit option: tap the edit icon to edit that option.

edit an option from the options value list, also mark it as a default option

You can change the option, and also mark it as a Default option.

formula

INFO

Because of the complexity of formula, there is a video to explain the workflow (double click to full screen)

To construct a formula, choose the formula type. You would see like this:

add a formula field Amount with value equals to Price multiplied by Quantity fields, this is a math expression.

Tap the Build Formula button, let's get started:

tap or click the Build Formula button to launch the formula builder where the math expression can be constructed.

A formula is usually an expression consisting of operators and operands. In its simplest form, it can be just a constant, such as 2 or 56.98. It can also be a complex expression, such as (3.4+91.03)*5.8-22, where 3.4, 91.03, 5.8, 22 are operands, and +, *, -, and parenthesis are operators. Then we can construct such an expression in the formula builder as long as it is valid.

  1. Operator:

operator is add, subtract, multiply, divide and parenthesis that can be used to join a valid math expression.

we support add(+), subtract(-), multiply(*), divide(/), and parenthesis to control the priority. Choose one and tap the 'Add to formula' button.

  1. Operand Constant:

operand constant can specify a constant in the math expression.

In some cases, you may only need simple constants, then you can set the required constants directly here, such as 3.14 in the example.

  1. Operand Field:

Different than the constants, this is the dynamic fields we can set. For example, Amount = Quantity * Price. Assume we already have the Quantity and Price fields added, so we can set the Amount as formula and build it.

If you haven't had any number/decimal/money fields added in the template, and you would see a warning like this:

operand field is the number, decimal or money fields in the template or sheet that can be used to join a valid math expression.

It's fine if your formula doesn't need dynamic fields, just constants, you can ignore this warning. Otherwise, you should add the other associated fields first. such as Quantity and Price.

After added the assosiated fields, you would see them in the select options:

the other number, decimal or money fields display in the list to allow adding to the expression.

So let's build the Amount as formula: (Price + 0.1) * Quantity. Follow the formula sequence, we build in below steps:

  • Choose 'Operator'-> start parenthesis, tap 'Add to formula'.

add a start parenthesis to the expression to control the priority.

  • Choose 'Operand: Field'-> select Price, tap 'Add to formula'.

choose the Price field from the operand field after the start parenthesis

  • Choose 'Operator' -> select +, tap 'Add to formula'.

choose the add icon from the operator

  • Choose 'Operand: Constant' -> input 0.1, tap 'Add to formula'.

set a constant 0.1, add it to the expression

  • Choose 'Operator' -> close parenthesis, tap 'Add to formula'.

add a end parenthesis to close the expression.

  • Choose 'Operator' -> select *, tap 'Add to formula'.

add a multiply operator

  • Choose 'Operand: Field'-> select Quantity, tap 'Add to formula'.

choose the Quantity field from the operand field

Finally, we have this formula built, if there are anything wrong during the building, we can tap the 'Clear Formula' to reset it.

Tap the 'All Done' button, back to the Add New Field, you would see:

a valid expression is built, when the Quantity and Price value changed, the Amount will be recalculated automatically.

We can check the validity of the formula by tapping the Validate button, it will tell us.

Tap the 'Add Field' to save it to template.