API

Functions

Functions of the VJS

CalculateJobPlanningLineEndDate

With this function, you can calculate the end date of a job planning line.

procedure CalculateJobPlanningLineEndDate(pClientGuid: Guid; 

pPlanningDate:Date; pQuantityBase: Decimal; pResourceNo: Code[20]) EndDate: Date

 

 

Data type

Description

Parameter:

pClientGuid


Guid

 

This value is used for the global identification of VJS Control-AddIn on a page.

pPlanningDate

Date

Planning date used for the calculation.

pQuantityBase

Decimal

Quantity in the Base Unit of Measure for the chosen resource.

pResourceNo

Code[20]

The resource number to use in the calculation.

EndDate

Date

Calculated end date of job planning line.

PresetFilters

This function is available on the “NETVJS MainPage” and can be used to call the VJS with a predefined data filter from an external BC page. Starting the VJS this way will not show the startup filter dialog.

procedure presetFilters(var pJobRecord: Record Job; var pJobTaskRecord: Record "Job Task"; 
var pResourceGroup: Record "Resource Group"; var pResource: Record Resource)

 

 

Data type

Description

pJobRecord

Record Job

All filters used on this record will be used as a data filter

pJobTaskRecord

Record "Job Task"

All filters used on this record will be used as a data filter

pResourceGroup

Record "Resource Group"

All filters used on this record will be used as a data filter

pResource

Record Resource

All filters used on this record will be used as a data filter

PresetViewFilters

This function is available on the “NETVJS MainPage” and can be used to call the VJS with a predefined view filter from an external BC page. Starting the VJS this way will not show the startup filter dialog.

procedure presetViewFilters(var pJobRecord: Record Job; var pJobTaskRecord: Record "Job Task";
var pResourceGroup: Record "Resource Group"; var pResource: Record Resource)

 

 

Data type

Description

pJobRecord

Record Job

All filters used on this record will be used as a view filter

pJobTaskRecord

Record "Job Task"

All filters used on this record will be used as a view filter

pResourceGroup

Record "Resource Group"

All filters used on this record will be used as a view filter

pResource

Record Resource

All filters used on this record will be used as a view filter

 

SetJobPlanningLineBaseline

This function can be used to display the original temporal extension of job planning lines in comparison to their current state by a thin strip below the actual bar.

procedure SetJobPlanningLineBaseline(pClientGuid: Guid; 

pJobPlanningLinePosition: Text; pStartDate: Date; pEndDate: Date)

 

 

Data type

Description

Parameter:

pClientGuid


Guid

 

This value is used for the global identification of VJS Control-AddIn on a page.

pJobPlanningLinePosition

Text

Position of the job planning line to modify.

pStartDate

Date

Baseline Start of the Job Planning Line.

pEndDate

Date

Baseline End of the Job Planning Line