Class JC_UnitOfMeasure_svc

Inherits

SY_Service

Properties

LOCAL cMainTable$="JC_UnitOfMeasure"  

Table maintained by business object

LOCAL cIsSysDB=isFALSE  
System file identifier

Methods

FUNCTION GetConversionFactor(fromUM$, toUM$, operation$, factor)  

Returns the conversion factor between two units of measure

ParameterDescription
fromUM$ [input, string] From unit of measure
toUM$ [input, string] To unit of measure
operation$ [output, string] conversion operation (D) Divide or (M) Multiply
factor [output, numeric] conversion factor
Returns [boolean] Success/failure and sets error messages

Properties inherited from: SY_Service

BOF, CurrentBrowseIndex$, CurrentIndex$, EOF, SecurityAccess

Methods inherited from: SY_Service

BindVariable(), CheckMainTable(), Clear(), Find(), FindById(), GetChildHandle(), GetChildKeyReference$(), GetColumns$(), GetDataSources$(), GetDataSourcesAddl$(), GetJson$(), GetKey$(), GetKeyColumns$(), GetKeyPadded$(), GetPartialRecord(), GetRecord(), GetRecordCount(), GetRecordEx(), GetResultSets(), GetTable$(), GetTablePath$(), GetValue(), GetValues(), IsValid(), MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), ReadAdditional(), SetBrowseFilter(), SetBrowseIndex(), SetCacheMode(), SetIndex(), SetKeyValue(), SetParentColumns(), SetParentHandle(), SetUIHandle(), PERFORM ClearEditRcd(), FormatJson$(), GetAddlDataSources(), GetDateColumns$(), InitChildCollection(), MoveFirstLast(), MoveNextPrevious(), OpenMainTable(), ParseKeyDef(), PrepareKeyDef(), ReadRec(), ResolveColumnList$(), SetControls(), SetCurrentKey(), UseKeyColl()