0

Data Object Notation and Usage

A data object is an item that names a particular piece of data and/or information. For example, if you want to ask a user to enter his or her name in your application, firstname is a data object and lastname is a data object. The actual name the person enters is the value of the data object.

There are different types of data objects, including text, number, date, and collection, and LogicNets offers different options depending on the data object type. For example, when you create a date data object the system allows you to select the date format you want to use.
 

Common Questions

The following is a list of answers to commonly asked questions: 

  • Data objects cannot contain spaces (use "_") or special characters. They CAN be verbose to better describe the variable name (e.g. number_of_legs)
  • Data objects do not need to be initialized up front -- the LogicNets engine will assume that the variable does NOT exist unless/until the logicnet design writes a value to it, by way of a user input or a process step.
  • Data objects can be placed in a "container" of one or more levels (e.g. department_A.personnel.last_name, department_A.personnel, first_name, department_A.personnel.job_title). Containers cannot also be data objects.
  • Avoid special words used by the LogicNets codebase:
and, break, do, else, elseif, end, false, for, function, if, in, local, nil not ,or, repeat, return, then, true, until, while
  • Use $(...) syntax to reference data objects in displaying text.
  • Use $(...[n]) to reference the nth item in an array.
  • Use $(variable:default) construction in calculations to insure a variable not yet defined has a default (usually 0) value in the calculation.

 

Note: This topic has an attached PDF document that contains key points from a LogicNets training class.

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 yr agoLast active
  • 46Views
  • 2 Following

Home