Class GL_CompanyActiveBatch_svc

Inherits

SY_Service

Properties

LOCAL cMainTable$="Gl_CompanyActiveBatch"  
LOCAL cIsSysDB  

Methods

FUNCTION CanAccessBatch(batchMod$, batchTyp$, batch$)  

Function to determine if batch can be accessed by the current user. This will check whether the batch exists, is a private batch, and whether currently in use.

ParameterDescription
batchMod$ [input, string] Module code for the batch number is in.
batchTyp$ [input, string] Batch Type for the batch number
batch$ [input, string] Batch number to check whether access is permitted or not.
Returns [boolean]
ValueDescription
retSUCCESS(1) The batch can be accessed
retFAILURE(0) The batch cannot be accessed, check LastErrorNum$/Msg$ for reason.

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()