addMeasure
@nmi-agro/fdm-source / fdm-core/src / addMeasure
Function: addMeasure()
addMeasure(
fdm,principal_id,b_id,m_id,m_start,m_end?):Promise<string>
Defined in: fdm-core/src/measure.ts:99
Creates a measure instance and applies it to a field in a single transaction.
Parameters
fdm
PgDatabase
The FDM instance providing the connection to the database.
principal_id
any
The ID of the principal making the request.
b_id
any
The ID of the field to apply the measure to.
m_id
any
The catalogue ID of the measure (e.g. "bln_BM1").
m_start
Date
The start date of the measure.
m_end?
Date
The optional end date. Omit or pass undefined for doorlopend (ongoing).
Returns
Promise<string>
A Promise resolving to the new b_id_measure.