GetAvailableLineEnts Method
- Last UpdatedMar 17, 2026
- 3 minute read
The GetAvailableLineEnts() method retrieves entities that can be added to a line.
'Declaration
Public Shared Function GetAvailableLineEnts( _
ByVal entName As String, _
ByVal description As String, _
ByVal canStore As Nullable(Of Boolean) _
) As DataSet
'Usage
Dim entName As String
Dim description As String
Dim canStore As Nullable(Of Boolean)
Dim value As DataSet
value = Ent.GetAvailableLineEnts(entName, description, canStore)
public static DataSet GetAvailableLineEnts(
string entName,
string description,
Nullable<bool> canStore
)
Parameters
- entName
- Optional parameter. Holds an entity name.
- description
- Optional parameter. Holds an entity description.
- canStore
- Optional parameter. Holds the flag that specifies whether an entity can be a “warehouse” or storage location.
Return Value
Returns a DataSet that contains a DataRow for each entity record that can be added to a line. If no matching record is found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Names |
Description |
|---|---|
|
ent_id |
An integer that is the ID of the entity, from the Ent table. |
|
ent_name |
A string that is the name of the entity, from the Ent table. |
|
description |
A string that is the description of the entity, from the Ent table. |
|
parent_ent_id |
An integer that is the ID of the parent from which this entity will inherit entity associations that can only be inherited from one parent entity, such as a shift schedule. For a top-level entity, the value will be null. |
|
preferred_parent |
A Boolean that indicates whether the parent entity identified by the parent_ent_id column value is the preferred parent. For entities with multiple parents, the default parent entity—or preferred parent—determines at which parent entity the system will look when determining the entity's inherited associations.
|
|
can_sched_jobs |
A Boolean flag that indicates whether the jobs can be scheduled to this entity. |
|
can_run_jobs |
A Boolean flag that indicates whether the jobs can be run on this entity. |
|
can_capture_util |
A Boolean flag that indicates whether the utilization data can be captured on this entity. |
|
can_capture_labor |
A Boolean flag that indicates whether the labor data can be captured on this entity. |
|
can_do_dnc |
Not used. Will always return False. |
|
can_track_oee |
A Boolean flag that indicates whether the OEE statistics can be captured on this entity. |
|
can_sched_shifts |
A Boolean flag that indicates whether shifts can be scheduled for this entity. |
|
can_store |
A Boolean flag that indicates whether this entity can be a “warehouse” or storage location. |
|
can_log_data |
A Boolean flag that indicates whether this entity can log data. |
|
can_ship |
A Boolean flag that indicates whether shipments can be made from this entity. |
|
can_receive |
A Boolean flag that indicates whether material can be received at this entity. |
|
can_copy_folders |
A Boolean flag that indicates whether files in folders for this entity can be copied to its download directories. |
|
can_capture_qm_data |
A Boolean flag that indicates whether this entity can capture QM data and have sample request generated for it. |
|
spare1 |
A string that is the contents of the spare1 field. |
|
spare2 |
A string that is the contents of the spare2 field. |
|
spare3 |
A string that is the contents of the spare3 field. |
|
spare4 |
A string that is the contents of the spare4 field. |
|
identical_job_execs |
An integer that is the maximum number of jobs that can be run at the same time on this entity, from the Ent table. |
|
last_edit_at |
A datetime that identifies when the record was added or last modified, from the Ent table. |
|
exact_match |
A Boolean flag that indicates whether the entities that can run jobs, can capture util, can track OEE, have only one job position, are not linked to any line (as parents or children), have a non-null default production rate, and match the filter criteria. |