Memory Control

This is a special non-visual control which allows user to persist data and can be 'read' back later even from other forms.

Memory Control

In programming speak, the memory control behaves like a variable to which can be assigned values. Anything stored in a memory control will persist even if the WorkMobile app is closed.

The best way to illustrate this concept is to build a simple real-world solution in which we'll build 2 separate forms. The first form will be a Customer Details form, and the second an Order Delivery form pulling data from the first form to fill in the second.

Customer Details Form

This form will contain the memory control fields. On the device these fields look like textboxes, but they store the inputted information temporarily for re-use.

  • Select New Form from the Forms page
  • Type in the name for your form, call it Customer Details Form
  • In the description type Customer Details and click Save
  • Add a Memory Control to the form and change the caption to read Customer Name
  • Add a Memory Control to the form and change the caption to read Address
  • Add a Memory Control to the form and change the caption to read Postcode
  • Click Save

You should be redirected to the Form Dashboard, you will need to publish this form.

 

Order Delivery Form

The Order Delivery Form will make use of the Memory controls from the previous form by using the formula =INFO.

  • Select New Form from the Forms page
  • Type in the name for your form, call it Order Delivery Form
  • In the description type Deliver details and click Save
  • Add a Textbox Control and change the caption to read Customer Name
  • In the Formula field in the Textbox properties type in =INFO("Customer Name")

  • Add a Textbox Control and change the caption to read Address
  • In the Formula field in the Textbox properties type in =INFO("Address"), you should change the Max length to 400 to ensure that the whole address fits.
  • Add a Textbox Control and change the caption to read Postcode
  • In the Formula field in the Textbox properties type in =INFO("Postcode")

These controls will now be pre-populated once the user opens this form, you will need to ensure the INFO formula contains the exact name of the Memory control otherwise it will not work.

 

On the Device

Once you have saved and published both forms, you can go to the device. After filling in the Customer Details Form, open the Delivery Details form and the first textboxes should be pre-populated.