CalWinLibrary
Table Of Contents

This document is split into the following sections:

Library Description:

CalWin Server library

Services

The following table lists the Services defined in "CalWinLibrary":

ApplicationService
The application service is used to interact with the application as defined in the .App file, and has methods for user login, user management, App parameters, and to get data from application defined SQL statements.
BusinessObjectsService

						
CheckpointService
Operations for the Checkpoint module. Requires session (Login).
ConsignmentService(BusinessObjectsService)
The ConsignmentService is derived from BusinessObjectsService and allows management of consignments.
ConsignmentUtilService

						
DeviationService
Deviation related services
LoginService
The LoginService handles login and logout for Applications (See Session.LoginUser for user login)
LogisticsService
Logistics related service as inventory, goods delivery and goods receipt
MachineLinkService
Provides access to CalWin MachineLink functions. Requires session (Login).
MediaService
Service for getting product drawings, graphics, documents etc.
MessageService
A service for sending of E-mails, SMS and internal messages.
For E-mail messages the SMTP settings has to be configured in the CalWinServerConfig.XML on th server.
For SMS, the account information has to be set in CalWin.
MiscService
Miscellaneous functions that don't require a session (login).
MiscServiceSession
Miscellaneous functions that require session.
NotificationService

						
OrderService
OrderService can be used to edit and create quotes, orders and purchases.
PS! The OrderService preserves state between calls, and all line objects created as a result of shOpen or slAdd
will live on the server as long as the session is alive.

The orderservice contains one quote/order object and an unlimted number of quote-/orderlines (rows). Only one
orderline is active at a time. New lines can be added by the slNew method. To switch to another line use the slSetCurrent methode.

All methods that applies to the header are prefixed by "sh", and for orderlines the methods are prefixed by "sl".

This service require session (see Login service).
ReportService
Requires session (Login).
Session
Requires session (Login).
SystemService

						
Service ApplicationService

The following table lists the Operations defined in "ApplicationService":

AddOrUpdateAppUser
This operation adds or updates an AppUser. If aParameter.AppUser.Id = 0, then the user will be added.
ChangeUsernameAndPassword
Change the username and password for the given user. The user must be identified by either UserId or Username (OldUsername).
GetAppParameters
Get values for defined parameters for the Application
LoginUser
Log in a user identified by username and password.
SendNewPassword
This operation will reset and create a new password, and send it by e-mail. On next login the password has to be changed.
ExecuteSQL
Executes the SQL and returns the data and column definitions as XML
ExecuteSQLV2
Executes the SQL and returns the column definitions and data. The data is returned as JSON

Method AddOrUpdateAppUser

This operation adds or updates an AppUser. If aParameter.AppUser.Id = 0, then the user will be added.

Parameters:

Flag Name Type Description
In aParameter paraAddOrUpdateAppUser

							

Return Value:

Flag Name Type
Result Result resAddOrUpdateAppUser

Oxygene Syntax:

method ApplicationService.AddOrUpdateAppUser(const aParameter: paraAddOrUpdateAppUser) : resAddOrUpdateAppUser;

C# Syntax:

public resAddOrUpdateAppUser ApplicationService.AddOrUpdateAppUser(paraAddOrUpdateAppUser aParameter);

Method ChangeUsernameAndPassword

Change the username and password for the given user. The user must be identified by either UserId or Username (OldUsername).

Parameters:

Flag Name Type Description
In aParameter paraChangeUsernameAndPassword

							

Return Value:

Flag Name Type
Result Result resChangeUsernameAndPassword

Oxygene Syntax:

method ApplicationService.ChangeUsernameAndPassword(const aParameter: paraChangeUsernameAndPassword) : resChangeUsernameAndPassword;

C# Syntax:

public resChangeUsernameAndPassword ApplicationService.ChangeUsernameAndPassword(paraChangeUsernameAndPassword aParameter);

Method GetAppParameters

Get values for defined parameters for the Application

Parameters:

Flag Name Type Description
In aParameter paraGetAppParameters

							

Return Value:

Flag Name Type
Result Result resGetAppParameters

Oxygene Syntax:

method ApplicationService.GetAppParameters(const aParameter: paraGetAppParameters) : resGetAppParameters;

C# Syntax:

public resGetAppParameters ApplicationService.GetAppParameters(paraGetAppParameters aParameter);

Method LoginUser

Log in a user identified by username and password.

Parameters:

Flag Name Type Description
In aParameter paraLoginUser

							

Return Value:

Flag Name Type
Result Result resLoginUser

Oxygene Syntax:

method ApplicationService.LoginUser(const aParameter: paraLoginUser) : resLoginUser;

C# Syntax:

public resLoginUser ApplicationService.LoginUser(paraLoginUser aParameter);

Method SendNewPassword

This operation will reset and create a new password, and send it by e-mail. On next login the password has to be changed.

Parameters:

Flag Name Type Description
In aParameter paraSendNewPassword

							

Return Value:

Flag Name Type
Result Result resSendNewPassword

Oxygene Syntax:

method ApplicationService.SendNewPassword(const aParameter: paraSendNewPassword) : resSendNewPassword;

C# Syntax:

public resSendNewPassword ApplicationService.SendNewPassword(paraSendNewPassword aParameter);

Method ExecuteSQL

Executes the SQL and returns the data and column definitions as XML

Parameters:

Flag Name Type Description
In aParameter paraExecuteSQL

							

Return Value:

Flag Name Type
Result Result resExecuteSQL

Oxygene Syntax:

method ApplicationService.ExecuteSQL(const aParameter: paraExecuteSQL) : resExecuteSQL;

C# Syntax:

public resExecuteSQL ApplicationService.ExecuteSQL(paraExecuteSQL aParameter);

Method ExecuteSQLV2

Executes the SQL and returns the column definitions and data. The data is returned as JSON

Parameters:

Flag Name Type Description
In aParameter paraExecuteSQLV2

							

Return Value:

Flag Name Type
Result Result resExecuteSQLV2

Oxygene Syntax:

method ApplicationService.ExecuteSQLV2(const aParameter: paraExecuteSQLV2) : resExecuteSQLV2;

C# Syntax:

public resExecuteSQLV2 ApplicationService.ExecuteSQLV2(paraExecuteSQLV2 aParameter);
Service BusinessObjectsService

The following table lists the Operations defined in "BusinessObjectsService":

Update

							
Save

							
InsertChild

							
Delete

							
Dispose

							
Refetch

							

Method Update


					

Parameters:

Flag Name Type Description
In aParameter paraUpdate

							

Return Value:

Flag Name Type
Result Result resUpdate

Oxygene Syntax:

method BusinessObjectsService.Update(const aParameter: paraUpdate) : resUpdate;

C# Syntax:

public resUpdate BusinessObjectsService.Update(paraUpdate aParameter);

Method Save


					

Parameters:

Flag Name Type Description
In aParameter paraSave

							

Return Value:

Flag Name Type
Result Result resSave

Oxygene Syntax:

method BusinessObjectsService.Save(const aParameter: paraSave) : resSave;

C# Syntax:

public resSave BusinessObjectsService.Save(paraSave aParameter);

Method InsertChild


					

Parameters:

Flag Name Type Description
In aParameter paraInsertChild

							

Return Value:

Flag Name Type
Result Result resInsertChild

Oxygene Syntax:

method BusinessObjectsService.InsertChild(const aParameter: paraInsertChild) : resInsertChild;

C# Syntax:

public resInsertChild BusinessObjectsService.InsertChild(paraInsertChild aParameter);

Method Delete


					

Parameters:

Flag Name Type Description
In aParameter paraDelete

							

Return Value:

Flag Name Type
Result Result resDelete

Oxygene Syntax:

method BusinessObjectsService.Delete(const aParameter: paraDelete) : resDelete;

C# Syntax:

public resDelete BusinessObjectsService.Delete(paraDelete aParameter);

Method Dispose


					

Parameters:

Flag Name Type Description
In aParameter paraDispose

							

Return Value:

Flag Name Type
Result Result resDispose

Oxygene Syntax:

method BusinessObjectsService.Dispose(const aParameter: paraDispose) : resDispose;

C# Syntax:

public resDispose BusinessObjectsService.Dispose(paraDispose aParameter);

Method Refetch


					

Parameters:

Flag Name Type Description
In aParameter paraRefetch

							

Return Value:

Flag Name Type
Result Result resRefetch

Oxygene Syntax:

method BusinessObjectsService.Refetch(const aParameter: paraRefetch) : resRefetch;

C# Syntax:

public resRefetch BusinessObjectsService.Refetch(paraRefetch aParameter);
Service CheckpointService

The following table lists the Operations defined in "CheckpointService":

GetWorklogInformation
Returns information about a specific checkpoint signing.
GetWorklogList
Returns a list of WorkLogStruct for a given Workid
GetWorkStructList
Returns a list of WorkStructs for a given salesline and checkpoint
SignCheckpoint
Signs a checkpoint. The checkpoint id has to be retrived using GetWorkStruct or other functions returning a valid workid.  The return value is the worklog id.
PS! This operation is atomic
GetCheckpointprofileDocumentLinks
Returns links to all relevant documents for the given workid and checkpoint profile
GetCheckpointprofileInfo

							
ExecuteSQLforCheckpointprofile

							

Method GetWorklogInformation

Returns information about a specific checkpoint signing.

Parameters:

Flag Name Type Description
In aParameter paraGetWorklogInformation

							

Return Value:

Flag Name Type
Result Result resGetWorklogInformation

Oxygene Syntax:

method CheckpointService.GetWorklogInformation(const aParameter: paraGetWorklogInformation) : resGetWorklogInformation;

C# Syntax:

public resGetWorklogInformation CheckpointService.GetWorklogInformation(paraGetWorklogInformation aParameter);

Method GetWorklogList

Returns a list of WorkLogStruct for a given Workid

Parameters:

Flag Name Type Description
In aParameter paraGetWorklogList

							

Return Value:

Flag Name Type
Result Result resGetWorkloglist

Oxygene Syntax:

method CheckpointService.GetWorklogList(const aParameter: paraGetWorklogList) : resGetWorkloglist;

C# Syntax:

public resGetWorkloglist CheckpointService.GetWorklogList(paraGetWorklogList aParameter);

Method GetWorkStructList

Returns a list of WorkStructs for a given salesline and checkpoint

Parameters:

Flag Name Type Description
In aParameter paraGetWorkstructList

							

Return Value:

Flag Name Type
Result Result resGetWorkstructList

Oxygene Syntax:

method CheckpointService.GetWorkStructList(const aParameter: paraGetWorkstructList) : resGetWorkstructList;

C# Syntax:

public resGetWorkstructList CheckpointService.GetWorkStructList(paraGetWorkstructList aParameter);

Method SignCheckpoint

Signs a checkpoint. The checkpoint id has to be retrived using GetWorkStruct or other functions returning a valid workid.  The return value is the worklog id.
PS! This operation is atomic

Parameters:

Flag Name Type Description
In aParameter paraSignCheckpoint

							

Return Value:

Flag Name Type
Result Result resSignCheckpoint

Oxygene Syntax:

method CheckpointService.SignCheckpoint(const aParameter: paraSignCheckpoint) : resSignCheckpoint;

C# Syntax:

public resSignCheckpoint CheckpointService.SignCheckpoint(paraSignCheckpoint aParameter);

Method GetCheckpointprofileDocumentLinks

Returns links to all relevant documents for the given workid and checkpoint profile

Parameters:

Flag Name Type Description
In aParameter paraGetCheckpointDocumentLinks

							

Return Value:

Flag Name Type
Result Result resGetCheckpointDocumentLinks

Oxygene Syntax:

method CheckpointService.GetCheckpointprofileDocumentLinks(const aParameter: paraGetCheckpointDocumentLinks) : resGetCheckpointDocumentLinks;

C# Syntax:

public resGetCheckpointDocumentLinks CheckpointService.GetCheckpointprofileDocumentLinks(paraGetCheckpointDocumentLinks aParameter);

Method GetCheckpointprofileInfo


					

Parameters:

Flag Name Type Description
In aParameter paraGetCheckpointprofileInfo

							

Return Value:

Flag Name Type
Result Result resGetCheckpointprofileInfo

Oxygene Syntax:

method CheckpointService.GetCheckpointprofileInfo(const aParameter: paraGetCheckpointprofileInfo) : resGetCheckpointprofileInfo;

C# Syntax:

public resGetCheckpointprofileInfo CheckpointService.GetCheckpointprofileInfo(paraGetCheckpointprofileInfo aParameter);

Method ExecuteSQLforCheckpointprofile


					

Parameters:

Flag Name Type Description
In aParameter paraExecuteSQLForCheckpointprofile

							

Return Value:

Flag Name Type
Result Result resExecuteSQLForCheckpointprofile

Oxygene Syntax:

method CheckpointService.ExecuteSQLforCheckpointprofile(const aParameter: paraExecuteSQLForCheckpointprofile) : resExecuteSQLForCheckpointprofile;

C# Syntax:

public resExecuteSQLForCheckpointprofile CheckpointService.ExecuteSQLforCheckpointprofile(paraExecuteSQLForCheckpointprofile aParameter);
Service ConsignmentService

The following table lists the Operations defined in "ConsignmentService":

NewEmpty

							
NewFromSales

							
NewFromCustomer

							
NewFromDelivery

							
Open

							
FindSimilar

							

Method NewEmpty


					

Parameters:

Flag Name Type Description
In aParameter paraNewEmpty

							

Return Value:

Flag Name Type
Result Result resNewEmpty

Oxygene Syntax:

method ConsignmentService.NewEmpty(const aParameter: paraNewEmpty) : resNewEmpty;

C# Syntax:

public resNewEmpty ConsignmentService.NewEmpty(paraNewEmpty aParameter);

Method NewFromSales


					

Parameters:

Flag Name Type Description
In aParameter paraNewFromSales

							

Return Value:

Flag Name Type
Result Result resNewFromSales

Oxygene Syntax:

method ConsignmentService.NewFromSales(const aParameter: paraNewFromSales) : resNewFromSales;

C# Syntax:

public resNewFromSales ConsignmentService.NewFromSales(paraNewFromSales aParameter);

Method NewFromCustomer


					

Parameters:

Flag Name Type Description
In aParameter paraNewFromCustomer

							

Return Value:

Flag Name Type
Result Result resNewFromCustomer

Oxygene Syntax:

method ConsignmentService.NewFromCustomer(const aParameter: paraNewFromCustomer) : resNewFromCustomer;

C# Syntax:

public resNewFromCustomer ConsignmentService.NewFromCustomer(paraNewFromCustomer aParameter);

Method NewFromDelivery


					

Parameters:

Flag Name Type Description
In aParameter paraNewFromDelivery

							

Return Value:

Flag Name Type
Result Result resNewFromDelivery

Oxygene Syntax:

method ConsignmentService.NewFromDelivery(const aParameter: paraNewFromDelivery) : resNewFromDelivery;

C# Syntax:

public resNewFromDelivery ConsignmentService.NewFromDelivery(paraNewFromDelivery aParameter);

Method Open


					

Parameters:

Flag Name Type Description
In aParameter paraOpen

							

Return Value:

Flag Name Type
Result Result resOpen

Oxygene Syntax:

method ConsignmentService.Open(const aParameter: paraOpen) : resOpen;

C# Syntax:

public resOpen ConsignmentService.Open(paraOpen aParameter);

Method FindSimilar


					

Parameters:

Flag Name Type Description
In aParameter paraFindSimilar

							

Return Value:

Flag Name Type
Result Result resFindSimilar

Oxygene Syntax:

method ConsignmentService.FindSimilar(const aParameter: paraFindSimilar) : resFindSimilar;

C# Syntax:

public resFindSimilar ConsignmentService.FindSimilar(paraFindSimilar aParameter);
Service ConsignmentUtilService

The following table lists the Operations defined in "ConsignmentUtilService":

FindSimilarFromAddress

							
FindSimilarFromConsignment

							
Merge

							
GetDispatched

							
GetNotDispatched

							
ConfirmDispatched
Confirms a group of consignment as dispatched. If the carrier supports EDI, the message will be created and sent according to the configuration on the carrier.
GetNotificationRecipients

							
SendNotification
Sends notification about dispatch of consignments to the recipients. The recipients has to be obtained from ConsignmentUtilService.GetNotificationRecipients.

Method FindSimilarFromAddress


					

Parameters:

Flag Name Type Description
In aParameter paraFindSimilarFromAddress

							

Return Value:

Flag Name Type
Result Result resFindSimilarFromAddress

Oxygene Syntax:

method ConsignmentUtilService.FindSimilarFromAddress(const aParameter: paraFindSimilarFromAddress) : resFindSimilarFromAddress;

C# Syntax:

public resFindSimilarFromAddress ConsignmentUtilService.FindSimilarFromAddress(paraFindSimilarFromAddress aParameter);

Method FindSimilarFromConsignment


					

Parameters:

Flag Name Type Description
In aParameter paraFindSimilarFromConsignment

							

Return Value:

Flag Name Type
Result Result resFindSimilarFromConsignment

Oxygene Syntax:

method ConsignmentUtilService.FindSimilarFromConsignment(const aParameter: paraFindSimilarFromConsignment) : resFindSimilarFromConsignment;

C# Syntax:

public resFindSimilarFromConsignment ConsignmentUtilService.FindSimilarFromConsignment(paraFindSimilarFromConsignment aParameter);

Method Merge


					

Parameters:

Flag Name Type Description
In aParameter paraMerge

							

Return Value:

Flag Name Type
Result Result resMerge

Oxygene Syntax:

method ConsignmentUtilService.Merge(const aParameter: paraMerge) : resMerge;

C# Syntax:

public resMerge ConsignmentUtilService.Merge(paraMerge aParameter);

Method GetDispatched


					

Parameters:

Flag Name Type Description
In aParameter paraGetDispatched

							

Return Value:

Flag Name Type
Result Result resGetDispatched

Oxygene Syntax:

method ConsignmentUtilService.GetDispatched(const aParameter: paraGetDispatched) : resGetDispatched;

C# Syntax:

public resGetDispatched ConsignmentUtilService.GetDispatched(paraGetDispatched aParameter);

Method GetNotDispatched


					

Parameters:

Flag Name Type Description
In aParameter paraGetNotDispatched

							

Return Value:

Flag Name Type
Result Result resGetNotDispatched

Oxygene Syntax:

method ConsignmentUtilService.GetNotDispatched(const aParameter: paraGetNotDispatched) : resGetNotDispatched;

C# Syntax:

public resGetNotDispatched ConsignmentUtilService.GetNotDispatched(paraGetNotDispatched aParameter);

Method ConfirmDispatched

Confirms a group of consignment as dispatched. If the carrier supports EDI, the message will be created and sent according to the configuration on the carrier.

Parameters:

Flag Name Type Description
In aParameter paraConfirmDispatched

							

Return Value:

Flag Name Type
Result Result resConfirmDispatched

Oxygene Syntax:

method ConsignmentUtilService.ConfirmDispatched(const aParameter: paraConfirmDispatched) : resConfirmDispatched;

C# Syntax:

public resConfirmDispatched ConsignmentUtilService.ConfirmDispatched(paraConfirmDispatched aParameter);

Method GetNotificationRecipients


					

Parameters:

Flag Name Type Description
In aParameter paraGetNotificationRecipients

							

Return Value:

Flag Name Type
Result Result resGetNotificationRecipients

Oxygene Syntax:

method ConsignmentUtilService.GetNotificationRecipients(const aParameter: paraGetNotificationRecipients) : resGetNotificationRecipients;

C# Syntax:

public resGetNotificationRecipients ConsignmentUtilService.GetNotificationRecipients(paraGetNotificationRecipients aParameter);

Method SendNotification

Sends notification about dispatch of consignments to the recipients. The recipients has to be obtained from ConsignmentUtilService.GetNotificationRecipients.

Parameters:

Flag Name Type Description
In aParameter paraSendNotification

							

Return Value:

Flag Name Type
Result Result resSendNotification

Oxygene Syntax:

method ConsignmentUtilService.SendNotification(const aParameter: paraSendNotification) : resSendNotification;

C# Syntax:

public resSendNotification ConsignmentUtilService.SendNotification(paraSendNotification aParameter);
Service DeviationService

The following table lists the Operations defined in "DeviationService":

CreateFromTemplate
Will create a deviation based on a template.

Method CreateFromTemplate

Will create a deviation based on a template.

Parameters:

Flag Name Type Description
In aParameter paraCreateFromTemplate

							

Return Value:

Flag Name Type
Result Result resCreateFromTemplate

Oxygene Syntax:

method DeviationService.CreateFromTemplate(const aParameter: paraCreateFromTemplate) : resCreateFromTemplate;

C# Syntax:

public resCreateFromTemplate DeviationService.CreateFromTemplate(paraCreateFromTemplate aParameter);
Service LoginService

The following table lists the Operations defined in "LoginService":

Login
Login to the appliation. If successfully, a session i created.
ApiLogin
Login to the appliation application identified by ApplicationId. If successfully, a session i created.
Logout
Logs out the client and releases the session.

Method Login

Login to the appliation. If successfully, a session i created.

Parameters:

Flag Name Type Description
In aParameter paraLogin

							

Return Value:

Flag Name Type
Result Result resLogin

Oxygene Syntax:

method LoginService.Login(const aParameter: paraLogin) : resLogin;

C# Syntax:

public resLogin LoginService.Login(paraLogin aParameter);

Method ApiLogin

Login to the appliation application identified by ApplicationId. If successfully, a session i created.

Parameters:

Flag Name Type Description
In aParameter paraApiLogin

							

Return Value:

Flag Name Type
Result Result resApiLogin

Oxygene Syntax:

method LoginService.ApiLogin(const aParameter: paraApiLogin) : resApiLogin;

C# Syntax:

public resApiLogin LoginService.ApiLogin(paraApiLogin aParameter);

Method Logout

Logs out the client and releases the session.

Parameters:

Flag Name Type Description
In aParameter paraLogout

							

Return Value:

Flag Name Type
Result Result resLogout

Oxygene Syntax:

method LoginService.Logout(const aParameter: paraLogout) : resLogout;

C# Syntax:

public resLogout LoginService.Logout(paraLogout aParameter);
Service LogisticsService

The following table lists the Operations defined in "LogisticsService":

GoodsDeliver
Goods dispatch/deliver (order) or goods receipt (purchase)
GoodsCancel
Cancel goods dispatch/deliver (order) or goods receipt (purchase)
CreateDraft
Create a draft for either inventory, correction or transfer kind of item adjustments
BookDraft
Book a draft. That mean all items in the draft are applied.
AddToInventoryDraft
Add items to an Inventory draft.
AddToCorrectionDraft
Add items to an correction draft.
AddToTransferDraft
Add items to an correction draft.

Method GoodsDeliver

Goods dispatch/deliver (order) or goods receipt (purchase)

Parameters:

Flag Name Type Description
In para paraGoodsDeliver

							

Return Value:

Flag Name Type
Result Result resGoodsDeliver

Oxygene Syntax:

method LogisticsService.GoodsDeliver(const para: paraGoodsDeliver) : resGoodsDeliver;

C# Syntax:

public resGoodsDeliver LogisticsService.GoodsDeliver(paraGoodsDeliver para);

Method GoodsCancel

Cancel goods dispatch/deliver (order) or goods receipt (purchase)

Parameters:

Flag Name Type Description
In para paraGoodsCancel

							

Return Value:

Flag Name Type
Result Result resGoodsCancel

Oxygene Syntax:

method LogisticsService.GoodsCancel(const para: paraGoodsCancel) : resGoodsCancel;

C# Syntax:

public resGoodsCancel LogisticsService.GoodsCancel(paraGoodsCancel para);

Method CreateDraft

Create a draft for either inventory, correction or transfer kind of item adjustments

Parameters:

Flag Name Type Description
In para paraCreateInventoryDraft

							

Return Value:

Flag Name Type
Result Result resCreateInventoryDraft

Oxygene Syntax:

method LogisticsService.CreateDraft(const para: paraCreateInventoryDraft) : resCreateInventoryDraft;

C# Syntax:

public resCreateInventoryDraft LogisticsService.CreateDraft(paraCreateInventoryDraft para);

Method BookDraft

Book a draft. That mean all items in the draft are applied.

Parameters:

Flag Name Type Description
In para paraBookDraft

							

Return Value:

Flag Name Type
Result Result resBookDraft

Oxygene Syntax:

method LogisticsService.BookDraft(const para: paraBookDraft) : resBookDraft;

C# Syntax:

public resBookDraft LogisticsService.BookDraft(paraBookDraft para);

Method AddToInventoryDraft

Add items to an Inventory draft.

Parameters:

Flag Name Type Description
In para paraAddToInventoryDraft

							

Return Value:

Flag Name Type
Result Result resAddToDraft

Oxygene Syntax:

method LogisticsService.AddToInventoryDraft(const para: paraAddToInventoryDraft) : resAddToDraft;

C# Syntax:

public resAddToDraft LogisticsService.AddToInventoryDraft(paraAddToInventoryDraft para);

Method AddToCorrectionDraft

Add items to an correction draft.

Parameters:

Flag Name Type Description
In para paraAddToCorrectionDraft

							

Return Value:

Flag Name Type
Result Result resAddToDraft

Oxygene Syntax:

method LogisticsService.AddToCorrectionDraft(const para: paraAddToCorrectionDraft) : resAddToDraft;

C# Syntax:

public resAddToDraft LogisticsService.AddToCorrectionDraft(paraAddToCorrectionDraft para);

Method AddToTransferDraft

Add items to an correction draft.

Parameters:

Flag Name Type Description
In para paraAddToTransferDraft

							

Return Value:

Flag Name Type
Result Result resAddToDraft

Oxygene Syntax:

method LogisticsService.AddToTransferDraft(const para: paraAddToTransferDraft) : resAddToDraft;

C# Syntax:

public resAddToDraft LogisticsService.AddToTransferDraft(paraAddToTransferDraft para);
Service MachineLinkService

The following table lists the Operations defined in "MachineLinkService":

ExecuteProject
Will execute a MachineLink project, and return one or more files.
ExecuteProjectAndStore
Will execute a MachineLink project and store the generated files to a database tabler

Method ExecuteProject

Will execute a MachineLink project, and return one or more files.

Parameters:

Flag Name Type Description
In aParameter paraExecuteProject

							

Return Value:

Flag Name Type
Result Result resExecuteProject

Oxygene Syntax:

method MachineLinkService.ExecuteProject(const aParameter: paraExecuteProject) : resExecuteProject;

C# Syntax:

public resExecuteProject MachineLinkService.ExecuteProject(paraExecuteProject aParameter);

Method ExecuteProjectAndStore

Will execute a MachineLink project and store the generated files to a database tabler

Parameters:

Flag Name Type Description
In aParameter paraExecuteProjectAndStore

							

Return Value:

Flag Name Type
Result Result resExecuteProjectAndStore

Oxygene Syntax:

method MachineLinkService.ExecuteProjectAndStore(const aParameter: paraExecuteProjectAndStore) : resExecuteProjectAndStore;

C# Syntax:

public resExecuteProjectAndStore MachineLinkService.ExecuteProjectAndStore(paraExecuteProjectAndStore aParameter);
Service MediaService

The following table lists the Operations defined in "MediaService":

GetItemLineImage
Returns a product drawing for an item line
GetStdProductImage
Returns a product drawing for standard product
GetStockItemImage
Returns a product drawing for an item
GetItemLineDocuments
Returns all list of document infromation for an item line
GetCheckpointDocuments
Returns all list of document information for a checkpoint profile and workid
GetProductImage
Returns a product drawing for standard product

Method GetItemLineImage

Returns a product drawing for an item line

Parameters:

Flag Name Type Description
In aParameter paraGetItemLineImage

							

Return Value:

Flag Name Type
Result Result resProdcutImage

Oxygene Syntax:

method MediaService.GetItemLineImage(const aParameter: paraGetItemLineImage) : resProdcutImage;

C# Syntax:

public resProdcutImage MediaService.GetItemLineImage(paraGetItemLineImage aParameter);

Method GetStdProductImage

Returns a product drawing for standard product

Parameters:

Flag Name Type Description
In aParameter paraGetStdProductImage

							

Return Value:

Flag Name Type
Result Result resProdcutImage

Oxygene Syntax:

method MediaService.GetStdProductImage(const aParameter: paraGetStdProductImage) : resProdcutImage;

C# Syntax:

public resProdcutImage MediaService.GetStdProductImage(paraGetStdProductImage aParameter);

Method GetStockItemImage

Returns a product drawing for an item

Parameters:

Flag Name Type Description
In aParameter paraGetStockItemImage

							

Return Value:

Flag Name Type
Result Result resProdcutImage

Oxygene Syntax:

method MediaService.GetStockItemImage(const aParameter: paraGetStockItemImage) : resProdcutImage;

C# Syntax:

public resProdcutImage MediaService.GetStockItemImage(paraGetStockItemImage aParameter);

Method GetItemLineDocuments

Returns all list of document infromation for an item line

Parameters:

Flag Name Type Description
In aParameter paraGetItemLineDocuments

							

Return Value:

Flag Name Type
Result Result resGetDocuments

Oxygene Syntax:

method MediaService.GetItemLineDocuments(const aParameter: paraGetItemLineDocuments) : resGetDocuments;

C# Syntax:

public resGetDocuments MediaService.GetItemLineDocuments(paraGetItemLineDocuments aParameter);

Method GetCheckpointDocuments

Returns all list of document information for a checkpoint profile and workid

Parameters:

Flag Name Type Description
In aParameter paraGetCheckpointDocuments

							

Return Value:

Flag Name Type
Result Result resGetDocuments

Oxygene Syntax:

method MediaService.GetCheckpointDocuments(const aParameter: paraGetCheckpointDocuments) : resGetDocuments;

C# Syntax:

public resGetDocuments MediaService.GetCheckpointDocuments(paraGetCheckpointDocuments aParameter);

Method GetProductImage

Returns a product drawing for standard product

Parameters:

Flag Name Type Description
In aParameter paraGetProductImage

							

Return Value:

Flag Name Type
Result Result resProdcutImage

Oxygene Syntax:

method MediaService.GetProductImage(const aParameter: paraGetProductImage) : resProdcutImage;

C# Syntax:

public resProdcutImage MediaService.GetProductImage(paraGetProductImage aParameter);
Service MessageService

The following table lists the Operations defined in "MessageService":

SendMessage
Send message to CalWin user that will show up in the CalWin desktop application.
SendSMS

							
SendEMail
Send Email message. The message will be added to the outbound email queue, so there will be no immediate feedback on success or eventual errors

Method SendMessage

Send message to CalWin user that will show up in the CalWin desktop application.

Parameters:

Flag Name Type Description
In aParameter paraSendMessage

							

Return Value:

Flag Name Type
Result Result resSendMessage

Oxygene Syntax:

method MessageService.SendMessage(const aParameter: paraSendMessage) : resSendMessage;

C# Syntax:

public resSendMessage MessageService.SendMessage(paraSendMessage aParameter);

Method SendSMS


					

Parameters:

Flag Name Type Description
In aParameter paraSendSMS

							

Return Value:

Flag Name Type
Result Result resSendSMS

Oxygene Syntax:

method MessageService.SendSMS(const aParameter: paraSendSMS) : resSendSMS;

C# Syntax:

public resSendSMS MessageService.SendSMS(paraSendSMS aParameter);

Method SendEMail

Send Email message. The message will be added to the outbound email queue, so there will be no immediate feedback on success or eventual errors

Parameters:

Flag Name Type Description
In aParameter paraSendEmail

							

Return Value:

Flag Name Type
Result Result resSendEmail

Oxygene Syntax:

method MessageService.SendEMail(const aParameter: paraSendEmail) : resSendEmail;

C# Syntax:

public resSendEmail MessageService.SendEMail(paraSendEmail aParameter);
Service MiscService

The following table lists the Operations defined in "MiscService":

InstallAPPX
Installs or ugrades an CalWin App by uploading the APPX file.
CheckSession
Checks if the given session id exists.
GetRGBFromNCS

							

Method InstallAPPX

Installs or ugrades an CalWin App by uploading the APPX file.

Parameters:

Flag Name Type Description
In aParameter paraInstallAppx

							

Return Value:

Flag Name Type
Result Result resInstallAppx

Oxygene Syntax:

method MiscService.InstallAPPX(const aParameter: paraInstallAppx) : resInstallAppx;

C# Syntax:

public resInstallAppx MiscService.InstallAPPX(paraInstallAppx aParameter);

Method CheckSession

Checks if the given session id exists.

Parameters:

Flag Name Type Description
In aParameter paraCheckSession

							

Return Value:

Flag Name Type
Result Result resCheckSession

Oxygene Syntax:

method MiscService.CheckSession(const aParameter: paraCheckSession) : resCheckSession;

C# Syntax:

public resCheckSession MiscService.CheckSession(paraCheckSession aParameter);

Method GetRGBFromNCS


					

Parameters:

Flag Name Type Description
In aParameter paraGetRGBFromNCS

							

Return Value:

Flag Name Type
Result Result resGetRGBFromNCS

Oxygene Syntax:

method MiscService.GetRGBFromNCS(const aParameter: paraGetRGBFromNCS) : resGetRGBFromNCS;

C# Syntax:

public resGetRGBFromNCS MiscService.GetRGBFromNCS(paraGetRGBFromNCS aParameter);
Service MiscServiceSession

The following table lists the Operations defined in "MiscServiceSession":

AddOrUpdateActivity

							
AddOrUpdateDiaryEvent
With AddOrUpdateDiary you can either create a new diary event (aParameter.Id = 0) or update an existing (aParemeterId = 0).
DeleteActivity

							
DeleteDiaryEvent
Delete the diary event given by aParameter.EventId.
GetActivity

							
GetDiaryEvent
Gets a DiaryEvent from the database gived by aParameter.Id
GetParameters
Get a arbitrary list of parameters by name and context.
This operation is intended for storing application parameters in global,
application (name of application), user or customer context, or any combination.
GetStdProductInfo
Returns information about a given Standard Product for every allowed sizes.
Pricelist prices will also be returned if the a pricelist is given, or there is a
default pricelist defined on the location.
SaveParameters

							
AddOrUpdateContact
Adds or updates a Contactperson. If aContact.Id is 0 the contact will be added.  PS! It's very important to call Commit or Rollback in conjuction with this operation. See Session service.

Method AddOrUpdateActivity


					

Parameters:

Flag Name Type Description
In aParameter paraAddOrUpdateActivity

							

Return Value:

Flag Name Type
Result Result resAddOrUpdateActivity

Oxygene Syntax:

method MiscServiceSession.AddOrUpdateActivity(const aParameter: paraAddOrUpdateActivity) : resAddOrUpdateActivity;

C# Syntax:

public resAddOrUpdateActivity MiscServiceSession.AddOrUpdateActivity(paraAddOrUpdateActivity aParameter);

Method AddOrUpdateDiaryEvent

With AddOrUpdateDiary you can either create a new diary event (aParameter.Id = 0) or update an existing (aParemeterId = 0).

Parameters:

Flag Name Type Description
In aParameter paraAddOrUpdateDiaryEvent

							

Return Value:

Flag Name Type
Result Result resAddOrUpdateDiaryEvent

Oxygene Syntax:

method MiscServiceSession.AddOrUpdateDiaryEvent(const aParameter: paraAddOrUpdateDiaryEvent) : resAddOrUpdateDiaryEvent;

C# Syntax:

public resAddOrUpdateDiaryEvent MiscServiceSession.AddOrUpdateDiaryEvent(paraAddOrUpdateDiaryEvent aParameter);

Method DeleteActivity


					

Parameters:

Flag Name Type Description
In aParameter paraDeleteActivity

							

Return Value:

Flag Name Type
Result Result resDeleteActivity

Oxygene Syntax:

method MiscServiceSession.DeleteActivity(const aParameter: paraDeleteActivity) : resDeleteActivity;

C# Syntax:

public resDeleteActivity MiscServiceSession.DeleteActivity(paraDeleteActivity aParameter);

Method DeleteDiaryEvent

Delete the diary event given by aParameter.EventId.

Parameters:

Flag Name Type Description
In aParameter paraDeleteDiaryEvent

							

Return Value:

Flag Name Type
Result Result resDeleteDiaryEvent

Oxygene Syntax:

method MiscServiceSession.DeleteDiaryEvent(const aParameter: paraDeleteDiaryEvent) : resDeleteDiaryEvent;

C# Syntax:

public resDeleteDiaryEvent MiscServiceSession.DeleteDiaryEvent(paraDeleteDiaryEvent aParameter);

Method GetActivity


					

Parameters:

Flag Name Type Description
In aParameter paraGetActivity

							

Return Value:

Flag Name Type
Result Result resGetActivity

Oxygene Syntax:

method MiscServiceSession.GetActivity(const aParameter: paraGetActivity) : resGetActivity;

C# Syntax:

public resGetActivity MiscServiceSession.GetActivity(paraGetActivity aParameter);

Method GetDiaryEvent

Gets a DiaryEvent from the database gived by aParameter.Id

Parameters:

Flag Name Type Description
In aParameter paraGetDiaryEvent

							

Return Value:

Flag Name Type
Result Result resGetDiaryEvent

Oxygene Syntax:

method MiscServiceSession.GetDiaryEvent(const aParameter: paraGetDiaryEvent) : resGetDiaryEvent;

C# Syntax:

public resGetDiaryEvent MiscServiceSession.GetDiaryEvent(paraGetDiaryEvent aParameter);

Method GetParameters

Get a arbitrary list of parameters by name and context.
This operation is intended for storing application parameters in global,
application (name of application), user or customer context, or any combination.

Parameters:

Flag Name Type Description
In aParameter paraGetParameters

							

Return Value:

Flag Name Type
Result Result resGetParameters

Oxygene Syntax:

method MiscServiceSession.GetParameters(const aParameter: paraGetParameters) : resGetParameters;

C# Syntax:

public resGetParameters MiscServiceSession.GetParameters(paraGetParameters aParameter);

Method GetStdProductInfo

Returns information about a given Standard Product for every allowed sizes.
Pricelist prices will also be returned if the a pricelist is given, or there is a
default pricelist defined on the location.

Parameters:

Flag Name Type Description
In aParameter paraGetStdProductInfo

							

Return Value:

Flag Name Type
Result Result resGetStdProductInfo

Oxygene Syntax:

method MiscServiceSession.GetStdProductInfo(const aParameter: paraGetStdProductInfo) : resGetStdProductInfo;

C# Syntax:

public resGetStdProductInfo MiscServiceSession.GetStdProductInfo(paraGetStdProductInfo aParameter);

Method SaveParameters


					

Parameters:

Flag Name Type Description
In aParameter paraSaveParameters

							

Return Value:

Flag Name Type
Result Result resSaveParameters

Oxygene Syntax:

method MiscServiceSession.SaveParameters(const aParameter: paraSaveParameters) : resSaveParameters;

C# Syntax:

public resSaveParameters MiscServiceSession.SaveParameters(paraSaveParameters aParameter);

Method AddOrUpdateContact

Adds or updates a Contactperson. If aContact.Id is 0 the contact will be added.  PS! It's very important to call Commit or Rollback in conjuction with this operation. See Session service.

Parameters:

Flag Name Type Description
In aParameter paraAddOrUpdateContact

							

Return Value:

Flag Name Type
Result Result resAddOrUpdateContact

Oxygene Syntax:

method MiscServiceSession.AddOrUpdateContact(const aParameter: paraAddOrUpdateContact) : resAddOrUpdateContact;

C# Syntax:

public resAddOrUpdateContact MiscServiceSession.AddOrUpdateContact(paraAddOrUpdateContact aParameter);
Service NotificationService

The following table lists the Operations defined in "NotificationService":

GetNextDbChange
Returns the next DB change notification from the queue.
PS! A commit must be done before the item or items are permanently dequed. Eventually
a rollback can be executed to let the items stay in the queue.
PollQueue

							
CheckQueue

							
PushQueue

							

Method GetNextDbChange

Returns the next DB change notification from the queue.
PS! A commit must be done before the item or items are permanently dequed. Eventually
a rollback can be executed to let the items stay in the queue.

Parameters:

Flag Name Type Description
In aParameter paraGetNextDbChange

							

Return Value:

Flag Name Type
Result Result resGetNextDbChange

Oxygene Syntax:

method NotificationService.GetNextDbChange(const aParameter: paraGetNextDbChange) : resGetNextDbChange;

C# Syntax:

public resGetNextDbChange NotificationService.GetNextDbChange(paraGetNextDbChange aParameter);

Method PollQueue


					

Parameters:

Flag Name Type Description
In aParameter paraPollQueue

							

Return Value:

Flag Name Type
Result Result resPollQueue

Oxygene Syntax:

method NotificationService.PollQueue(const aParameter: paraPollQueue) : resPollQueue;

C# Syntax:

public resPollQueue NotificationService.PollQueue(paraPollQueue aParameter);

Method CheckQueue


					

Parameters:

Flag Name Type Description
In aParameter paraCheckQueue

							

Return Value:

Flag Name Type
Result Result resCheckQueue

Oxygene Syntax:

method NotificationService.CheckQueue(const aParameter: paraCheckQueue) : resCheckQueue;

C# Syntax:

public resCheckQueue NotificationService.CheckQueue(paraCheckQueue aParameter);

Method PushQueue


					

Parameters:

Flag Name Type Description
In aParameter paraPushQueue

							

Return Value:

Flag Name Type
Result Result resPushQueue

Oxygene Syntax:

method NotificationService.PushQueue(const aParameter: paraPushQueue) : resPushQueue;

C# Syntax:

public resPushQueue NotificationService.PushQueue(paraPushQueue aParameter);
Service OrderService

The following table lists the Operations defined in "OrderService":

shNew
Creates a new quote for a given customer account.
shSetCurrencyMode
Sets the currency mode for the order session. Must be called before shNew or shOpen.
shOpen
Opens a existing quote or order from database.
shUpdate
Updates the server side salesheader object with values from the aSalesHeader parameter.
shSave
Saves the current quote or order to DB and returns and updated SalesHeaderStruct. Any unsaved orderlines
will also be saved.

PS! It's very important to call Commit or Rollback in conjuction with this operation,
or use the AutoDBCommit parameter.
See Session service.
slAdd
Adds a new Salesline object.
slSaveCurrent
Saves the current Salesline to DB.  PS! It's very important to call Commit or Rollback in conjuction with this operation, or use the AutoDBCommit parameter. See Session service.
slSetCurrent
Set the current row that all subsequent Salesline operations will apply to.
slGetImage
Returns a drawing of the product in JPG, EMG or Bitmap format.
GetListOfCodes
Return a list of valid product and items.
shConvertToOrder
Converts a quote to an order.  PS! It's very important to call Commit/Rollback in conjuction with this operation, or use the AutoDBCommit parameter. See Session service.
shDelete
Deletes the current SalesHeader from DB.  PS! It's very important to call Commit or Rollback in conjuction with this operation, or use the AutoDBCommit parameter. See Session service.
shGetCalcualtedDeliveryTime
Returns the possible production, delivery and customer date for the quote or order.
shNewPurchase
Initialize a new purchase header
shOpenPurchase
Opens an existing purchase.
shRefresh
Returns the complete Salesheader and Salesline array in the orderservice object.
New lines (for example automatically created lines) will be added to the Salesline object array.
Optionally the salesheader and saleslines can be refreshed from the database by setting
the RereadSalesheader and/or RereadSaleslines.
shRefreshPurchase
Returns the complete Salesheader and Salesline array in the orderservice object.
New lines (for example automatically created lines) will be added to the Salesline object array.
Optionally the salesheader and saleslines can be refreshed from the database by setting
the RereadSalesheader and/or RereadSaleslines.
shSavePurchase
Saves the current purchase DB and returns and updated PurchaseHeaderStruct. Any unsaved orderlines
will also be saved.

PS! It's very important to call Commit or Rollback in conjuction with this operation,
or use the AutoDBCommit parameter.
See Session service.
shUpdatePurchase
Updates the server side purchase header object.
shUpdatevolumeDiscount
Recalculates the volumediscount based on the given discountpercent. The discount will be applied to the
individual itemlines or as a seperate item line based on a CalWin system parameter.
PS 1! All item lines in the OrderService has to be saved before calling this operation.
PS 2! A shSave will be performed automatically afterwards.
This method is marked as obsolete.
slAddFrom
Adds a new product from an existing item line stored in the database and set it as current.
slAddInformation
Adds information to the current Salesline
slDeleteCurrent
Delete current salesline object, and if the salesline is stored in the DB, from the
DB also.

PS! It's very important to call Commit or Rollback in conjuction with this operation,
or use the AutoDBCommit parameter.
See Session service.
slDuplicateCurrent
Duplicates current salesline and returns it. It can optionally be saved to the database.
slGetCurrent
Returns the current orderline object.
slGetDrawing2D
The operation returns a 2D drawing of the current item line in XAML format.
slGetPropertyAlternatives
Returns alternatives for property identified by aIndex.
slModifySelectedAreas

							
slRollback
Rollbacks changes done to current salesline object, since loading, last save or slSetCurrent. PS! Not to be confused with Session.Rollback which is a database rollback.
slUpdateProperties
With this operation several properties can be updated in one call.
slGetDocumentLinks
Returns links to all related document for this line. Currently only for lines that are saved to db.
shGetDocumentLinks
Returns links to all related document for this sale

Method shNew

Creates a new quote for a given customer account.

Parameters:

Flag Name Type Description
In aParameter paraShNew

							

Return Value:

Flag Name Type
Result Result resShNew

Oxygene Syntax:

method OrderService.shNew(const aParameter: paraShNew) : resShNew;

C# Syntax:

public resShNew OrderService.shNew(paraShNew aParameter);

Method shSetCurrencyMode

Sets the currency mode for the order session. Must be called before shNew or shOpen.

Parameters:

Flag Name Type Description
In aParameter paraShSetCurrencyMode

							

Return Value:

Flag Name Type
Result Result resShSetCurrencyMode

Oxygene Syntax:

method OrderService.shSetCurrencyMode(const aParameter: paraShSetCurrencyMode) : resShSetCurrencyMode;

C# Syntax:

public resShSetCurrencyMode OrderService.shSetCurrencyMode(paraShSetCurrencyMode aParameter);

Method shOpen

Opens a existing quote or order from database.

Parameters:

Flag Name Type Description
In aParameter paraShOpen

							

Return Value:

Flag Name Type
Result Result resShOpen

Oxygene Syntax:

method OrderService.shOpen(const aParameter: paraShOpen) : resShOpen;

C# Syntax:

public resShOpen OrderService.shOpen(paraShOpen aParameter);

Method shUpdate

Updates the server side salesheader object with values from the aSalesHeader parameter.

Parameters:

Flag Name Type Description
In aParameter paraShUpdate

							

Return Value:

Flag Name Type
Result Result resShUpdate

Oxygene Syntax:

method OrderService.shUpdate(const aParameter: paraShUpdate) : resShUpdate;

C# Syntax:

public resShUpdate OrderService.shUpdate(paraShUpdate aParameter);

Method shSave

Saves the current quote or order to DB and returns and updated SalesHeaderStruct. Any unsaved orderlines
will also be saved.

PS! It's very important to call Commit or Rollback in conjuction with this operation,
or use the AutoDBCommit parameter.
See Session service.

Parameters:

Flag Name Type Description
In aParameter paraShSave

							

Return Value:

Flag Name Type
Result Result resShSave

Oxygene Syntax:

method OrderService.shSave(const aParameter: paraShSave) : resShSave;

C# Syntax:

public resShSave OrderService.shSave(paraShSave aParameter);

Method slAdd

Adds a new Salesline object.

Parameters:

Flag Name Type Description
In aParameter paraSlAdd

							

Return Value:

Flag Name Type
Result Result resSlAdd

Oxygene Syntax:

method OrderService.slAdd(const aParameter: paraSlAdd) : resSlAdd;

C# Syntax:

public resSlAdd OrderService.slAdd(paraSlAdd aParameter);

Method slSaveCurrent

Saves the current Salesline to DB.  PS! It's very important to call Commit or Rollback in conjuction with this operation, or use the AutoDBCommit parameter. See Session service.

Parameters:

Flag Name Type Description
In aParameter paraSlSaveCurrent

							

Return Value:

Flag Name Type
Result Result resSlSaveCurrent

Oxygene Syntax:

method OrderService.slSaveCurrent(const aParameter: paraSlSaveCurrent) : resSlSaveCurrent;

C# Syntax:

public resSlSaveCurrent OrderService.slSaveCurrent(paraSlSaveCurrent aParameter);

Method slSetCurrent

Set the current row that all subsequent Salesline operations will apply to.

Parameters:

Flag Name Type Description
In aParameter paraSlSetCurrent

							

Return Value:

Flag Name Type
Result Result resSlSetCurrent

Oxygene Syntax:

method OrderService.slSetCurrent(const aParameter: paraSlSetCurrent) : resSlSetCurrent;

C# Syntax:

public resSlSetCurrent OrderService.slSetCurrent(paraSlSetCurrent aParameter);

Method slGetImage

Returns a drawing of the product in JPG, EMG or Bitmap format.

Parameters:

Flag Name Type Description
In aParameter paraSlGetImage

							

Return Value:

Flag Name Type
Result Result resSlGetImage

Oxygene Syntax:

method OrderService.slGetImage(const aParameter: paraSlGetImage) : resSlGetImage;

C# Syntax:

public resSlGetImage OrderService.slGetImage(paraSlGetImage aParameter);

Method GetListOfCodes

Return a list of valid product and items.

Parameters:

Flag Name Type Description
In aParameter paraGetListOfCodes

							

Return Value:

Flag Name Type
Result Result resGetListOfCodes

Oxygene Syntax:

method OrderService.GetListOfCodes(const aParameter: paraGetListOfCodes) : resGetListOfCodes;

C# Syntax:

public resGetListOfCodes OrderService.GetListOfCodes(paraGetListOfCodes aParameter);

Method shConvertToOrder

Converts a quote to an order.  PS! It's very important to call Commit/Rollback in conjuction with this operation, or use the AutoDBCommit parameter. See Session service.

Parameters:

Flag Name Type Description
In aParameter paraShConvertToOrder

							

Return Value:

Flag Name Type
Result Result resShConvertToOrder

Oxygene Syntax:

method OrderService.shConvertToOrder(const aParameter: paraShConvertToOrder) : resShConvertToOrder;

C# Syntax:

public resShConvertToOrder OrderService.shConvertToOrder(paraShConvertToOrder aParameter);

Method shDelete

Deletes the current SalesHeader from DB.  PS! It's very important to call Commit or Rollback in conjuction with this operation, or use the AutoDBCommit parameter. See Session service.

Parameters:

Flag Name Type Description
In aParameter paraShDelete

							

Return Value:

Flag Name Type
Result Result resShDelete

Oxygene Syntax:

method OrderService.shDelete(const aParameter: paraShDelete) : resShDelete;

C# Syntax:

public resShDelete OrderService.shDelete(paraShDelete aParameter);

Method shGetCalcualtedDeliveryTime

Returns the possible production, delivery and customer date for the quote or order.

Parameters:

Flag Name Type Description
In aParameter paraShGetCalculatedDeliveryTime

							

Return Value:

Flag Name Type
Result Result resShGetCalculatedDeliveryTime

Oxygene Syntax:

method OrderService.shGetCalcualtedDeliveryTime(const aParameter: paraShGetCalculatedDeliveryTime) : resShGetCalculatedDeliveryTime;

C# Syntax:

public resShGetCalculatedDeliveryTime OrderService.shGetCalcualtedDeliveryTime(paraShGetCalculatedDeliveryTime aParameter);

Method shNewPurchase

Initialize a new purchase header

Parameters:

Flag Name Type Description
In aParameter paraShNewPurchase

							

Return Value:

Flag Name Type
Result Result resShNewPurchase

Oxygene Syntax:

method OrderService.shNewPurchase(const aParameter: paraShNewPurchase) : resShNewPurchase;

C# Syntax:

public resShNewPurchase OrderService.shNewPurchase(paraShNewPurchase aParameter);

Method shOpenPurchase

Opens an existing purchase.

Parameters:

Flag Name Type Description
In aParameter paraShOpenPurchase

							

Return Value:

Flag Name Type
Result Result resShOpenPurchase

Oxygene Syntax:

method OrderService.shOpenPurchase(const aParameter: paraShOpenPurchase) : resShOpenPurchase;

C# Syntax:

public resShOpenPurchase OrderService.shOpenPurchase(paraShOpenPurchase aParameter);

Method shRefresh

Returns the complete Salesheader and Salesline array in the orderservice object.
New lines (for example automatically created lines) will be added to the Salesline object array.
Optionally the salesheader and saleslines can be refreshed from the database by setting
the RereadSalesheader and/or RereadSaleslines.

Parameters:

Flag Name Type Description
In aParameter paraShRefresh

							

Return Value:

Flag Name Type
Result Result resShRefresh

Oxygene Syntax:

method OrderService.shRefresh(const aParameter: paraShRefresh) : resShRefresh;

C# Syntax:

public resShRefresh OrderService.shRefresh(paraShRefresh aParameter);

Method shRefreshPurchase

Returns the complete Salesheader and Salesline array in the orderservice object.
New lines (for example automatically created lines) will be added to the Salesline object array.
Optionally the salesheader and saleslines can be refreshed from the database by setting
the RereadSalesheader and/or RereadSaleslines.

Parameters:

Flag Name Type Description
In aParameter paraShRefreshPurchase

							

Return Value:

Flag Name Type
Result Result resShRefreshPurchase

Oxygene Syntax:

method OrderService.shRefreshPurchase(const aParameter: paraShRefreshPurchase) : resShRefreshPurchase;

C# Syntax:

public resShRefreshPurchase OrderService.shRefreshPurchase(paraShRefreshPurchase aParameter);

Method shSavePurchase

Saves the current purchase DB and returns and updated PurchaseHeaderStruct. Any unsaved orderlines
will also be saved.

PS! It's very important to call Commit or Rollback in conjuction with this operation,
or use the AutoDBCommit parameter.
See Session service.

Parameters:

Flag Name Type Description
In aParameter paraShSavePurchase

							

Return Value:

Flag Name Type
Result Result resShSavePurchase

Oxygene Syntax:

method OrderService.shSavePurchase(const aParameter: paraShSavePurchase) : resShSavePurchase;

C# Syntax:

public resShSavePurchase OrderService.shSavePurchase(paraShSavePurchase aParameter);

Method shUpdatePurchase

Updates the server side purchase header object.

Parameters:

Flag Name Type Description
In aParameter paraShUpdatePurchase

							

Return Value:

Flag Name Type
Result Result resShUpdatePurchase

Oxygene Syntax:

method OrderService.shUpdatePurchase(const aParameter: paraShUpdatePurchase) : resShUpdatePurchase;

C# Syntax:

public resShUpdatePurchase OrderService.shUpdatePurchase(paraShUpdatePurchase aParameter);

Method shUpdatevolumeDiscount

Recalculates the volumediscount based on the given discountpercent. The discount will be applied to the
individual itemlines or as a seperate item line based on a CalWin system parameter.
PS 1! All item lines in the OrderService has to be saved before calling this operation.
PS 2! A shSave will be performed automatically afterwards.
This method is marked as obsolete.

Parameters:

Flag Name Type Description
In aParameter paraShUpdateVolumeDiscount

							

Return Value:

Flag Name Type
Result Result resShUpdateVolumeDiscount

Oxygene Syntax:

method OrderService.shUpdatevolumeDiscount(const aParameter: paraShUpdateVolumeDiscount) : resShUpdateVolumeDiscount;

C# Syntax:

public resShUpdateVolumeDiscount OrderService.shUpdatevolumeDiscount(paraShUpdateVolumeDiscount aParameter);

Method slAddFrom

Adds a new product from an existing item line stored in the database and set it as current.

Parameters:

Flag Name Type Description
In aParameter paraSlAddFrom

							

Return Value:

Flag Name Type
Result Result resSlAddFrom

Oxygene Syntax:

method OrderService.slAddFrom(const aParameter: paraSlAddFrom) : resSlAddFrom;

C# Syntax:

public resSlAddFrom OrderService.slAddFrom(paraSlAddFrom aParameter);

Method slAddInformation

Adds information to the current Salesline

Parameters:

Flag Name Type Description
In aParameter paraSlAddInformation

							

Return Value:

Flag Name Type
Result Result resSlAddInformation

Oxygene Syntax:

method OrderService.slAddInformation(const aParameter: paraSlAddInformation) : resSlAddInformation;

C# Syntax:

public resSlAddInformation OrderService.slAddInformation(paraSlAddInformation aParameter);

Method slDeleteCurrent

Delete current salesline object, and if the salesline is stored in the DB, from the
DB also.

PS! It's very important to call Commit or Rollback in conjuction with this operation,
or use the AutoDBCommit parameter.
See Session service.

Parameters:

Flag Name Type Description
In aParameter paraSlDeleteCurrent

							

Return Value:

Flag Name Type
Result Result resSlDeleteCurrent

Oxygene Syntax:

method OrderService.slDeleteCurrent(const aParameter: paraSlDeleteCurrent) : resSlDeleteCurrent;

C# Syntax:

public resSlDeleteCurrent OrderService.slDeleteCurrent(paraSlDeleteCurrent aParameter);

Method slDuplicateCurrent

Duplicates current salesline and returns it. It can optionally be saved to the database.

Parameters:

Flag Name Type Description
In aParameter paraSlDuplicateCurrent

							

Return Value:

Flag Name Type
Result Result resSlDuplicateCurrent

Oxygene Syntax:

method OrderService.slDuplicateCurrent(const aParameter: paraSlDuplicateCurrent) : resSlDuplicateCurrent;

C# Syntax:

public resSlDuplicateCurrent OrderService.slDuplicateCurrent(paraSlDuplicateCurrent aParameter);

Method slGetCurrent

Returns the current orderline object.

Parameters:

Flag Name Type Description
In aParameter paraSlGetCurrent

							

Return Value:

Flag Name Type
Result Result resSlGetCurrent

Oxygene Syntax:

method OrderService.slGetCurrent(const aParameter: paraSlGetCurrent) : resSlGetCurrent;

C# Syntax:

public resSlGetCurrent OrderService.slGetCurrent(paraSlGetCurrent aParameter);

Method slGetDrawing2D

The operation returns a 2D drawing of the current item line in XAML format.

Parameters:

Flag Name Type Description
In aParameter paraSlGetDrawing2D

							

Return Value:

Flag Name Type
Result Result resSlGetDrawing2D

Oxygene Syntax:

method OrderService.slGetDrawing2D(const aParameter: paraSlGetDrawing2D) : resSlGetDrawing2D;

C# Syntax:

public resSlGetDrawing2D OrderService.slGetDrawing2D(paraSlGetDrawing2D aParameter);

Method slGetPropertyAlternatives

Returns alternatives for property identified by aIndex.

Parameters:

Flag Name Type Description
In aParameter paraSlGetPropertyAlternatives

							

Return Value:

Flag Name Type
Result Result resSlGetpropertyAlternatives

Oxygene Syntax:

method OrderService.slGetPropertyAlternatives(const aParameter: paraSlGetPropertyAlternatives) : resSlGetpropertyAlternatives;

C# Syntax:

public resSlGetpropertyAlternatives OrderService.slGetPropertyAlternatives(paraSlGetPropertyAlternatives aParameter);

Method slModifySelectedAreas


					

Parameters:

Flag Name Type Description
In aParameter paraSlModifySelectedAreas

							

Return Value:

Flag Name Type
Result Result resSlModifySelectedAreas

Oxygene Syntax:

method OrderService.slModifySelectedAreas(const aParameter: paraSlModifySelectedAreas) : resSlModifySelectedAreas;

C# Syntax:

public resSlModifySelectedAreas OrderService.slModifySelectedAreas(paraSlModifySelectedAreas aParameter);

Method slRollback

Rollbacks changes done to current salesline object, since loading, last save or slSetCurrent. PS! Not to be confused with Session.Rollback which is a database rollback.

Parameters:

Flag Name Type Description
In aParameter paraSlRollback

							

Return Value:

Flag Name Type
Result Result resSlRollback

Oxygene Syntax:

method OrderService.slRollback(const aParameter: paraSlRollback) : resSlRollback;

C# Syntax:

public resSlRollback OrderService.slRollback(paraSlRollback aParameter);

Method slUpdateProperties

With this operation several properties can be updated in one call.

Parameters:

Flag Name Type Description
In aParameter paraSlUpdateProperties

							

Return Value:

Flag Name Type
Result Result resSlUpdateProperties

Oxygene Syntax:

method OrderService.slUpdateProperties(const aParameter: paraSlUpdateProperties) : resSlUpdateProperties;

C# Syntax:

public resSlUpdateProperties OrderService.slUpdateProperties(paraSlUpdateProperties aParameter);

Method slGetDocumentLinks

Returns links to all related document for this line. Currently only for lines that are saved to db.

Parameters:

None.

Return Value:

Flag Name Type
Result Result resSlGetDocumentLinks

Oxygene Syntax:

method OrderService.slGetDocumentLinks() : resSlGetDocumentLinks;

C# Syntax:

public resSlGetDocumentLinks OrderService.slGetDocumentLinks();

Method shGetDocumentLinks

Returns links to all related document for this sale

Parameters:

None.

Return Value:

Flag Name Type
Result Result resShGetDocumentLinks

Oxygene Syntax:

method OrderService.shGetDocumentLinks() : resShGetDocumentLinks;

C# Syntax:

public resShGetDocumentLinks OrderService.shGetDocumentLinks();
Service ReportService

The following table lists the Operations defined in "ReportService":

GetReportTemplateList
Returns a list of defined reports in the system.
ExecuteReports
Executes one or more CalWin report and returns files (or list of URL) in the specified format.
GetReportInformation
Returns information like variables and parameters defined on the given report.

Method GetReportTemplateList

Returns a list of defined reports in the system.

Parameters:

Flag Name Type Description
In aParameter paraGetReportTemplateList

							

Return Value:

Flag Name Type
Result Result resGetReportTemplateList

Oxygene Syntax:

method ReportService.GetReportTemplateList(const aParameter: paraGetReportTemplateList) : resGetReportTemplateList;

C# Syntax:

public resGetReportTemplateList ReportService.GetReportTemplateList(paraGetReportTemplateList aParameter);

Method ExecuteReports

Executes one or more CalWin report and returns files (or list of URL) in the specified format.

Parameters:

Flag Name Type Description
In aParameter paraExecuteReports

							

Return Value:

Flag Name Type
Result Result resExecuteReports

Oxygene Syntax:

method ReportService.ExecuteReports(const aParameter: paraExecuteReports) : resExecuteReports;

C# Syntax:

public resExecuteReports ReportService.ExecuteReports(paraExecuteReports aParameter);

Method GetReportInformation

Returns information like variables and parameters defined on the given report.

Parameters:

Flag Name Type Description
In aParameter paraGetReportInformation

							

Return Value:

Flag Name Type
Result Result resGetReportInformation

Oxygene Syntax:

method ReportService.GetReportInformation(const aParameter: paraGetReportInformation) : resGetReportInformation;

C# Syntax:

public resGetReportInformation ReportService.GetReportInformation(paraGetReportInformation aParameter);
Service Session

The following table lists the Operations defined in "Session":

KillSession
Kills the given by aSessionId.
Rollback
Executes a rollback command on the Oracle database. All transactions since last Commit or Rollback will be discarded.
Commit
Performs a commit in the Oracle database.

Method KillSession

Kills the given by aSessionId.

Parameters:

Flag Name Type Description
In aParameter paraKillSession

							

Return Value:

Flag Name Type
Result Result resKillSession

Oxygene Syntax:

method Session.KillSession(const aParameter: paraKillSession) : resKillSession;

C# Syntax:

public resKillSession Session.KillSession(paraKillSession aParameter);

Method Rollback

Executes a rollback command on the Oracle database. All transactions since last Commit or Rollback will be discarded.

Parameters:

Flag Name Type Description
In aParameter paraRollback

							

Return Value:

Flag Name Type
Result Result resRollback

Oxygene Syntax:

method Session.Rollback(const aParameter: paraRollback) : resRollback;

C# Syntax:

public resRollback Session.Rollback(paraRollback aParameter);

Method Commit

Performs a commit in the Oracle database.

Parameters:

Flag Name Type Description
In aParameter paraCommit

							

Return Value:

Flag Name Type
Result Result resCommit

Oxygene Syntax:

method Session.Commit(const aParameter: paraCommit) : resCommit;

C# Syntax:

public resCommit Session.Commit(paraCommit aParameter);
Service SystemService

The following table lists the Operations defined in "SystemService":

GetServerInfo
Returns information about the CalWin Server instance
ProbeServer
Returns detail about server instance status.
GetConfig

							
SetConfig

							

Method GetServerInfo

Returns information about the CalWin Server instance

Parameters:

Flag Name Type Description
In aParameter paraGetServerInfo

							

Return Value:

Flag Name Type
Result Result resGetServerInfo

Oxygene Syntax:

method SystemService.GetServerInfo(const aParameter: paraGetServerInfo) : resGetServerInfo;

C# Syntax:

public resGetServerInfo SystemService.GetServerInfo(paraGetServerInfo aParameter);

Method ProbeServer

Returns detail about server instance status.

Parameters:

Flag Name Type Description
In aParameter paraProbeServer

							

Return Value:

Flag Name Type
Result Result resProbeServer

Oxygene Syntax:

method SystemService.ProbeServer(const aParameter: paraProbeServer) : resProbeServer;

C# Syntax:

public resProbeServer SystemService.ProbeServer(paraProbeServer aParameter);

Method GetConfig


					

Parameters:

Flag Name Type Description
In aParameter paraGetConfig

							

Return Value:

Flag Name Type
Result Result resGetConfig

Oxygene Syntax:

method SystemService.GetConfig(const aParameter: paraGetConfig) : resGetConfig;

C# Syntax:

public resGetConfig SystemService.GetConfig(paraGetConfig aParameter);

Method SetConfig


					

Parameters:

Flag Name Type Description
In aParameter paraSetConfig

							

Return Value:

Flag Name Type
Result Result resSetConfig

Oxygene Syntax:

method SystemService.SetConfig(const aParameter: paraSetConfig) : resSetConfig;

C# Syntax:

public resSetConfig SystemService.SetConfig(paraSetConfig aParameter);
Event Sinks

The following table lists the Event Sinks defined in "CalWinLibrary":

SystemEventSink
This event sink is for signalling changes on the server.
Event Sink SystemEventSink

The following table lists the Events defined in "SystemEventSink":

OnAppChanged
This event happens every time the configuration of an App is modified.

Event OnAppChanged


					

Parameters:

Flag Name Type Description
In Parameter paraOnAppChanged

							

Return Value:

None.

Oxygene Syntax:

method SystemEventSink.OnAppChanged(const Parameter: paraOnAppChanged);

C# Syntax:

public void SystemEventSink.OnAppChanged(paraOnAppChanged Parameter);
Structs

The following table lists the Structs defined in "CalWinLibrary":

ActivityLinkStruct
References to other entities that an Activity links to.
ActivityStruct
This struct represent a CalWin activity
AddressDebtableStruct(AddressEnduserStruct)

						
AddressEnduserStruct(AddressStruct)

						
AddressStruct

						
AppGetAppParameterRequest
Used in ApplicationService.GetAppParameters to define which parameters to return.
AppParameter
AppParameter represent an App parameter
AppParameterRecord
AppParameterRecord is a single parameter record and containes values
AppParameterValue
AppParameterValue represent a single value for an App parameter.
AppUserRightStruct
Represents a user right as defined in the App definition.
AppUserStruct
Structure for App users. An App user can eventually be linke to either a contact or a CalWin user (CalWinContact/CalWinUser fields).
AutolineInfoStruct
Information about an automatically created salesline
BinaryFile
Represents a file with name, size and the fil content as binary data.
CheckpointStruct
A structure with information about checkpoint definition.
ChildStruct

						
ConfigStruct

						
ContactStruct

						
CurrencyInfoStruct
Information about which currency the price fields represent in API responses.
CustomSalesHeaderStruct
Common data for quote/order and purchase.
DebtableStruct

						
DiaryEventStruct
Defines all the properties that be set for a CalWin Diary event
DocumentStruct
A structure that represents a record in the Documents table
EmailRecipient
An email recipient.
EmployeeStruct
Employee information
FeedbackStruct

						
FieldDataStruct

						
FieldDisplayDataStruct(FieldDataStruct)

						
FindSimilarStruct

						
GoodsDeliverLine

						
LocationSalesDatesStruct

						
LogDetailStruct

						
MessageReference
Refrences to quotes/orders (SalesIdent), quote/order lines (SalesIdent),
NameAddressStruct

						
NotificationDataStruct

						
NotificationRecipientStruct
Defines a consignment recipient.
NotificationValueStruct

						
paraAddOrUpdateActivity(paraCustomDB)
The parameter structure for MiscServiceSession.AddOrUpdateActivity
paraAddOrUpdateAppUser(paraCustomDB)
Parameter struct for the ApplicationService.AddOrUpdateAppUser operation
paraAddOrUpdateContact(paraCustomDB)

						
paraAddOrUpdateDiaryEvent(paraCustomDB)
Parameter struct to the MiscserviceSession.AddOrUpdateDiaryEvent.
paraAddToCorrectionDraft(paraCustom)

						
paraAddToInventoryDraft(paraCustom)

						
paraAddToTransferDraft(paraCustom)

						
paraApiLogin(paraCustomLogin)
Parameters for the Login method.
paraBookDraft(paraCustom)

						
paraBusinessObjects(paraCustom)

						
paraChangeUsernameAndPassword(paraCustom)

						
paraCheckQueue(paraCustom)

						
paraCheckSession(paraCustom)

						
paraCommit(paraCustom)

						
paraConfirmDispatched(paraCustom)

						
paraCreateFromTemplate(paraCustom)
Parameter to the CreateFromTemplate method
paraCreateInventoryDraft(paraCustom)

						
paraCustom
This is the parent for all parameter structures (paraXxxxx)
paraCustomDB(paraCustom)
This base structure is used for all parameters that potentially can make modification to the database.
paraCustomExecuteSQLV2(paraCustom)

						
paraCustomGetDrawing(paraCustom)

						
paraCustomGetImage(paraCustomGetDrawing)

						
paraCustomLogin(paraCustom)
Shared login parameters
paraCustomQueue(paraCustomDB)

						
paraCustomResSalesline(paraCustom)
This parameter structure i parent for all operation having resSalesline as result type.
paraDelete(paraBusinessObjects)

						
paraDeleteActivity(paraCustomDB)
Parameter struct for MiscServiceSession.DeleteActivity
paraDeleteDiaryEvent(paraCustomDB)
The parameter structure for the MiscServiceSession.DeleteDiaryEvent method
paraDispose(paraBusinessObjects)

						
paraExecuteProject(paraCustom)

						
paraExecuteProjectAndStore(paraExecuteProject)

						
paraExecuteReports(paraCustomDB)

						
paraExecuteSQL(paraCustom)

						
paraExecuteSQLForCheckpointprofile(paraCustomExecuteSQLV2)

						
paraExecuteSQLV2(paraCustomExecuteSQLV2)

						
paraFindSimilar(paraBusinessObjects)

						
paraFindSimilarFromAddress(paraCustom)

						
paraFindSimilarFromConsignment(paraCustom)

						
paraGetActivity(paraCustom)

						
paraGetAppParameters(paraCustom)

						
paraGetCheckpointDocumentLinks(paraCustom)

						
paraGetCheckpointDocuments(paraCustom)

						
paraGetCheckpointprofileInfo(paraCustom)

						
paraGetConfig(paraCustom)

						
paraGetDiaryEvent(paraCustom)

						
paraGetDispatched(paraCustom)

						
paraGetItemLineDocuments(paraCustom)

						
paraGetItemLineImage(paraCustom)

						
paraGetListOfCodes(paraCustom)

						
paraGetNextDbChange(paraCustomDB)
The parameter structure for the Notification.GetNextDbChange.
paraGetNotDispatched(paraCustom)

						
paraGetNotificationRecipients(paraCustom)

						
paraGetParameters(paraCustom)

						
paraGetProductImage(paraCustom)

						
paraGetReportInformation(paraCustom)
Parameter struct for the GetReportInformation operation
paraGetReportTemplateList(paraCustom)

						
paraGetRGBFromNCS(paraCustom)

						
paraGetServerInfo(paraCustom)

						
paraGetStdProductImage(paraCustom)

						
paraGetStdProductInfo(paraCustom)

						
paraGetStockItemImage(paraCustom)

						
paraGetWorklogInformation(paraCustom)

						
paraGetWorklogList(paraCustom)

						
paraGetWorkstructList(paraCustom)

						
paraGoodsCancel(paraCustom)

						
paraGoodsDeliver(paraCustom)

						
paraInsertChild(paraBusinessObjects)

						
paraInstallAppx(paraCustom)

						
paraKillSession(paraCustom)

						
paraLogin(paraCustomLogin)
Parameters for the Login method.
paraLoginUser(paraCustom)

						
paraLogout(paraCustom)

						
paraMerge(paraCustom)

						
ParameterContextStruct
Defines the context a parameter is in.
ParameterStruct
Parameter data.
paraNewEmpty(paraCustom)

						
paraNewFromCustomer(paraCustom)

						
paraNewFromDelivery(paraCustom)

						
paraNewFromSales(paraCustom)

						
paraOnAppChanged

						
paraOpen(paraCustom)

						
paraPollQueue(paraCustomQueue)

						
paraProbeServer(paraCustom)
Parameter struct to SystemService.ProbeServer.
paraPushQueue(paraCustomQueue)

						
paraRefetch(paraBusinessObjects)

						
paraRollback(paraCustom)

						
paraSave(paraBusinessObjects)

						
paraSaveParameters(paraCustomDB)
Parameters to MiscSessionService.SaveParameters
paraSendEmail(paraCustom)

						
paraSendMessage(paraCustomDB)

						
paraSendNewPassword(paraCustom)
Paramtere struct for SendNewPassword.
paraSendNotification(paraCustom)

						
paraSendSMS(paraCustom)

						
paraSetConfig(paraCustom)

						
paraShConvertToOrder(paraCustomDB)
Parameter struct for ShConvertToOrder method
paraShDelete(paraCustom)

						
paraShGetCalculatedDeliveryTime(paraCustom)

						
paraShNew(paraCustom)
Parameter structure for the OrderService.CreateNewSalesHeader method.
paraShNewPurchase(paraCustom)
Parameter structure for the OrderService.shNewPurchase method.
paraShOpen(paraCustom)

						
paraShOpenPurchase(paraCustom)
Parameter structure for the OrderService.shOpenPurchase method.
paraShRefresh(paraCustom)
Parameter structure for the shRefresh operation
paraShRefreshPurchase(paraCustom)
Parameter structure for the shRefreshPurchase operation
paraShSave(paraCustomDB)

						
paraShSavePurchase(paraCustomDB)
Parameter structure for the OrderService.shSavePurchase method.
paraShSetCurrencyMode(paraCustom)
Parameter structure for the OrderService.shSetCurrencyMode method.
paraShUpdate(paraCustom)

						
paraShUpdatePurchase(paraCustom)
Parameter structure for the OrderService.shUpdatePurchase method.
paraShUpdateVolumeDiscount(paraCustom)

						
paraSignCheckpoint(paraCustom)
Parameter fields for CheckpointService.Sign
paraSlAdd(paraCustomResSalesline)

						
paraSlAddFrom(paraCustomResSalesline)
Parameter strucutre for OrderService.slAddFrom
paraSlAddInformation(paraCustomResSalesline)

						
paraSlDeleteCurrent(paraCustom)

						
paraSlDuplicateCurrent(paraCustomResSalesline)

						
paraSlGetCurrent(paraCustomResSalesline)

						
paraSlGetDrawing2D(paraCustomGetDrawing)
Parameter for the slGetDrawing2D operation
paraSlGetImage(paraCustomGetImage)

						
paraSlGetPropertyAlternatives(paraCustom)

						
paraSlModifySelectedAreas(paraCustom)

						
paraSlRollback(paraCustomResSalesline)

						
paraSlSaveCurrent(paraCustomResSalesline)

						
paraSlSetCurrent(paraCustomResSalesline)

						
paraSlUpdateProperties(paraCustomResSalesline)

						
paraUpdate(paraBusinessObjects)

						
PriceUpdateOptionStruct
Options for how prices should be handled/set. It's used by several methods.
ProductCodeStruct

						
PropertyCategory

						
PropertyItem
A property that can be altered on a Salesline object.
PropertyItemAlternative
A valid alternative for a PropertyItem.
PropertyItemAlternativeExtraValueInfo

						
PropertyItemAlternativeOption
Describes how the list of alternatives should be presented
PropertyUpdateStruct
A structure used to identify and update a property on a salesline. Used by slUpdateProperties.
PurchaseHeaderStruct(CustomSalesHeaderStruct)
Contains data for purchase
QueryDialogStruct
A definition of a dialog to be used when querying a user for inputs to a report.
QueryVariableStruct
A definition of a variable for a report query dialog.
ReportCurrentValues
Values in currents are passed to the report engine, and ususally used in the where part of the SQL statement.
ReportExportFile
Represents a file in a report export. When executing a report to RTF or PDF format only one file is returned, but when exporting to HTML  and other formats, several files may be returned.
ReportMergeOptionsStruct

						
ReportPackageStruct
A structure defining av report with current-values, variables and parameters.
ReportParameterStruct(VariableValue)
Report parameter as defined in the report.
resAddOrUpdateActivity(resCustom)
The result structure for the MiscServiceSession.AddOrUpdateActivity method.
resAddOrUpdateAppUser(resCustom)

						
resAddOrUpdateContact(resCustom)

						
resAddOrUpdateDiaryEvent(resCustom)

						
resAddToDraft(resCustom)

						
resApiLogin(resCustomLogin)
Structure returned by the LoginService.Login method.
resBookDraft(resCustom)

						
resBusinessObjects(resCustom)

						
resChangeUsernameAndPassword(resCustom)

						
resCheckQueue(resCustom)

						
resCheckSession(resCustom)

						
resCommit(resCustom)

						
resConfirmDispatched(resCustom)

						
resCreateFromTemplate(resCustom)

						
resCreateInventoryDraft(resCustom)

						
resCustom
This is the basis for all result structures (resXxxxx)
resCustomBinaryData(resCustom)

						
resCustomExecuteSQLV2(resCustom)

						
resCustomLogin(resCustom)
Structure returned by the LoginService.Login method.
resCustomObject(resBusinessObjects)
This is ancestor class for all methods that creates a new server object
resDelete(resCustom)

						
resDeleteActivity(resCustom)
The result structure for MiscServiceSession.DeleteActivity
resDeleteDiaryEvent(resCustom)
The result structture for the MiscServiceSession.DeleteDiaryEvent method
resDispose(resCustom)

						
resExecuteProject(resCustom)

						
resExecuteProjectAndStore(resCustom)

						
resExecuteReports(resCustom)

						
resExecuteSQL(resCustom)

						
resExecuteSQLForCheckpointprofile(resCustomExecuteSQLV2)

						
resExecuteSQLV2(resCustomExecuteSQLV2)

						
resFindSimilar(resCustom)

						
resFindSimilarFromAddress(resFindSimilar)

						
resFindSimilarFromConsignment(resFindSimilar)

						
resGetActivity(resCustom)

						
resGetAppParameters(resCustom)

						
resGetCheckpointDocumentLinks(resCustom)

						
resGetCheckpointprofileInfo(resCustom)

						
resGetConfig(resCustom)

						
resGetDiaryEvent(resCustom)

						
resGetDispatched(resCustom)

						
resGetDocuments(resCustom)

						
resGetListOfCodes(resCustom)

						
resGetNextDbChange(resCustom)
The result structure for the NotificationService.GetNextDbChange
resGetNotDispatched(resGetDispatched)

						
resGetNotificationRecipients(resCustom)

						
resGetParameters(resCustom)

						
resGetReportInformation(resCustom)
Result struct for the GetReportTemplateInformation operation
resGetReportTemplateList(resCustom)
Result struct for the GetReportTemplateList operation.
resGetRGBFromNCS(resCustom)

						
resGetServerInfo(resCustom)

						
resGetStdProductInfo(resCustom)

						
resGetWorklogInformation(resCustom)

						
resGetWorkloglist(resCustom)

						
resGetWorkstructList(resCustom)

						
resGoodsCancel(resCustom)

						
resGoodsDeliver(resCustom)

						
resInsertChild(resBusinessObjects)

						
resInstallAppx(resCustom)

						
resKillSession(resCustom)

						
resLogin(resCustomLogin)
Structure returned by the LoginService.Login method.
resLoginUser(resCustom)
Result for the user login request. If the login is accepted, Userinfo contains details about the App user.
resLogout(resCustom)

						
resMerge(resCustom)

						
resNewEmpty(resCustomObject)

						
resNewFromCustomer(resCustomObject)

						
resNewFromDelivery(resCustomObject)

						
resNewFromSales(resCustomObject)

						
resOpen(resCustomObject)

						
resPollQueue(resCustom)
The result structure for the NotificationService.PullQueue
resProbeServer(resCustom)
Result struct for SystemService.ProbeServer
resProdcutImage(resCustomBinaryData)

						
resPushQueue(resCustom)

						
resRefetch(resBusinessObjects)

						
resRollback(resCustom)

						
resSalesline(resCustom)
This structure is parent for several other result structs. resSlAdd, resSlGetCurrent etc.
resSave(resBusinessObjects)

						
resSaveParameters(resCustom)

						
resSendEmail(resCustom)

						
resSendMessage(resCustom)

						
resSendNewPassword(resCustom)

						
resSendNotification(resCustom)

						
resSendSMS(resCustom)

						
resSetConfig(resCustom)

						
resShConvertToOrder(resShWithCurrencyInfo)
Result structure for OrderService.ShConvertToOrder
resShDelete(resCustom)
Result from the Orderservice.ShDelete operation
resShGetCalculatedDeliveryTime(resCustom)

						
resShGetDocumentLinks(resCustom)

						
resShNew(resShWithCurrencyInfo)
Result from the shNew operation.
resShNewPurchase(resShWithCurrencyInfo)

						
resShOpen(resShWithCurrencyInfo)
Result from the shOpen operation.
resShOpenPurchase(resShWithCurrencyInfo)
Result from the shOpenPurchase operation.
resShRefresh(resShWithCurrencyInfo)
Result structure for shRefresh
resShRefreshPurchase(resShWithCurrencyInfo)
Result structure for shRefresh
resShSave(resShWithCurrencyInfo)
Result from shSave operation
resShSavePurchase(resShWithCurrencyInfo)
Result from shSavePurchase operation
resShSetCurrencyMode(resCustom)
Result from the shSetCurrencyMode operation.
resShUpdate(resShWithCurrencyInfo)

						
resShUpdatePurchase(resShWithCurrencyInfo)
Result from the shUpdatePurchase operation
resShUpdateVolumeDiscount(resCustom)

						
resShWithCurrencyInfo(resCustom)
Base class for header result classes that include CurrencyInfo
resSignCheckpoint(resCustom)

						
resSlAdd(resSalesline)

						
resSlAddFrom(resSalesline)
Result structure for OrderService.slAddFrom
resSlAddInformation(resSalesline)

						
resSlDeleteCurrent(resCustom)

						
resSlDuplicateCurrent(resSalesline)

						
resSlGetCurrent(resSalesline)

						
resSlGetDocumentLinks(resCustom)

						
resSlGetDrawing2D(resCustom)
Result struct for the slGetDrawing2D operation
resSlGetImage(resCustom)

						
resSlGetpropertyAlternatives(resCustom)

						
resSlModifySelectedAreas(resCustom)

						
resSlRollback(resSalesline)

						
resSlSaveCurrent(resSalesline)

						
resSlSetCurrent(resSalesline)

						
resSlUpdateProperties(resSalesline)

						
resUpdate(resBusinessObjects)

						
RGBStruct
A 24-bit RGB color. R,G,B is unsigned 8-bit numbers (0-255).
RowdataDisplayStruct

						
SalesDatesStruct

						
SalesHeaderIdent

						
SalesHeaderIdStruct
Identifies a sale
SalesheaderStruct(CustomSalesHeaderStruct)
Contains fields from a quote- or salesorderheader.
SaleslineIdentStruct(SalesHeaderIdStruct)
Identifies an salesline
SaleslineStruct
SalesLineStruct represents a Salesline in CalWin
SaleslineStructOS(SaleslineStruct)
This is a derived structure with RowIndex for use in the OrderService.
SalesNotesStruct
A struct for notes belonging to a Salesline or Salesheader.
SelectionAreaIdRecStruct
Represent a selected square/light on a product
SendReportByEmailStruct

						
SMSRecipient
A SMS recipient
SquareIdStruct

						
StandardProductInfoSizeStruct

						
StockStruct
Information of stocklevel for a particular itemnumber
StoreToTableColumnMapping

						
TColumn

						
TDocumentLinkInfo
Info about a linked document.
TDrawingImageOptions(paraCustomGetImage)
Options for the drawing
TimeZoneStruct
Contains TimeZone information
TInventoryCommonItem

						
TInventoryCorrectionItem(TInventoryCommonItem)

						
TInventoryStocktakingItem(TInventoryCommonItem)

						
TInventoryTransferItem(TInventoryCommonItem)

						
TStoreToInfo

						
UserStruct

						
VariableValue

						
VolumeDiscountUpdateOptionsStruct
Properties used for volume discount update. Currently used by shSave.
WorklogStruct
A structure with information about a signed checkpoint.
WorkStruct
A structure with information about a defined checkpoint on a orderline.
Struct ActivityLinkStruct

The following table lists the fields defined in "ActivityLinkStruct":

Field Data Type Documentation
Salestype TSalestype

							
Salesnumber WideString
Link to a quote, order, purchase etc. Ref. Salestype field.
PartyOther_Id Int64
Reference to an other party record (PARTOTHER table)
ContactId Int64
Link to a contact.
CreditorAccount WideString
Link to a creditor account (CREDTABLE).
DebtorAccount WideString
Link to a customer (DEBTABLE).
Project WideString
Link to a project (PROJECT table).
InvoiceJournal Int64
Link to an Invoice Journal (INVOICEJOURNAL table)
InvoiceNumber Int64
Link to a customer Invoice (INVOICE table)
CredInvoiceJournal Int64
Link to a creditor invoice journal (CREDINVOICEJOURNAL table)
CredInvoiceNumber Int64
Link to a creditor invoice (CREDINVOICE table).
Deviation Int64
Link to a deviation (DEVIATION table)
Struct ActivityStruct

The following table lists the fields defined in "ActivityStruct":

Field Data Type Documentation
ActivityId Int64

							
Subject WideString

							
Text WideString

							
Kind ActivityKindEnum

							
Links ActivityLinkStruct
The other entities this activity links to.
EmailTo WideString
E-Mail address.
EmailCC WideString

							
ShowInSalesHeader Boolean
Should this note activity be shown during creation of quote, order or purchase.
Valid_From DateTime
Note valid from date.
Valid_Until DateTime
Note valid to date.
PurchaseConfirmDate DateTime
Pucrhase confirmed date (Kind=ekPurchaseConfirmation)
Printername WideString
Name of the printer if this activty was an ekPrintOut
DiaryEventId Integer
Reference to a diary event
StartDate DateTime

							
FinishDate DateTime

							
SessionlogId Int64
Refrence to the session that created the activity
Emailfrom WideString
E-Mail from
CategoryId Integer
Reference to a CalWin activity category
FaxTo WideString

							
ShowInSalesheader_WhenConvert Boolean

							
Employee_ID WideString

							
UserId Integer
The CalWin user id. If 0 the user id of the CwServer will be used. Eventually the logged in user id.
AccessRights UserIdArray
A list of CalWin user ids that have access to this activity.
DocumentLinks DocidArray
List of attached documents represented by their Id's.
ExchangeId WideString
Reference to an Exchange object.
ParentId Int64

							
Struct AddressDebtableStruct

The following table lists the fields defined in "AddressDebtableStruct":

Field Data Type Documentation
Struct AddressEnduserStruct

The following table lists the fields defined in "AddressEnduserStruct":

Field Data Type Documentation
Attention WideString

							
Phone WideString

							
Mobile WideString

							
Email WideString

							
Fax WideString

							
Struct AddressStruct

The following table lists the fields defined in "AddressStruct":

Field Data Type Documentation
Name WideString

							
Address1 WideString

							
Address2 WideString

							
Address3 WideString

							
Zip WideString

							
State WideString

							
Country WideString

							
Struct AppGetAppParameterRequest

The following table lists the fields defined in "AppGetAppParameterRequest":

Field Data Type Documentation
ID Guid

							
Key Variant
The meaning of this parameter depends on parameter level:
plSystem: No effect
plLocation: Location ID. If null all locations are returned
plUser: User Id. If null - the currently logged in user. If null and user not logged on an
exception will be raised.
plUserParent (customer, supplier etc.): No effect.
Struct AppParameter

The following table lists the fields defined in "AppParameter":

Field Data Type Documentation
ID Guid
The Parameter GUID
Records AppParameterRecordArray
Records of parameter values. If the parameter is an Array it may contain several records. Otherwise only one.
Key Variant
The value depends on the level of the parameter. plSystem: Always null plLocation: The locationId plUser: User id plUserParent: The id of the parent of the user (customer, supplier, etc.)
Struct AppParameterRecord

The following table lists the fields defined in "AppParameterRecord":

Field Data Type Documentation
Values AppParameterValueRecordArray

							
RecordGUID Guid

							
Struct AppParameterValue

The following table lists the fields defined in "AppParameterValue":

Field Data Type Documentation
StrucItemGUID Guid

							
StringValue WideString

							
IntegerValue Integer

							
FloatValue Double

							
BooleanValue Boolean

							
DateValue DateTime

							
BLOBValue Binary

							
Complex AppParameterRecordArray
If the parameter is a reference to another structure, Complex contains the sub parameter structure.
ReportParameters ReportParameterArray
If the parameter value is a refrence to a CalWin report (the name of the report is in StringValue), ReportParameters contains report parameters that should be passed to ReportService.ExecuteReport.
ReportVariables VariableValues
If the parameter value is a refrence to a CalWin report (the name of the report is in StringValue),
ReportVariables contains report variables (user input) that should be passed to ReportService.ExecuteReport
in the paraExecuteReport.Variables.
Struct AppUserRightStruct

The following table lists the fields defined in "AppUserRightStruct":

Field Data Type Documentation
UserRightGUID Guid
The GUID representing the user right.
Name WideString

							
Struct AppUserStruct

The following table lists the fields defined in "AppUserStruct":

Field Data Type Documentation
ID Int64
The unique id for the App user.
Fullname WideString

							
Username WideString
Username used when logging in to the App.
Email WideString
E-mail address
Phone WideString

							
PasswordExpired Boolean
True if the password has expired and has to reset.
Language WideString
The ISO 639 language code
Active Boolean
False if the user is not enabled/active anymore.
UserprofileId Integer
Reference to the user profile ID (configurator).
SaleslocationId WideString

							
PhysicalLocationId WideString

							
CalWinContact ContactStruct
If this App user represented a CalWin contact (belonging to customer, creditor, project or party), this sub structure will be contain data.
CalWinUser UserStruct
If this App user represented a CalWin user, this sub structure will be contain data.
Rights AppUserRightArray
The assigned user Rights for the user.
AppId WideString
The application id the user belongs to
Struct AutolineInfoStruct

The following table lists the fields defined in "AutolineInfoStruct":

Field Data Type Documentation
ToEndUser Boolean
Should this line be visible for the enduser?
Struct BinaryFile

The following table lists the fields defined in "BinaryFile":

Field Data Type Documentation
Name WideString

							
Size Integer

							
BinaryData Binary

							
Struct CheckpointStruct

The following table lists the fields defined in "CheckpointStruct":

Field Data Type Documentation
Id Integer

							
Name WideString

							
Sequence Integer

							
CheckStart Boolean

							
CheckStop Boolean

							
Show Boolean

							
Enabled Boolean

							
Struct ChildStruct

The following table lists the fields defined in "ChildStruct":

Field Data Type Documentation
Path WideString

							
Rows RowdataDisplayArray

							
Struct ConfigStruct

The following table lists the fields defined in "ConfigStruct":

Field Data Type Documentation
LogDetails LogDetailStruct

							
Struct ContactStruct

The following table lists the fields defined in "ContactStruct":

Field Data Type Documentation
Id Int64
The unique ID of the contact.
Name WideString

							
Address1 WideString

							
Address2 WideString

							
Address3 WideString

							
Zip WideString

							
Phone WideString

							
Mobile WideString

							
Fax WideString

							
Email WideString

							
Resigned Boolean
True if the contact is no longer employeed by the parent (Customer, supplier etc.)?
UserprofileId Integer
Reference to the user profile that will be used by CalWin Web configurator.
Username WideString
The username used for login.
DebtorAccount WideString
The customer number if this contact belongs to a customer.
CredtorAccount WideString
The supplier number if this contact belongs to a supplier.
ProjectId WideString
The project id if this contact belongs to a project.
PartyOther_Id Integer
The id of the other party if this contact belongs to a other party.
PersonRoleId Integer
Reference to a role (PersonRole table)
DebitorInfo DebtableStruct
Name, address etc. for the customer this user/contact belongs to.
Struct CurrencyInfoStruct

The following table lists the fields defined in "CurrencyInfoStruct":

Field Data Type Documentation
CurrencyMode CurrencyModeEnum
Which currency mode is active for the returned prices.
ExchangeCode WideString
The current display currency internal exchange code ID.
ExchangeRate Double
Exchange rate used for conversion from installation currency. 1.0 if no conversion.
CurrencyCode WideString
ISO currency code for the returned prices (e.g., "NOK", "EUR", "USD").
CurrencySymbol WideString
Currency symbol for display (e.g., "kr", "€", "$").
DecimalPlaces Integer
Number of decimal places typically used for this currency.
InstallationExchangeCode WideString
The installation currency internal exchange code ID.
InstallationCurrencyCode WideString
The installation base currency ISO code (e.g., "NOK").
Struct CustomSalesHeaderStruct

The following table lists the fields defined in "CustomSalesHeaderStruct":

Field Data Type Documentation
Attention WideString

							
Centre WideString

							
Createdate DateTime

							
Delcondition WideString

							
Deletestatus Integer

							
DeliveryAddress AddressStruct

							
Deliverydate DateTime

							
Deliveryinstructions WideString

							
Delmode WideString

							
Department WideString

							
Email WideString

							
Exchangecode WideString

							
ExchangeRate Double

							
ExternalSystemReference WideString
Reference to external system
Fax WideString

							
Freight Double

							
Invoicestatus Integer

							
Language_Code WideString

							
Lastchanged DateTime

							
Locked Boolean
Is the element locked?
Mobile WideString

							
NeedApproval Boolean

							
Notes SalesNotesStruct

							
Payment WideString

							
Phone WideString

							
Project WideString

							
Purpose WideString

							
Remarks WideString

							
Requisnumber WideString

							
SalesAddress AddressStruct

							
Salesnumber WideString

							
Salestype TSalestype

							
Source SalesHeaderSourceEnum

							
Status Integer
Status on salesheader (0=New, 5=Quote printed, 10=Confirmation printed, 15=Changed after confirmation, 20=Delivery note, 25=Changed after delivery note, 30=Remainders, 40=remainder completed, 50=Fully delivered)
TotalUValue Double
Total UValue for all lines on the the quote/order.
TotalUValueArea Double
Total area in square meters for lines that is part in the U-Value caluclation for the quote/order.
Vatcode WideString

							
Struct DebtableStruct

The following table lists the fields defined in "DebtableStruct":

Field Data Type Documentation
Accountnumber WideString

							
InvoiceAccount WideString

							
Address AddressDebtableStruct

							
Struct DiaryEventStruct

The following table lists the fields defined in "DiaryEventStruct":

Field Data Type Documentation
EventId Int64
The unique id of the event.
EmployeeId WideString
CalWin Employee ID
Caption WideString
Specifies the caption of the event
Message WideString
Specifies the text for the end-user's description of the event.
AllDayEvent Boolean
Specifies whether event is an all-day event (an event that lasts at least 24 hours or longer).
EventType DiaryEventTypeEnum
Specifies the status of the event's reoccurrences.
Start DateTime
Specifies the event's start time.
Finish DateTime
Specifies the event's end time.
EventLabel Integer
Specifies an event's label. The predefined labels are: 0=None 1=Important 2=Business 3=Personal 4=Vacation 5=Must Attend 6=Travel Required 7=Needs Preparation 8=Birthday 9=Anniversary 10=Phone Call
Location WideString
Specifies the text that represents the location at which the current user event is being held.
Reminder Boolean
Specifies whether the reminder is on or off.
ReminderDate DateTime
Specifies the date and time of the event's reminder
ReminderMinutesBeforeStart Integer

							
State DiaryEventStateEnum

							
CalWinCategory CwDiaryEventCategoryEnum
CalWin event category.
ExchangeId WideString
Reference to an Exchange unique object ID
IsPrivate Boolean
Is this a private record?
Struct DocumentStruct

The following table lists the fields defined in "DocumentStruct":

Field Data Type Documentation
Docid Integer
Unique identifier of the document.
Filename WideString
The name of the file with extension. No path.
Description WideString
Description of the document. The description will be shown in CalWin activity as a hint when hovering over the link.
FileObject Binary
The file data.
ExternalReference WideString
External refrence information.
Struct EmailRecipient

The following table lists the fields defined in "EmailRecipient":

Field Data Type Documentation
EMailAddress WideString
The E-Mail address for the receiver
Name WideString

							
Struct EmployeeStruct

The following table lists the fields defined in "EmployeeStruct":

Field Data Type Documentation
Id WideString

							
Name WideString

							
Email WideString

							
Phone WideString

							
Mobile WideString

							
Resigned Boolean

							
Struct FeedbackStruct

The following table lists the fields defined in "FeedbackStruct":

Field Data Type Documentation
FeedbackType FeedbackTypeEnum

							
MessageText WideString

							
Struct FieldDataStruct

The following table lists the fields defined in "FieldDataStruct":

Field Data Type Documentation
PropertyName WideString

							
DataValue Variant

							
Struct FieldDisplayDataStruct

The following table lists the fields defined in "FieldDisplayDataStruct":

Field Data Type Documentation
DisplayValue Variant

							
ValidationErrorText WideString

							
ReadOnly Boolean

							
Visible Boolean

							
Struct FindSimilarStruct

The following table lists the fields defined in "FindSimilarStruct":

Field Data Type Documentation
Consignmentnumber WideString

							
PlannedDeliveryDate DateTime

							
Struct GoodsDeliverLine

The following table lists the fields defined in "GoodsDeliverLine":

Field Data Type Documentation
AllFinished Boolean
To handle over/under delivery for purchases. If true QtyOrdered on the line will be updated to total received.
Vnumber Integer

							
Qty Double

							
Struct LocationSalesDatesStruct

The following table lists the fields defined in "LocationSalesDatesStruct":

Field Data Type Documentation
LocationId WideString
The location id for the dates.
Dates SalesDatesStruct
The dates for the location.
Struct LogDetailStruct

The following table lists the fields defined in "LogDetailStruct":

Field Data Type Documentation
OperationDetails Boolean
Logs parameters and result values from all operation calls.
Struct MessageReference

The following table lists the fields defined in "MessageReference":

Field Data Type Documentation
SalesIdent SaleslineIdentStruct
Use this struct if the message is a reference to either a Salesheader or a Salesline.
DeviationId Int64
Use this field if the message is a reference to a deviation.
SaleslineIssueId Int64
Use this field if the message is a reference to an salesline Issue.
URL WideString
Use this field if you want the user to open this URL when he/she click the link button on the notification.
Struct NameAddressStruct

The following table lists the fields defined in "NameAddressStruct":

Field Data Type Documentation
Name WideString

							
Address1 WideString

							
Address2 WideString

							
Zip WideString

							
Address3 WideString

							
Country WideString

							
State WideString

							
Struct NotificationDataStruct

The following table lists the fields defined in "NotificationDataStruct":

Field Data Type Documentation
Kind DBNotificationKindEnum
Inser, update or delete.
Attempts Integer
The number of attempts this item have been tried to dequeue before (and then rolled back).
Values NotificationValueArray
The list of values
Struct NotificationRecipientStruct

The following table lists the fields defined in "NotificationRecipientStruct":

Field Data Type Documentation
Name WideString
Name of recipient of the consignment
Email WideString
E-Mail address of the recipient
SMS WideString
Phone number to the recipient for SMS notification
Consignmentnumber WideString
The consignmentnumber
DoSend Boolean
True if the notification will be sent. Defaults to true if either the e-mail or SMS i valid.
Struct NotificationValueStruct

The following table lists the fields defined in "NotificationValueStruct":

Field Data Type Documentation
Fieldname WideString
The dadtabase filedname
IsDifferent Boolean
Is true if NewValue and OldValue is not equal.
NewValue Variant
The new value
OldValue Variant
The old value
Struct paraAddOrUpdateActivity

The following table lists the fields defined in "paraAddOrUpdateActivity":

Field Data Type Documentation
Activity ActivityStruct
The activity structure to be either updated (Id > 0) or inserted (Id=0).
DontUpdateActivityFields Boolean
If true the fields from the Activity will not be uppdated in this call. By setting this to True, documents can be added/deleted without affecting the activity fields itself.
UpdateAccessRights Boolean
Update/se the user access rights? If True all user id's will first be removed and then the user ids from Activity.UserAccess will be applied.
DocLinksToAdd DocidArray
Add the documents in this list to the activity.
DocLinksToRemove DocidArray
Remove the document id in this list from the activity.
Documents DocumentArray
This list of documents will be added to the activity.
Struct paraAddOrUpdateAppUser

The following table lists the fields defined in "paraAddOrUpdateAppUser":

Field Data Type Documentation
AppUser AppUserStruct
The AppUser struct. If AppUser.Id is 0, the user will be added.
UpdateUserRights Boolean
Update/set the the user rights? If True all rights will first be removed, and then the rights in AppUser.Rights will be added.
Struct paraAddOrUpdateContact

The following table lists the fields defined in "paraAddOrUpdateContact":

Field Data Type Documentation
Contact ContactStruct
Add this contact to the database if the ID is 0. Otherwise the contact with the ID will be updated.
Struct paraAddOrUpdateDiaryEvent

The following table lists the fields defined in "paraAddOrUpdateDiaryEvent":

Field Data Type Documentation
DiaryEvent DiaryEventStruct
The diary event structure to be either updated (Id > 0) or inserted (Id=0).
Struct paraAddToCorrectionDraft

The following table lists the fields defined in "paraAddToCorrectionDraft":

Field Data Type Documentation
DraftID Integer
The draft ID
Items TInventoryCorrectionItems
The items to add
Struct paraAddToInventoryDraft

The following table lists the fields defined in "paraAddToInventoryDraft":

Field Data Type Documentation
DraftID Integer
The draft ID
Items TInventoryStocktakingItems
The items to add
Struct paraAddToTransferDraft

The following table lists the fields defined in "paraAddToTransferDraft":

Field Data Type Documentation
DraftID Integer
The draft ID
Items TInventoryTransferItems
The items to add
Struct paraApiLogin

The following table lists the fields defined in "paraApiLogin":

Field Data Type Documentation
Password WideString
The user password, or eventually passphrase if user name is empty
Username WideString
User name. If empty, a passphrase is expected in Password.
Struct paraBookDraft

The following table lists the fields defined in "paraBookDraft":

Field Data Type Documentation
DraftId Integer
The id (Inventory.InventoryId) of the created draft
Struct paraBusinessObjects

The following table lists the fields defined in "paraBusinessObjects":

Field Data Type Documentation
ObjectId WideString

							
Struct paraChangeUsernameAndPassword

The following table lists the fields defined in "paraChangeUsernameAndPassword":

Field Data Type Documentation
Userid Integer
The userid of the user whose username and/or password should be changed. Either UserId or OldUsername must be given.
OldUsername WideString
The username of the user whose username or password should be changed. Either UserId or OldUsername must be given.
OldPassword WideString
The old password. Must be given if the password is to be changed.
NewUsername WideString
Then new requested username. If empty the username is not changed
NewPassword WideString
The new requested password.
Struct paraCheckQueue

The following table lists the fields defined in "paraCheckQueue":

Field Data Type Documentation
Correlation WideString
The correlation id to poll for
QueueName WideString
The name of the Oracle queue
Struct paraCheckSession

The following table lists the fields defined in "paraCheckSession":

Field Data Type Documentation
SessionId WideString

							
Struct paraCommit

The following table lists the fields defined in "paraCommit":

Field Data Type Documentation
Struct paraConfirmDispatched

The following table lists the fields defined in "paraConfirmDispatched":

Field Data Type Documentation
Consignments StringArray
The list of consignments to confirm as dispatched.
DoReturnEdifactFile Boolean
If true the generated EDIFACT file, if the carrier has EDI support, will be returned.
Struct paraCreateFromTemplate

The following table lists the fields defined in "paraCreateFromTemplate":

Field Data Type Documentation
TemplateId Integer
The template id to create the deviation from
RefItemInstances TROArray_System_Integer_
A list of item instance references the deviation is related to
CauseDescription WideString
Description of the cause of the deviation. Only relevant if that field is editable as defined on the template
ConsequenceDescription WideString
Description of the consuqence of the deviation. Only relevant if that field is editable as defined on the template
DeviationDescription WideString
Description of the deviation. Only relevant if that field is editable as defined on the template
PlanDescription WideString
Preventive description for the deviation. Only relevant if that field is editable as defined on the template
Struct paraCreateInventoryDraft

The following table lists the fields defined in "paraCreateInventoryDraft":

Field Data Type Documentation
Comments WideString
A free text (max 800 chars)
Date DateTime
The date for the draft
Kind TInventoryKind
The kind of item adjustment draft to create
Location WideString
Location id, If blank, the location id from the stocklocation will be used.
Stocklocation WideString
Stocklocation
Struct paraCustom

The following table lists the fields defined in "paraCustom":

Field Data Type Documentation
Struct paraCustomDB

The following table lists the fields defined in "paraCustomDB":

Field Data Type Documentation
AutoDBCommit Boolean
If True, a database commit will be done if the operations succeeds. Otherwise a rollback will be done.
Struct paraCustomExecuteSQLV2

The following table lists the fields defined in "paraCustomExecuteSQLV2":

Field Data Type Documentation
Include TExecuteSQLInclude
Which elements (column definitions and rows) to include in the response.
Variables VariableValues
Variables for the SQL statement
MaxRowCount Integer
Only returns the first MaxRowCount rows. If 0 all rows will be returned.
Struct paraCustomGetDrawing

The following table lists the fields defined in "paraCustomGetDrawing":

Field Data Type Documentation
ColorStyle DrawingColorStyleEnum
The color style to use.
DimensionLines Boolean
Should dimension lines be added to the drawing?
DrawSquareNumbersOnlyIfInDescription Boolean
If true square number will only be drawn if it's referred to in the description
DontDrawSublines Boolean
If true sub lines (like grilles) will not be drawn
DrawProfileCodes Boolean
If true, a simplified drawing with profile numbers on will be created
DrawProfileCodes_Extended Boolean
If true, the extened profile codes will be drawn. Has only effect if DrawProfileCodes also is true
DrawProfileCodes_Dividers Boolean
If true, dividers like transom, mullion and bars, will also be drawn. Has only effect if DrawProfileCodes also is true
Squarenumbers Boolean
Should CalWin Square numbers be present on the drawing?
ViewSide TViewSide
Which side should the image be created for. The default is as defined on the product.
Struct paraCustomGetImage

The following table lists the fields defined in "paraCustomGetImage":

Field Data Type Documentation
DrawingSquare Integer
To only draw one pane give set DrawingSquare to the desired pane. For example. 11,21.
Format ImageFormat
The format of the image to return
Scale Integer
The scale of the drawing. If 0 a value of 20 will be used. Value less than 5 is not allowed.
Struct paraCustomLogin

The following table lists the fields defined in "paraCustomLogin":

Field Data Type Documentation
ApplicationId Guid
The application GUID. This is mandatory to connect to CalWin Server.
ClientInfo WideString
Information about the connecting client. This information will be stored in the Oracle session.
Struct paraCustomQueue

The following table lists the fields defined in "paraCustomQueue":

Field Data Type Documentation
AttributeName WideString
The attribute name of the object of the queue payload type
Correlation WideString
The correlation id to poll for
QueueName WideString
The name of the Oracle queue
Struct paraCustomResSalesline

The following table lists the fields defined in "paraCustomResSalesline":

Field Data Type Documentation
PropertyDetails PropertyDetailsEnum
The properties detail level to return in result.PropertyCategories
Struct paraDelete

The following table lists the fields defined in "paraDelete":

Field Data Type Documentation
Path WideString

							
Struct paraDeleteActivity

The following table lists the fields defined in "paraDeleteActivity":

Field Data Type Documentation
ActivityId Integer
The acrticityId to be deleted.
Struct paraDeleteDiaryEvent

The following table lists the fields defined in "paraDeleteDiaryEvent":

Field Data Type Documentation
EventId Int64
The EventId to be deleted
Struct paraDispose

The following table lists the fields defined in "paraDispose":

Field Data Type Documentation
Struct paraExecuteProject

The following table lists the fields defined in "paraExecuteProject":

Field Data Type Documentation
ProjectName WideString
Name of the MachineLink project as defined in CalWin.
Variables VariableValues
A list of variables nescessary to execute the MachineLink project. Name and kind of variables are defined i the project itself.
Struct paraExecuteProjectAndStore

The following table lists the fields defined in "paraExecuteProjectAndStore":

Field Data Type Documentation
StoreToInfo TStoreToInfo

							
Struct paraExecuteReports

The following table lists the fields defined in "paraExecuteReports":

Field Data Type Documentation
Reports ReportPackageArray
The list of reports to execute
Format ReportExportFormat
The format to convert the report into.
ExportToCache Boolean
If True the report files will be put in the server cache. The complete URL to the file will be returned.
SendByEmailParameter SendReportByEmailStruct
If the report should be sent by E-Mail this parameter has to be given.
ReportMergingOptions ReportMergeOptionsStruct

							
Struct paraExecuteSQL

The following table lists the fields defined in "paraExecuteSQL":

Field Data Type Documentation
SQLId WideString
The SQL GUID as defined in the application defintion
Variables VariableValues
Variables for the SQL statement
MaxRowCount Integer
Only returns the first MaxRowCount rows. If 0 all rows will be returned.
Struct paraExecuteSQLForCheckpointprofile

The following table lists the fields defined in "paraExecuteSQLForCheckpointprofile":

Field Data Type Documentation
CheckpointProfileId WideString
The checkpoint profile id.
Struct paraExecuteSQLV2

The following table lists the fields defined in "paraExecuteSQLV2":

Field Data Type Documentation
SQLId WideString
The SQL GUID as defined in the application defintion
Struct paraFindSimilar

The following table lists the fields defined in "paraFindSimilar":

Field Data Type Documentation
Struct paraFindSimilarFromAddress

The following table lists the fields defined in "paraFindSimilarFromAddress":

Field Data Type Documentation
NameAndAddress NameAddressStruct

							
Carrier WideString

							
LocationId WideString

							
Struct paraFindSimilarFromConsignment

The following table lists the fields defined in "paraFindSimilarFromConsignment":

Field Data Type Documentation
Consignmentnumber WideString

							
Struct paraGetActivity

The following table lists the fields defined in "paraGetActivity":

Field Data Type Documentation
ActivityId Int64
The activity to the retrieved
Struct paraGetAppParameters

The following table lists the fields defined in "paraGetAppParameters":

Field Data Type Documentation
Parameters AppGetAppParameterRequestArray
Parameters to get.
Struct paraGetCheckpointDocumentLinks

The following table lists the fields defined in "paraGetCheckpointDocumentLinks":

Field Data Type Documentation
CheckpointProfileId WideString
The checkpoint profile id. The assigned document tags are used to decide which documents to return
Workid Int64
The workid
Struct paraGetCheckpointDocuments

The following table lists the fields defined in "paraGetCheckpointDocuments":

Field Data Type Documentation
CheckpointProfileId WideString
The checkpoint profile id (CHECKPOINTPROFILE.PROFILEID)
WorkId Int64
The work id. (WORK.WORKID)
Struct paraGetCheckpointprofileInfo

The following table lists the fields defined in "paraGetCheckpointprofileInfo":

Field Data Type Documentation
CheckpointProfileId WideString
The checkpoint profile id.
Struct paraGetConfig

The following table lists the fields defined in "paraGetConfig":

Field Data Type Documentation
Struct paraGetDiaryEvent

The following table lists the fields defined in "paraGetDiaryEvent":

Field Data Type Documentation
EventId Int64
The EventId to return.
Struct paraGetDispatched

The following table lists the fields defined in "paraGetDispatched":

Field Data Type Documentation
FromDate DateTime

							
Struct paraGetItemLineDocuments

The following table lists the fields defined in "paraGetItemLineDocuments":

Field Data Type Documentation
SaleslineIdent SaleslineIdentStruct
The item line identification in the form of salestype, salesnumber and vnumber
Struct paraGetItemLineImage

The following table lists the fields defined in "paraGetItemLineImage":

Field Data Type Documentation
SaleslineIdent SaleslineIdentStruct
The item line identification in the form of salestype, salesnumber and vnumber
Options TDrawingImageOptions
Drawing options
Struct paraGetListOfCodes

The following table lists the fields defined in "paraGetListOfCodes":

Field Data Type Documentation
Salestype TSalestype

							
Struct paraGetNextDbChange

The following table lists the fields defined in "paraGetNextDbChange":

Field Data Type Documentation
ObjectId WideString
The Id of the notification definition in the App definition.
WaitTime Integer
The number of seconds to wait for notifications to occur before returning (long poll).
MaxNumberOfItems Integer
The maxiumum number of items to return in one call. If 0 all available queue items will be returned.
ReturnOnlyModifiedFieldValues Boolean
If the item is an update, only field that has changed will be returned if this parameter is true.
Struct paraGetNotDispatched

The following table lists the fields defined in "paraGetNotDispatched":

Field Data Type Documentation
Struct paraGetNotificationRecipients

The following table lists the fields defined in "paraGetNotificationRecipients":

Field Data Type Documentation
Pickupnumber Integer
The pickup number (assigned from ConsignmentUtilService.ConfirmDispatched) to get default recipients for. Important: The pickup number ar per location, so the LocationId parameter must also bes set.
LocationId WideString
The location id (Consignment.Locationid) used to find the consignments from the Pickupnumber.
If empty string, the logged in users physical location will be used. If the session is not logged in, the CwServer system users physical location will be used.
Struct paraGetParameters

The following table lists the fields defined in "paraGetParameters":

Field Data Type Documentation
Context ParameterContextStruct
The context of the parameter record to be retrived.
ParameterName WideString
The name of the parameter(s) to be retrived. The % sign can be used as wildcard and thereby returning many parameters in the same operation.
Struct paraGetProductImage

The following table lists the fields defined in "paraGetProductImage":

Field Data Type Documentation
ProductCode WideString
The CalWin product code
Width Double
The width to use. If 0 the default width will be used.
Height Double
The height to use. If 0 the default height will be used.
Options TDrawingImageOptions
Drawing options
Struct paraGetReportInformation

The following table lists the fields defined in "paraGetReportInformation":

Field Data Type Documentation
ReportName WideString
The name of the Reporttemplate (report).
Struct paraGetReportTemplateList

The following table lists the fields defined in "paraGetReportTemplateList":

Field Data Type Documentation
Struct paraGetRGBFromNCS

The following table lists the fields defined in "paraGetRGBFromNCS":

Field Data Type Documentation
NCS WideString
NCS colour code
Struct paraGetServerInfo

The following table lists the fields defined in "paraGetServerInfo":

Field Data Type Documentation
Struct paraGetStdProductImage

The following table lists the fields defined in "paraGetStdProductImage":

Field Data Type Documentation
StdProductCode WideString

							
Width Double
The width to use. If 0 the default width will be used.
Height Double
The height to use. If 0 the default height will be used.
Options TDrawingImageOptions
Drawing options
Struct paraGetStdProductInfo

The following table lists the fields defined in "paraGetStdProductInfo":

Field Data Type Documentation
StdProductid WideString
The standard product identification
PriceListId WideString
To get pricelist prices the pricelist id has to be given in this parameter. If blank, the default pricelist for the location will be used.
Struct paraGetStockItemImage

The following table lists the fields defined in "paraGetStockItemImage":

Field Data Type Documentation
ItemNumber WideString
The itemnumber
Options TDrawingImageOptions
Drawing options
Struct paraGetWorklogInformation

The following table lists the fields defined in "paraGetWorklogInformation":

Field Data Type Documentation
WorklogId Int64

							
Struct paraGetWorklogList

The following table lists the fields defined in "paraGetWorklogList":

Field Data Type Documentation
Workid Int64

							
Struct paraGetWorkstructList

The following table lists the fields defined in "paraGetWorkstructList":

Field Data Type Documentation
SaleslineId SaleslineIdentStruct
Salesline identification.
CheckpointId Integer
Checkpoint id.
Struct paraGoodsCancel

The following table lists the fields defined in "paraGoodsCancel":

Field Data Type Documentation
DeliveryId Integer

							
Struct paraGoodsDeliver

The following table lists the fields defined in "paraGoodsDeliver":

Field Data Type Documentation
AutoDeliverAll Boolean
If True all the lines will delievered/recived. In that case the Lines element is not neccessary.
AutoDeliverSublines Boolean
If True all sublines will also be delivered/recived accordingly
Carrier WideString
A valid CalWin Carrier id
DeliveryDate DateTime
The date the goods was dispatched (orders) or received (purchases)
Dispatchnumber WideString
Dispatchnumber/consignment number from external system
Ident SalesHeaderIdent
Identification of order/purchase
Lines GoodsDeliveryLines
List of lines to be delivered/receiced. If AutoDeliveryAll is True this one is not neccessary.
PackedBy WideString
Reference to person who packed or received the goods. Must be a valid CalWin employee id
Struct paraInsertChild

The following table lists the fields defined in "paraInsertChild":

Field Data Type Documentation
Path WideString

							
InsertIndex Integer

							
Struct paraInstallAppx

The following table lists the fields defined in "paraInstallAppx":

Field Data Type Documentation
AppxFile Binary

							
Struct paraKillSession

The following table lists the fields defined in "paraKillSession":

Field Data Type Documentation
SessionId WideString

							
Struct paraLogin

The following table lists the fields defined in "paraLogin":

Field Data Type Documentation
PassPhrase WideString
A user identified by a PassPhrase. If given, the user will be looked up and "logged" in. If blank, no user login will be tried.
AppParameterRequests AppGetAppParameterRequestArray
A list of parameters to be returned. This is the same as calling ApplicationService.GetAppParameters.
ReceiveAppChangedEvents Boolean
If True the client application will/can receive notification events when the App definition has been updated or when App parameters/settings has been changed. See the SystemEventSink.
Struct paraLoginUser

The following table lists the fields defined in "paraLoginUser":

Field Data Type Documentation
UserName WideString

							
PassWord WideString
Password or Passhprase.
AppParameterRequests AppGetAppParameterRequestArray
A list of parameters to be returned. This is the same as calling ApplicationService.GetAppParameters.
Struct paraLogout

The following table lists the fields defined in "paraLogout":

Field Data Type Documentation
Struct paraMerge

The following table lists the fields defined in "paraMerge":

Field Data Type Documentation
ToConsignmentnumber WideString
The consignment number the Consignments will be merged into.
Consignments StringArray
A list of consignments that will be merged into ToConsignment.
Struct ParameterContextStruct

The following table lists the fields defined in "ParameterContextStruct":

Field Data Type Documentation
User Boolean
The parameter is constrained to the user logged in either by Session.AssignExternalUser or Session.LoginUser.
UserParent Boolean
The parameter is contsrained to the parent (Customer, Supplier, Project, Other Party) of the logged in user.
Struct ParameterStruct

The following table lists the fields defined in "ParameterStruct":

Field Data Type Documentation
Name WideString
The unique key for the parameter.
StringValue WideString
A value for this paramtere as a string
IntegerValue Integer
A value for this parameter as an integer.
FloatValue Double
A value for this parameter as a float
BinaryData Binary
A value for this parameter represented as binary data
Struct paraNewEmpty

The following table lists the fields defined in "paraNewEmpty":

Field Data Type Documentation
Struct paraNewFromCustomer

The following table lists the fields defined in "paraNewFromCustomer":

Field Data Type Documentation
CustomerNumber WideString

							
Struct paraNewFromDelivery

The following table lists the fields defined in "paraNewFromDelivery":

Field Data Type Documentation
DeliveryId Integer

							
Struct paraNewFromSales

The following table lists the fields defined in "paraNewFromSales":

Field Data Type Documentation
SalesHeaderID SalesHeaderIdStruct

							
Struct paraOnAppChanged

The following table lists the fields defined in "paraOnAppChanged":

Field Data Type Documentation
AppGUID WideString
The Application GUID
Revision Integer
The current revision/version of the App definition.
ChangeType AppUpdateChangeTypeEnum
Why the event was raised.
Struct paraOpen

The following table lists the fields defined in "paraOpen":

Field Data Type Documentation
ConsignmentNumber WideString
The consignment number to open.
Struct paraPollQueue

The following table lists the fields defined in "paraPollQueue":

Field Data Type Documentation
WaitTime Integer
The number of seconds to wait. If 0 the call returns immediately even if there is no data.
Struct paraProbeServer

The following table lists the fields defined in "paraProbeServer":

Field Data Type Documentation
SimulatedDelay Integer
Simulated delay in milliseconds. To simulate a long running operation. The worker thread on the server will sleep the number of milliseconds before returning.
Struct paraPushQueue

The following table lists the fields defined in "paraPushQueue":

Field Data Type Documentation
Data Binary

							
Struct paraRefetch

The following table lists the fields defined in "paraRefetch":

Field Data Type Documentation
Path WideString

							
Struct paraRollback

The following table lists the fields defined in "paraRollback":

Field Data Type Documentation
Struct paraSave

The following table lists the fields defined in "paraSave":

Field Data Type Documentation
Struct paraSaveParameters

The following table lists the fields defined in "paraSaveParameters":

Field Data Type Documentation
Context ParameterContextStruct
The context that parameters will be saved in
Parameters ParameterArray
The list of parameters to save.
Struct paraSendEmail

The following table lists the fields defined in "paraSendEmail":

Field Data Type Documentation
Subject WideString
The subject on the message
MessageText WideString

							
ContentType EMailContentTypeEnum
ContentType is deprecated from version 7.13.1. Assume always HTML.
This item is marked as obsolete.
Recipients EmailRecipients
Recipient of the E-Mail
RecipientsCC EmailRecipients

							
RecipientsBCC EmailRecipients

							
Attachments BinaryFiles
Attachments
FromName WideString
It is possible to override the default from name.
FromAddress WideString
It is possible to override the default from address
Struct paraSendMessage

The following table lists the fields defined in "paraSendMessage":

Field Data Type Documentation
Subject WideString
The subject of the message.
MessageText WideString
The message text.
References MessageReference
References to CalWin objects or URL.
Users CalWinUserIds
CalWin user that will receive the message
DistributionGroups DistributionGroupIds
CalWin distribution groups that will receive the message
Struct paraSendNewPassword

The following table lists the fields defined in "paraSendNewPassword":

Field Data Type Documentation
Username WideString
The username or E-Mail address to reset the password for.
EmailSubject WideString
The subject on the E-Mail
EmailBody WideString
The template for the E-Mail body i HTML format: Availabe mergefield: %password% %username% %name% %email%
Struct paraSendNotification

The following table lists the fields defined in "paraSendNotification":

Field Data Type Documentation
Recipients NotificationRecipientArray
The recipients. It must initaly be retrieved from ConsignmentUtilService.GetNotificationRecipients (and the eventually altered).
Struct paraSendSMS

The following table lists the fields defined in "paraSendSMS":

Field Data Type Documentation
Message WideString
The message to send by SMS
Recipients SMSRecipients
A list of recipients (phone number) to receive the message
Sender WideString

							
Struct paraSetConfig

The following table lists the fields defined in "paraSetConfig":

Field Data Type Documentation
Config ConfigStruct

							
Struct paraShConvertToOrder

The following table lists the fields defined in "paraShConvertToOrder":

Field Data Type Documentation
ProductionDate DateTime
Productiondate
DeliveryDate DateTime
Deliverydate
AutoApproveWarnings Boolean
Should warnings on saleslines be approved automatically? If not an exception will be raised.
Struct paraShDelete

The following table lists the fields defined in "paraShDelete":

Field Data Type Documentation
AutoDBCommit Boolean
If true the service will automatically perform commit on the DB. If an exception occur, a rollback will be performed before reraising the exception.
Struct paraShGetCalculatedDeliveryTime

The following table lists the fields defined in "paraShGetCalculatedDeliveryTime":

Field Data Type Documentation
PreferredCustomerDate DateTime
Set this field to the preferred customer date. If 0/blank the best possible date will be returned.
Struct paraShNew

The following table lists the fields defined in "paraShNew":

Field Data Type Documentation
Accountnumber WideString

							
Kind SalesHeaderKind

							
Struct paraShNewPurchase

The following table lists the fields defined in "paraShNewPurchase":

Field Data Type Documentation
Accountnumber WideString
The supplier account number
Struct paraShOpen

The following table lists the fields defined in "paraShOpen":

Field Data Type Documentation
Ident SalesHeaderIdent

							
Struct paraShOpenPurchase

The following table lists the fields defined in "paraShOpenPurchase":

Field Data Type Documentation
Purchasenumber WideString
The purchase number to open.
Struct paraShRefresh

The following table lists the fields defined in "paraShRefresh":

Field Data Type Documentation
RereadSalesheader Boolean
Should the SalesHeader structure be reread form the database?
RereadSaleslines Boolean
If false only eventual new lines (autolines etc.) will be added. If true, existing lines will be reread from the the database as well.
Struct paraShRefreshPurchase

The following table lists the fields defined in "paraShRefreshPurchase":

Field Data Type Documentation
RereadPurchaseHeader Boolean
Should the SalesHeader structure be reread form the database?
RereadSaleslines Boolean
If false only eventual new lines (autolines etc.) will be added. If true, existing lines will be reread from the the database as well.
Struct paraShSave

The following table lists the fields defined in "paraShSave":

Field Data Type Documentation
AutoApproveWarnings Boolean
Should warnings on saleslines be approved automatically? If not an exception will be raised.
IncludeSaleslines Boolean
If true, resShSave.Saleslines will be populated. In addition the all lines will be reread from the DB and eventual new lines (auto lines etc.) will be added.
PriceUpdateOptions PriceUpdateOptionStruct
How prices on the salesline will be handled.
VolumeDiscountUpdate VolumeDiscountUpdateOptionsStruct
How and if the volume disocunt should be updated.
Struct paraShSavePurchase

The following table lists the fields defined in "paraShSavePurchase":

Field Data Type Documentation
AutoApproveWarnings Boolean
Should warnings on saleslines be approved automatically? If not an exception will be raised.
IncludeSaleslines Boolean
If true, resShSave.Saleslines will be populated. In addition the all lines will be reread from the DB and eventual new lines (auto lines etc.) will be added.
Struct paraShSetCurrencyMode

The following table lists the fields defined in "paraShSetCurrencyMode":

Field Data Type Documentation
CurrencyMode CurrencyModeEnum
Sets which currency mode to use for all price fields in subsequent operations.
Struct paraShUpdate

The following table lists the fields defined in "paraShUpdate":

Field Data Type Documentation
SalesHeader SalesheaderStruct

							
Struct paraShUpdatePurchase

The following table lists the fields defined in "paraShUpdatePurchase":

Field Data Type Documentation
PurchaseHeader PurchaseHeaderStruct
The purchase header data
Struct paraShUpdateVolumeDiscount

The following table lists the fields defined in "paraShUpdateVolumeDiscount":

Field Data Type Documentation
DiscountPercent Currency
The discount percent to use.
AmountLimit Currency
The currency amount that was passed to get this discountpercent. (currently if this field is greater than 0, information about the volumediscount will be shown in the CalWin construction form).
ShSaveParameter paraShSave
Paramteres for the shSave operation that will be performed automatically after discount calculation.
UseAutomaticVolumeDiscount Boolean
If true, the volume discount rules defined in CalWin will be used instead of the DiscountPercent and AmountLimit parameters.
Struct paraSignCheckpoint

The following table lists the fields defined in "paraSignCheckpoint":

Field Data Type Documentation
WorkId Int64
Identification of a checkpoint on a Salesline.
Qty Double
Quantity started or finished, dependent on StartStop parameter.
Comment WideString
An eventual comment.
StartStop StartStopEnum

							
Parameters WideString
Eventually parameters in the form "PARA1=xxx PARA2=yyy".
Employee WideString
A valid CalWin employee id.
Struct paraSlAdd

The following table lists the fields defined in "paraSlAdd":

Field Data Type Documentation
ProductSource SaleslineProductSource

							
Code WideString
The id/code. The content is dependent on ProductSource.
Width Double
Width. Only valid when ProductSource is psStandardProduct.
Height Double
Height. Only valid when ProductSource is psStandardProduct.
Qty Double
The quantity. If 0 the default quantity for the item will be used (normally 1)
Struct paraSlAddFrom

The following table lists the fields defined in "paraSlAddFrom":

Field Data Type Documentation
SaleslineIdent SaleslineIdentStruct
The identification of the exisiting salesline to be added.
SaveLine Boolean
If true the new line will be saved to database. Please also set options in SaveLineOptions.
SaveLineOptions paraSlSaveCurrent
Options if SavesLine=True
PriceUpdateOptions PriceUpdateOptionStruct
Options for how prices should be update. It's ignored if SaveLine=True.
Struct paraSlAddInformation

The following table lists the fields defined in "paraSlAddInformation":

Field Data Type Documentation
InformationKind SaleslineInformationKindEnum
What information to add.
Value Variant
The value for the given InformationKind.
Struct paraSlDeleteCurrent

The following table lists the fields defined in "paraSlDeleteCurrent":

Field Data Type Documentation
AutoDBCommit Boolean
If true the service will automatically perform commit on the DB. If an exception occur, a rollback will be performed before reraising the exception.
Struct paraSlDuplicateCurrent

The following table lists the fields defined in "paraSlDuplicateCurrent":

Field Data Type Documentation
SaveLine Boolean
If true the new line will be saved to database. Please also set options in SaveLineOptions.
SaveLineOptions paraSlSaveCurrent

							
Struct paraSlGetCurrent

The following table lists the fields defined in "paraSlGetCurrent":

Field Data Type Documentation
Struct paraSlGetDrawing2D

The following table lists the fields defined in "paraSlGetDrawing2D":

Field Data Type Documentation
UserInteraction Boolean
If True the XAML will include markup for selecting Square/Lights.
ActiveSquareLevel Integer
At which level should Squares be selectable.
DontDrawIntegrated Boolean
If true, eventual integrated products will not be drawn
IntegratedDrawColorStyle DrawingColorStyleEnum
The color style which integrated products are drawn in
Struct paraSlGetImage

The following table lists the fields defined in "paraSlGetImage":

Field Data Type Documentation
DontDrawIntegrated Boolean
If true, eventual integrated products will not be drawn
IntegratedDrawColorStyle DrawingColorStyleEnum
The color style which integrated products are drawn in
Struct paraSlGetPropertyAlternatives

The following table lists the fields defined in "paraSlGetPropertyAlternatives":

Field Data Type Documentation
Index Integer

							
Struct paraSlModifySelectedAreas

The following table lists the fields defined in "paraSlModifySelectedAreas":

Field Data Type Documentation
ClearSelections Boolean
Should all selections be cleared?
PropertyDetails PropertyDetailsEnum
Which property details should be returned.
AddedSelections SelectionAreaIdRecArray
List of SquareId's that should be selected.
RemovedSelections SelectionAreaIdRecArray
List of SquareId's that should be deselected.
Struct paraSlRollback

The following table lists the fields defined in "paraSlRollback":

Field Data Type Documentation
Struct paraSlSaveCurrent

The following table lists the fields defined in "paraSlSaveCurrent":

Field Data Type Documentation
AutoApproveWarnings Boolean
Should warnings be approved automatically? If not an exception will be raised.
AutoDBCommit Boolean
If true the service will automatically perform commit on the DB. If an exception occur, a rollback will be performed before reraising the exception.
PriceUpdateOptions PriceUpdateOptionStruct
How prices will be handled.
Struct paraSlSetCurrent

The following table lists the fields defined in "paraSlSetCurrent":

Field Data Type Documentation
RowIndex Integer

							
Struct paraSlUpdateProperties

The following table lists the fields defined in "paraSlUpdateProperties":

Field Data Type Documentation
RowIndex Integer
If RowIndex > 0 the current row will be set before applying the properties. (similar to calling slSetCurrent before).
Properties PropertyUpdateArray
An array of properties that will be applied.
SaveLine Boolean
If true the line will be saved to db after the properties have been applied.
PS! If there are error after applyting the properties, it will not be saved to DB.
Please also set options in SaveLineOptions.
SaveLineOptions paraSlSaveCurrent
Options for saving to DB. This is the same options that is available in slSaveCurrent.
Struct paraUpdate

The following table lists the fields defined in "paraUpdate":

Field Data Type Documentation
Path WideString

							
Save Boolean

							
Delta FieldDataArray

							
Struct PriceUpdateOptionStruct

The following table lists the fields defined in "PriceUpdateOptionStruct":

Field Data Type Documentation
RestoreStandardPrices Boolean
If set Gross Price and Net Price will be restored to their standard values.
If KeepDiscountPercent=True then Net price will be equal Gross Price minus the current discount.
Gross Price will come either from price list or calculation.
KeepDiscountPercent Boolean
When RestoreStandardPrices is True this parameter says if the discount should be kept, and not reset to default.
RecalculateEndUserPrice Boolean
If True the end user price will be recalculated according to the rules (Salesheader.Enduser_Pricecalc_Rule)
Struct ProductCodeStruct

The following table lists the fields defined in "ProductCodeStruct":

Field Data Type Documentation
IsStockproduct Boolean
True if the product normally is stocked.
Code WideString
The code that should be displayed/selected by the user. The possible kinds of values are: Itemnumbers, Productcodes, GTIN numbers, NOBB numbers or Standardproduct numbers.
Name WideString
The name/description.
Heading Boolean
True if this is only a heading, and should not be selectable.
ProductSource SaleslineProductSource
CalWin can create orderlines by either productcode, standardproduct, stocktable itemnumber or
semifinsihed stocktable itemnumber. This enum tells what kind this record represents,
and should in orderService.slAdd.
StdProductId WideString
If a Stanndardproduct, this file contains the Standardproduct id.
Width Double
The width of the product
Height Double
The height of the product.
Itemnumber WideString
If a item, then this field contains the itemnumber.
ProductCode WideString
If a product, this field contains the productcode
IsTemp Boolean
Is this a temporary item (ie. returned by customer).
IsDamaged Boolean
True if it is a damaged item.
DamageDescription WideString
The eventual damage description.
Struct PropertyCategory

The following table lists the fields defined in "PropertyCategory":

Field Data Type Documentation
Caption WideString
Caption of the category
AutoExpandRule AutoExpandRuleEnum

							
HasValues Boolean
If one or more properties inside the category has a value.
Properties PropertyItemArray
List of properties for this category.
Struct PropertyItem

The following table lists the fields defined in "PropertyItem":

Field Data Type Documentation
AlternativeCount Integer
The number of valid alternatives available
AlternativeOption PropertyItemAlternativeOption

							
PropertyIndex Integer
A unique index that can be used to alter the property value with slUpdateProperties
PropertyType TcwPropertyType

							
PropertyName WideString
VARIANT_VARRECID=An option that can be selected. VARIANT_TEXT=An option description
Other examples that is option related is; GRILLE_DESIGNCODE, GRILLE_DIVIDECODE, HINGE_QTY, HINGE_PREPARED_FOR_ONLY, etc.
Fields will have their logical names like DEPARTMENT, SUPPLIER, FORMTRMU, etc.
Caption WideString

							
Hint WideString

							
Value Variant
The current value.
ValueMaxLength Integer
Max length of value.
DisplayValue WideString
The text that describes the property
Documents TDocumentLinkInfoArray
A list of documents relevant for this property
HasOverride Boolean
Is the default value overridden? For example mullion, transom and bar positions
IsDisabled Boolean

							
IsInvalid Boolean
Is the property value invalid? This can happen when overridden positions is out of range
IsLocked Boolean
Is the property value locked?
IsReadOnly Boolean
Is the property value read only?
IsVariantUserOverride Boolean
Is the option overridden from the default selection?
IsChildValue Boolean

							
PropertyVariantKind TVariantKind

							
Struct PropertyItemAlternative

The following table lists the fields defined in "PropertyItemAlternative":

Field Data Type Documentation
Value Variant

							
DisplayValue Variant

							
Description WideString

							
Description2 WideString

							
Documents TDocumentLinkInfoArray
Documents connected to this item
ExtraValues VariantArray
Extra values as declared in PropertyItemAlternativeOption.ExtraValueInfo.
IsHeading Boolean

							
Struct PropertyItemAlternativeExtraValueInfo

The following table lists the fields defined in "PropertyItemAlternativeExtraValueInfo":

Field Data Type Documentation
Caption WideString

							
Name WideString

							
ValueType TcwPropertyType

							
Struct PropertyItemAlternativeOption

The following table lists the fields defined in "PropertyItemAlternativeOption":

Field Data Type Documentation
AllowClearValue Boolean
True if it should be possible to set the value to null (clear)
ValueCaption WideString
Caption for the key column
DescriptionCaption WideString
Caption for the first description column.
Description2Caption WideString
Caption for the second description Column.
ExtraInfo PropertyItemAlternativeExtraValueInfoArray
List of extra columns. The values are available on PropertyItemAlternativ.ExtraValues
IsFixedList Boolean
True if only values from the list of alternatives is valid.
UseDisplayValue Boolean
True if DisplayValue should be used instead of Value
Struct PropertyUpdateStruct

The following table lists the fields defined in "PropertyUpdateStruct":

Field Data Type Documentation
PropertyIndex Integer
The index of the property to update the value on. Either PropertyIndex or PropertyName have to be given.
PropertyName WideString
The property name to update value on. Either PropertyIndex or PropertyName have to be given.
StringValue WideString
If the value of the property is of type string, then use this property for the value. Otherwise use NumericValue.
NumericValue Double
If the value of the property is integer, float or boolean then use this to set the value. Otherwise use StringValue.
Struct PurchaseHeaderStruct

The following table lists the fields defined in "PurchaseHeaderStruct":

Field Data Type Documentation
SuppliersOrderNumber WideString

							
Struct QueryDialogStruct

The following table lists the fields defined in "QueryDialogStruct":

Field Data Type Documentation
Title WideString
The dialog Title.
QueryVariables QueryVariableArray
Dialog input items
Struct QueryVariableStruct

The following table lists the fields defined in "QueryVariableStruct":

Field Data Type Documentation
Name WideString
THe name of the variable
Caption WideString
The caption/label.
EditorType TQueryVariablesEditorType
The input editor type to be used.
Value Variant
The default value.
FromName WideString
If this editor is a "to" field, then this is the name of the "from" editor.
Width Integer
The width of the input editor
ComboboxValues VariableValues
A list of selectable values when the editor type is one of the ComboBox types.
Struct ReportCurrentValues

The following table lists the fields defined in "ReportCurrentValues":

Field Data Type Documentation
Salestype Integer

							
Salesnumber WideString

							
Vnumber Integer

							
Batchgroup Integer

							
Batchno WideString

							
Checkpoint WideString

							
ChpWorkId Integer

							
Consignment WideString

							
Deliverynumber Integer

							
Globalnoteid Integer

							
Pickupnumber Integer

							
Priceformat Integer

							
PriceformatTotal Boolean

							
PricespecLines Boolean

							
PricespecTotal Boolean

							
PrintProddate DateTime

							
ProdStartdate DateTime

							
CustomerNumber WideString

							
DeviationId Int64

							
Invoicenumber Int64

							
UserlocationId WideString

							
WorklogId Int64

							
InvoiceJournal Int64

							
CreditorNumber WideString

							
CapacityProddate DateTime

							
CapacityLocationId WideString

							
DeliveryPackageId Int64

							
DeliveryPlanId Int64

							
InventoryId Integer

							
InventoryGroupId Integer

							
DmProjectId Int64

							
ItemInstanceId Int64

							
Struct ReportExportFile

The following table lists the fields defined in "ReportExportFile":

Field Data Type Documentation
Name WideString
The name of the file.
FileBinary Binary
The binary filedata. Will be empty if ExportToCahce is True.
FileSize Integer
The size in byte of the filedata.
URLToCache WideString
The complete URL to the file on the server cache. Only if ExportToCache is True.
ReportNum Integer
A reference to the report number when ExecuteReports is used. 0 is first.
Struct ReportMergeOptionsStruct

The following table lists the fields defined in "ReportMergeOptionsStruct":

Field Data Type Documentation
MergeReports Boolean
If true and the specified format supports merging, all reports will be merge into one output file. PS! At the moment only PDF supports merging.
CreateActivity Boolean
If true an activity record will be created for the merged file. In this case the CreateActivity flag on the individual reports will be ignored.
ActivityTitle WideString
The title of the activity record. If not set, the email subject of the reports will be used. If none, the report name will be used.
CurrentValues ReportCurrentValues
This is the current values that will be used to create an activity for the merged output.
Struct ReportPackageStruct

The following table lists the fields defined in "ReportPackageStruct":

Field Data Type Documentation
ReportName WideString
The name of the report to execute.
CurrentValues ReportCurrentValues
Input variables to the report that is related to specific CalWin contexts. For example CurrentValues.Batchno references the currently selected production batch.
Variables VariableValues
A list of variables that is defined in the report. (In CalWin this is the same as what the user will be asked to fill out in a dialog before running the report)
Parameters VariableValues
In CalWin a specific report template might have defined parameters.
The idea of parameters, in reporting context, is to let the report behave differently
depending of the value of one or more parameters.
CreateActivity Boolean
If True a print activity will be created for this report and coupled to corresponding
CalWin quote, order, invoice, customer etc. given in CurrentValues.
PS! If reporting merging is on, activity for individual report will not be generated.
Struct ReportParameterStruct

The following table lists the fields defined in "ReportParameterStruct":

Field Data Type Documentation
DataType ReportDatatypeEnum
The data type of the parameter
Struct resAddOrUpdateActivity

The following table lists the fields defined in "resAddOrUpdateActivity":

Field Data Type Documentation
Activity ActivityStruct

							
Struct resAddOrUpdateAppUser

The following table lists the fields defined in "resAddOrUpdateAppUser":

Field Data Type Documentation
AppUser AppUserStruct

							
NewPassphrase WideString
An eventual new passphrase if a new user is created and the authentication method for the App is passphrase.
Struct resAddOrUpdateContact

The following table lists the fields defined in "resAddOrUpdateContact":

Field Data Type Documentation
Contact ContactStruct

							
Struct resAddOrUpdateDiaryEvent

The following table lists the fields defined in "resAddOrUpdateDiaryEvent":

Field Data Type Documentation
DiaryEvent DiaryEventStruct

							
Struct resAddToDraft

The following table lists the fields defined in "resAddToDraft":

Field Data Type Documentation
Struct resApiLogin

The following table lists the fields defined in "resApiLogin":

Field Data Type Documentation
LoginResult LoginUserStatusEnum
The result of the login.
AppVersion WideString

							
Struct resBookDraft

The following table lists the fields defined in "resBookDraft":

Field Data Type Documentation
Struct resBusinessObjects

The following table lists the fields defined in "resBusinessObjects":

Field Data Type Documentation
Data RowdataDisplayStruct

							
Struct resChangeUsernameAndPassword

The following table lists the fields defined in "resChangeUsernameAndPassword":

Field Data Type Documentation
Status ChangeUsernameAndPasswordStatusEnum

							
Struct resCheckQueue

The following table lists the fields defined in "resCheckQueue":

Field Data Type Documentation
MessageQty Integer
Number of messages in the Queue
Struct resCheckSession

The following table lists the fields defined in "resCheckSession":

Field Data Type Documentation
Exists Boolean
Does the session exists?
Struct resCommit

The following table lists the fields defined in "resCommit":

Field Data Type Documentation
Struct resConfirmDispatched

The following table lists the fields defined in "resConfirmDispatched":

Field Data Type Documentation
Pickupnumber Integer
The assigned pickup number.
EdifactFile Binary
If paraConfirmDispatched.DoReturnEdifactFile = true this field will contain the created EDIFACT file if the carrier has EDI turned on.
Log WideString
Text log of the operations performed
Struct resCreateFromTemplate

The following table lists the fields defined in "resCreateFromTemplate":

Field Data Type Documentation
DeviationId Integer
The id of the created deviation if it saved succesfully
Errors StringArray

							
Struct resCreateInventoryDraft

The following table lists the fields defined in "resCreateInventoryDraft":

Field Data Type Documentation
DraftId Integer
The id (Inventory.InventoryId) of the created draft
Struct resCustom

The following table lists the fields defined in "resCustom":

Field Data Type Documentation
Struct resCustomBinaryData

The following table lists the fields defined in "resCustomBinaryData":

Field Data Type Documentation
Data Binary

							
Struct resCustomExecuteSQLV2

The following table lists the fields defined in "resCustomExecuteSQLV2":

Field Data Type Documentation
Records TRecords
The returned records as an array of array of variant 
Columns TColumns
Column definitions
Struct resCustomLogin

The following table lists the fields defined in "resCustomLogin":

Field Data Type Documentation
SessionId WideString
The client session id.
UserInfo AppUserStruct
User information. Only if the PassPhrase was used.
Version WideString
CalWin Server version
Struct resCustomObject

The following table lists the fields defined in "resCustomObject":

Field Data Type Documentation
ObjectId WideString

							
Struct resDelete

The following table lists the fields defined in "resDelete":

Field Data Type Documentation
Struct resDeleteActivity

The following table lists the fields defined in "resDeleteActivity":

Field Data Type Documentation
Struct resDeleteDiaryEvent

The following table lists the fields defined in "resDeleteDiaryEvent":

Field Data Type Documentation
Struct resDispose

The following table lists the fields defined in "resDispose":

Field Data Type Documentation
Struct resExecuteProject

The following table lists the fields defined in "resExecuteProject":

Field Data Type Documentation
Files BinaryFiles
The files created by the MachineLink project.
Struct resExecuteProjectAndStore

The following table lists the fields defined in "resExecuteProjectAndStore":

Field Data Type Documentation
Struct resExecuteReports

The following table lists the fields defined in "resExecuteReports":

Field Data Type Documentation
Files ReportExportFileList
The resulting files or URL after report generation.
Struct resExecuteSQL

The following table lists the fields defined in "resExecuteSQL":

Field Data Type Documentation
Records Utf8String
The returned records as XML data. The format is: <dataset>  <record recno=1>    <fieldname1>Data1</fieldname1>    <fieldname2>Data2</fieldname2>  </record> <record recno=2>   ... </dataset>
Columns Utf8String
Column definition from the SQL statement as XML in the format: <columns>   <column name="column1"/>   <column name="column2"/<   .... </columns>
Struct resExecuteSQLForCheckpointprofile

The following table lists the fields defined in "resExecuteSQLForCheckpointprofile":

Field Data Type Documentation
Struct resExecuteSQLV2

The following table lists the fields defined in "resExecuteSQLV2":

Field Data Type Documentation
Struct resFindSimilar

The following table lists the fields defined in "resFindSimilar":

Field Data Type Documentation
Consignments FindSimilarArray

							
Struct resFindSimilarFromAddress

The following table lists the fields defined in "resFindSimilarFromAddress":

Field Data Type Documentation
Struct resFindSimilarFromConsignment

The following table lists the fields defined in "resFindSimilarFromConsignment":

Field Data Type Documentation
Struct resGetActivity

The following table lists the fields defined in "resGetActivity":

Field Data Type Documentation
Activity ActivityStruct
The returned activity structure.
Struct resGetAppParameters

The following table lists the fields defined in "resGetAppParameters":

Field Data Type Documentation
Parameters AppParameterArray

							
Struct resGetCheckpointDocumentLinks

The following table lists the fields defined in "resGetCheckpointDocumentLinks":

Field Data Type Documentation
Documents TDocumentLinkInfoArray

							
Struct resGetCheckpointprofileInfo

The following table lists the fields defined in "resGetCheckpointprofileInfo":

Field Data Type Documentation
Caption WideString
The Caption of the checkpoint profile
Checkpoint Integer
The checkpoint id this checkpoint profile belongs to
PreviewReport WideString
The preview report assigned to the profile
QueryDialogDefinition QueryDialogStruct
The dialog defintion for the checkpoint profile
Struct resGetConfig

The following table lists the fields defined in "resGetConfig":

Field Data Type Documentation
Config ConfigStruct

							
Struct resGetDiaryEvent

The following table lists the fields defined in "resGetDiaryEvent":

Field Data Type Documentation
DiaryEvent DiaryEventStruct

							
Struct resGetDispatched

The following table lists the fields defined in "resGetDispatched":

Field Data Type Documentation
Rows FieldDisplayDataArray

							
Struct resGetDocuments

The following table lists the fields defined in "resGetDocuments":

Field Data Type Documentation
Documents TDocumentLinkInfoArray

							
Struct resGetListOfCodes

The following table lists the fields defined in "resGetListOfCodes":

Field Data Type Documentation
Products ProductcodeArray
List of produtcs returned from GetListOfCodes operation.
Struct resGetNextDbChange

The following table lists the fields defined in "resGetNextDbChange":

Field Data Type Documentation
Data NotificationDataArray

							
Struct resGetNotDispatched

The following table lists the fields defined in "resGetNotDispatched":

Field Data Type Documentation
Struct resGetNotificationRecipients

The following table lists the fields defined in "resGetNotificationRecipients":

Field Data Type Documentation
Recipients NotificationRecipientArray
Recipients with default values.
CanSendEmail Boolean
True if E-Mail is supported. The carrier has to have the E-mail report defined.
CanSendPDF Boolean
True if PDF is supported. The carrier has to have the E-mail report defined.
CanSendSMS Boolean
True if SMS notification is supported. The carrier has to have the SMS report defined.
Struct resGetParameters

The following table lists the fields defined in "resGetParameters":

Field Data Type Documentation
Parameters ParameterArray

							
Struct resGetReportInformation

The following table lists the fields defined in "resGetReportInformation":

Field Data Type Documentation
Parameters ReportParameterArray
Parameters that are defined in the report.
QueryDialogDefintion QueryDialogStruct
The dialog defintion for the report input, defined by the report maker.
Struct resGetReportTemplateList

The following table lists the fields defined in "resGetReportTemplateList":

Field Data Type Documentation
Templates ReportTemplateList
List of reports
Struct resGetRGBFromNCS

The following table lists the fields defined in "resGetRGBFromNCS":

Field Data Type Documentation
RGB RGBStruct
Colour coded as RGB.
Struct resGetServerInfo

The following table lists the fields defined in "resGetServerInfo":

Field Data Type Documentation
Version WideString
CalWin Server version
ZimeZoneInfo TimeZoneStruct
Timezone information for the server that CalWin Server is running on.
Struct resGetStdProductInfo

The following table lists the fields defined in "resGetStdProductInfo":

Field Data Type Documentation
StdProductId WideString

							
ProductCode WideString
Reference to the product code that this Standard Product is based on.
Description WideString
Description of the Standard Product.
SizesInformation StandardProductInfoSizeArray
Array of information for each valid size combination.
Struct resGetWorklogInformation

The following table lists the fields defined in "resGetWorklogInformation":

Field Data Type Documentation
Worklog WorklogStruct

							
Struct resGetWorkloglist

The following table lists the fields defined in "resGetWorkloglist":

Field Data Type Documentation
Worklog WorklogStructArray

							
Struct resGetWorkstructList

The following table lists the fields defined in "resGetWorkstructList":

Field Data Type Documentation
Workstructs WorkStructArray

							
Struct resGoodsCancel

The following table lists the fields defined in "resGoodsCancel":

Field Data Type Documentation
DeliveryId Integer
The ID of the created delivery cancellation record
Struct resGoodsDeliver

The following table lists the fields defined in "resGoodsDeliver":

Field Data Type Documentation
DeliveryId Integer
The ID of the created delivery record
Error Boolean
True if something went wrong. Details can be found in the Message element
Message WideString
Textual representation of the result. If Error is True, it will be a description of what went wrong
Struct resInsertChild

The following table lists the fields defined in "resInsertChild":

Field Data Type Documentation
Struct resInstallAppx

The following table lists the fields defined in "resInstallAppx":

Field Data Type Documentation
ResultAction InstallAppxResultEnum

							
Struct resKillSession

The following table lists the fields defined in "resKillSession":

Field Data Type Documentation
Struct resLogin

The following table lists the fields defined in "resLogin":

Field Data Type Documentation
AppParameters AppParameterArray
A list of parameters as requested in paraLogin.AppParameterRequests
PassPhraseLoginResult LoginUserStatusEnum
The result of the PassPhrase login.
Struct resLoginUser

The following table lists the fields defined in "resLoginUser":

Field Data Type Documentation
Status LoginUserStatusEnum

							
UserInfo AppUserStruct
Information about the user
AppParameters AppParameterArray
A list of parameters as requested in paraLoginUser.AppParameterRequests
Struct resLogout

The following table lists the fields defined in "resLogout":

Field Data Type Documentation
Struct resMerge

The following table lists the fields defined in "resMerge":

Field Data Type Documentation
Struct resNewEmpty

The following table lists the fields defined in "resNewEmpty":

Field Data Type Documentation
Struct resNewFromCustomer

The following table lists the fields defined in "resNewFromCustomer":

Field Data Type Documentation
Struct resNewFromDelivery

The following table lists the fields defined in "resNewFromDelivery":

Field Data Type Documentation
Struct resNewFromSales

The following table lists the fields defined in "resNewFromSales":

Field Data Type Documentation
Struct resOpen

The following table lists the fields defined in "resOpen":

Field Data Type Documentation
Struct resPollQueue

The following table lists the fields defined in "resPollQueue":

Field Data Type Documentation
Data Binary
The data returned
MessageId WideString
The message id of the returned message. If blank noe message was found
Struct resProbeServer

The following table lists the fields defined in "resProbeServer":

Field Data Type Documentation
Struct resProdcutImage

The following table lists the fields defined in "resProdcutImage":

Field Data Type Documentation
Struct resPushQueue

The following table lists the fields defined in "resPushQueue":

Field Data Type Documentation
MessageId WideString

							
Struct resRefetch

The following table lists the fields defined in "resRefetch":

Field Data Type Documentation
Struct resRollback

The following table lists the fields defined in "resRollback":

Field Data Type Documentation
Struct resSalesline

The following table lists the fields defined in "resSalesline":

Field Data Type Documentation
Salesline SaleslineStructOS

							
PropertyCategories PropertyCategoryArray

							
FeedBackList FeedbackArray

							
Struct resSave

The following table lists the fields defined in "resSave":

Field Data Type Documentation
Struct resSaveParameters

The following table lists the fields defined in "resSaveParameters":

Field Data Type Documentation
Struct resSendEmail

The following table lists the fields defined in "resSendEmail":

Field Data Type Documentation
ResponseText WideString
This is actually not in use at the moment and will always be empty.
Struct resSendMessage

The following table lists the fields defined in "resSendMessage":

Field Data Type Documentation
MessageId Int64
The id of the created message.
NumberOfUsers Integer
The total number of users that will receive this message.
Struct resSendNewPassword

The following table lists the fields defined in "resSendNewPassword":

Field Data Type Documentation
Status SendNewPasswordStatusEnum

							
Struct resSendNotification

The following table lists the fields defined in "resSendNotification":

Field Data Type Documentation
Struct resSendSMS

The following table lists the fields defined in "resSendSMS":

Field Data Type Documentation
Struct resSetConfig

The following table lists the fields defined in "resSetConfig":

Field Data Type Documentation
Struct resShConvertToOrder

The following table lists the fields defined in "resShConvertToOrder":

Field Data Type Documentation
SalesHeader SalesheaderStruct
The salesheader after converted to order.
Saleslines SaleslineStructOSArray
The saleslines after converting to order.
Struct resShDelete

The following table lists the fields defined in "resShDelete":

Field Data Type Documentation
Struct resShGetCalculatedDeliveryTime

The following table lists the fields defined in "resShGetCalculatedDeliveryTime":

Field Data Type Documentation
OrderLevelDates SalesDatesStruct
Production, delivery and customer dates.
LocationLevelDates LocationSalesDatesArray
Details about production, delivery and customer date for every locations involved.
Struct resShGetDocumentLinks

The following table lists the fields defined in "resShGetDocumentLinks":

Field Data Type Documentation
Documents TDocumentLinkInfoArray

							
Struct resShNew

The following table lists the fields defined in "resShNew":

Field Data Type Documentation
SalesHeader SalesheaderStruct

							
Struct resShNewPurchase

The following table lists the fields defined in "resShNewPurchase":

Field Data Type Documentation
PurchaseHeader PurchaseHeaderStruct
The purchase header
Struct resShOpen

The following table lists the fields defined in "resShOpen":

Field Data Type Documentation
SalesHeader SalesheaderStruct
Reference to the salesheader object.
Saleslines SaleslineStructOSArray
A list of salesline objects for the quote/order.
Struct resShOpenPurchase

The following table lists the fields defined in "resShOpenPurchase":

Field Data Type Documentation
PurchaseHeader PurchaseHeaderStruct
The purchase header
Saleslines SaleslineStructOSArray
A list of salesline objects for the purchase.
Struct resShRefresh

The following table lists the fields defined in "resShRefresh":

Field Data Type Documentation
Salesheader SalesheaderStruct

							
Saleslines SaleslineStructOSArray

							
Struct resShRefreshPurchase

The following table lists the fields defined in "resShRefreshPurchase":

Field Data Type Documentation
Purchaseheader PurchaseHeaderStruct

							
Saleslines SaleslineStructOSArray

							
Struct resShSave

The following table lists the fields defined in "resShSave":

Field Data Type Documentation
SalesHeader SalesheaderStruct

							
Saleslines SaleslineStructOSArray
This contains all the saleslines but only if the paraShSave.IncludeSaleslines or VolumeDiscountUpdate.DoUpdate is true.
Struct resShSavePurchase

The following table lists the fields defined in "resShSavePurchase":

Field Data Type Documentation
PurchaseHeader PurchaseHeaderStruct
The purchase header data
Saleslines SaleslineStructOSArray
This contains all the saleslines but only if the paraShSavePurchase.IncludeSaleslines = true
Struct resShSetCurrencyMode

The following table lists the fields defined in "resShSetCurrencyMode":

Field Data Type Documentation
CurrencyMode CurrencyModeEnum
Confirms the currency mode that has been set.
Struct resShUpdate

The following table lists the fields defined in "resShUpdate":

Field Data Type Documentation
SalesHeader SalesheaderStruct

							
Struct resShUpdatePurchase

The following table lists the fields defined in "resShUpdatePurchase":

Field Data Type Documentation
PurchaseHeader PurchaseHeaderStruct
The purchase header data
Struct resShUpdateVolumeDiscount

The following table lists the fields defined in "resShUpdateVolumeDiscount":

Field Data Type Documentation
DiscountAmount Currency
The calculated volume discount
Salesheader SalesheaderStruct
The updated SalesHeader struct after the volume discount has been applied.
Saleslines SaleslineStructOSArray
All saleslines after the volume discount has been applied.
Struct resShWithCurrencyInfo

The following table lists the fields defined in "resShWithCurrencyInfo":

Field Data Type Documentation
CurrencyInfo CurrencyInfoStruct
Currency information for the current session
Struct resSignCheckpoint

The following table lists the fields defined in "resSignCheckpoint":

Field Data Type Documentation
WorklogId Int64
The id from the created record in the Worklog table.
Struct resSlAdd

The following table lists the fields defined in "resSlAdd":

Field Data Type Documentation
Struct resSlAddFrom

The following table lists the fields defined in "resSlAddFrom":

Field Data Type Documentation
Struct resSlAddInformation

The following table lists the fields defined in "resSlAddInformation":

Field Data Type Documentation
Struct resSlDeleteCurrent

The following table lists the fields defined in "resSlDeleteCurrent":

Field Data Type Documentation
Struct resSlDuplicateCurrent

The following table lists the fields defined in "resSlDuplicateCurrent":

Field Data Type Documentation
Struct resSlGetCurrent

The following table lists the fields defined in "resSlGetCurrent":

Field Data Type Documentation
Struct resSlGetDocumentLinks

The following table lists the fields defined in "resSlGetDocumentLinks":

Field Data Type Documentation
Documents TDocumentLinkInfoArray

							
Struct resSlGetDrawing2D

The following table lists the fields defined in "resSlGetDrawing2D":

Field Data Type Documentation
Drawing Utf8String
The drawing of a the item line in XAML format.
MaxSquareLevel Integer
Number of Square Levels on the product
Struct resSlGetImage

The following table lists the fields defined in "resSlGetImage":

Field Data Type Documentation
Image Binary

							
Struct resSlGetpropertyAlternatives

The following table lists the fields defined in "resSlGetpropertyAlternatives":

Field Data Type Documentation
Alternatives PropertyItemAlternativeArray
All alternatives for a property item
Struct resSlModifySelectedAreas

The following table lists the fields defined in "resSlModifySelectedAreas":

Field Data Type Documentation
PropertyCategories PropertyCategoryArray

							
Struct resSlRollback

The following table lists the fields defined in "resSlRollback":

Field Data Type Documentation
Struct resSlSaveCurrent

The following table lists the fields defined in "resSlSaveCurrent":

Field Data Type Documentation
Struct resSlSetCurrent

The following table lists the fields defined in "resSlSetCurrent":

Field Data Type Documentation
Struct resSlUpdateProperties

The following table lists the fields defined in "resSlUpdateProperties":

Field Data Type Documentation
Struct resUpdate

The following table lists the fields defined in "resUpdate":

Field Data Type Documentation
Struct RGBStruct

The following table lists the fields defined in "RGBStruct":

Field Data Type Documentation
R Integer

							
G Integer

							
B Integer

							
Struct RowdataDisplayStruct

The following table lists the fields defined in "RowdataDisplayStruct":

Field Data Type Documentation
Path WideString

							
FieldValues FieldDisplayDataArray

							
Children ChildArray

							
Struct SalesDatesStruct

The following table lists the fields defined in "SalesDatesStruct":

Field Data Type Documentation
ProductionDate DateTime
The day the production is supposed to be finished.
DeliveryDate DateTime
The day the order will be shipped from the factory.
CustomerDate DateTime
The day the order is supposed to arrive at the customers site.
Struct SalesHeaderIdent

The following table lists the fields defined in "SalesHeaderIdent":

Field Data Type Documentation
Salestype TSalestype

							
Salesnumber WideString

							
Struct SalesHeaderIdStruct

The following table lists the fields defined in "SalesHeaderIdStruct":

Field Data Type Documentation
Salestype TSalestype

							
Salesnumber WideString

							
Struct SalesheaderStruct

The following table lists the fields defined in "SalesheaderStruct":

Field Data Type Documentation
Deliveredstatus Integer

							
Debtoraccount WideString

							
Invoiceaccount WideString

							
Salesrep WideString

							
FollowupDate DateTime

							
Expiredate DateTime

							
EndUserAddress AddressEnduserStruct

							
Customerdate DateTime

							
Salesdate DateTime

							
Productiondate DateTime

							
Bonus WideString

							
Deliverydatequote WideString

							
Pricelist WideString

							
Discountset WideString

							
Debfind WideString

							
Enddisc WideString

							
Quotenumber WideString

							
Seller WideString

							
Chain WideString

							
Carrier WideString

							
EmailConsignment WideString
Email for consignment notification
StockCheck Boolean

							
EndUser_Pricecalc_Rule EndUserPriceCalcRuleEnum
The rule for how the enduser price should be calculated on itemlines.
EndUser_Pricecalc_value Double
The rate for the rule given by EndUser_Pricecalc_Rule
CombinedDelivery Boolean
Shall the order be delivered completely (or is partly delivery acceptable)?
VolumeDiscount Double
The total volume discount amount for the order/quote. This value is calulated, and is not stored in the database.
VolumeDiscountPercent Double

							
LockedFordelivery Boolean
Is the element locked for delivery?
MobileConsignment WideString
Mobile phone number for consignment notification
Struct SaleslineIdentStruct

The following table lists the fields defined in "SaleslineIdentStruct":

Field Data Type Documentation
Vnumber Integer

							
Struct SaleslineStruct

The following table lists the fields defined in "SaleslineStruct":

Field Data Type Documentation
Salestype TSalestype

							
Salesnumber WideString

							
Vnumber Integer

							
RefTxt WideString

							
Code WideString

							
RecId Integer

							
DeliveredStatus Integer

							
QtyOrdered Double

							
QtySupplied Double

							
Costprice Double

							
Grossprice Double
The stored gross price or the standard gross price if not saved yet.
NetPrice Double
The stored neprice or the standard netprice is not saved yet.
Freight Double

							
Total Double

							
Width Double

							
Height Double

							
Length Double

							
Description WideString
The complete description inclusive eventual text entered by the user (Sales Comment)
DesignErrorText WideString
Design error text for this particular line and eventual sub-lines.
DesignWarningText WideString
Warning for this particular line and eventual sub-lines
DesignInformationText WideString
Informational text for this particular line and eventual sub-lines
SquareMeasureText WideString

							
UValueText WideString

							
SalesComment WideString
User added comment.
EndUserPrice Double

							
StandardGrossPrice Double
Standard grossprice according to rules.
QtyCancelled Double
Quantity cancelled.
QtyOrdered_Ex_Cancelled Double
Quantity that will be delivered to the customer.
QtyOrdered_ToStock Double
Quantity that will be produced to stock due a cancelation.
SquareMetersArea Double
The area in square meter of the product. Readonly.
UValue Double
U-Value for the product.
LineNo Integer
This the linenumer whitin the quote/order
ProductType TProductType

							
Batchno WideString
The assigned batchnumber for production
Posno Integer
Positionnumber whitin the batchnumber (Batchno)
BatchGroup Integer
Batchgroup id
Stockloc WideString
Reference to stocklocation
Department WideString

							
Centre WideString

							
Purpose WideString

							
ItemGroup WideString
Reference to itemgroup
Supplier WideString

							
Itemnumber WideString
The itemnumber if the line is sold (or produced to) from stock.
Status Integer
Status of the line:
 0 = New line
 5 = Quote printed
10 = Confirmed printed
15 = Changed after confirmation
20 = Piclist printed
25 = Changed after picklist
30 = Delivered but with rests
40 =
50 = Completed (delivered)
Bonus Integer
Is this line part of the bonus basis? 1=yes
NOBB WideString
NOBB itemnumber
BatchStatus Integer

							
CHP_Status WideString
Checkpoint status string
EAN13 WideString
GTIN-13 itemnumber (previously EAN13).
GrossVolume Double

							
NetVolume Double

							
QtyInvoiced Double

							
InvoiceStatus Integer
Invoice status for the item: 1=Marked for export 2=Exported 3=Completed 4=Partly invoiced
Parent_Vnumber Integer
Reference to the parent salesline if this line is a subline. Otherwise it's 0.
AutoLineInfo AutolineInfoStruct
Extra information about this salesline if it is a Autoline (ProductType=prtAutoline)
VolumeDiscount Double
Volume discount amount. The difference between gross price and net price that is due to volume discount.
Weight Double
The calculated unit weight.
Circumference Double
The product circumference/perimeter.
BrandDescription WideString
The complete branded description inclusive eventual text entered by the user (Sales Comment)
This contains text only if the quote/order is assigned a brand
ExternalSaleslineId Int64
Reference to external salesline (ExternalSalesline table)
Pcode WideString
Pricelist code.
Matching_Itemnumber WideString
An itemnumber that this line has a match. If it is selected the Itemnumber field will also be set. See also Matching_Stockloc.
Matching_Stockloc WideString
The stock location that corresponds to Matching_Itemnumber
PCBGlassQty Integer
The number of glass that will go into the basis for the Norwegian PCB duty calculation
StandardNetprice Double
Standard net price for the salesline according to rules, priceliste, campaign, disount etc.
StandardCostprice Double
Standard costprice for the salesline according rules. If the pricelist has costprice it will be it, otherwise it's the calculated costprice.
TotalDepth Double
The constructions total depth inclusive all layers and eventual mounted jambs
Struct SaleslineStructOS

The following table lists the fields defined in "SaleslineStructOS":

Field Data Type Documentation
RowIndex Integer
The salesline object rownumber in the OrderService. To be used by slSetCurrent etc.
Struct SalesNotesStruct

The following table lists the fields defined in "SalesNotesStruct":

Field Data Type Documentation
Description WideString

							
DescriptionRTF WideString

							
Salescomment WideString

							
SalescommentRTF WideString

							
Internal WideString

							
InternalRTF WideString

							
Proddescription WideString

							
ProddescriptionRTF WideString

							
InvoiceDescription WideString

							
InvoiceDescriptionRTF WideString

							
PurchaseComment WideString

							
PurchaseCommentRTF WideString

							
DamageDescription WideString

							
DamageDescriptionRTF WideString

							
Dealer WideString

							
DealerRTF WideString

							
Enduser WideString

							
EnduserRTF WideString

							
Invoice WideString
Text to come on the Invoice.
InvoiceRTF WideString
Text to come on the Invoice in RTF format.
WebDealer WideString
A text for external (dealer) use.
WebDealerRTF WideString
A text for external (dealer) use in RTF format.
Delivery WideString

							
DeliveryRTF WideString

							
Struct SelectionAreaIdRecStruct

The following table lists the fields defined in "SelectionAreaIdRecStruct":

Field Data Type Documentation
ProductId Int64
Random ID of the product if several porudtc are integrated.
SquareId SquareIdStruct

							
Level LevelEnum

							
ElementKind TElementKind

							
ElementNum Integer

							
Struct SendReportByEmailStruct

The following table lists the fields defined in "SendReportByEmailStruct":

Field Data Type Documentation
DoSendByEmail Boolean
Should the report be sent by E-mail? If true the EmailParameter has to be filled.
OnlyByEmail Boolean
If true, no files will be returned or put in the cache.
EmailParameter paraSendEmail

							
Struct SMSRecipient

The following table lists the fields defined in "SMSRecipient":

Field Data Type Documentation
Phonenumber WideString
The phone number to the recipient
Struct SquareIdStruct

The following table lists the fields defined in "SquareIdStruct":

Field Data Type Documentation
Square1 Integer

							
Square2 Integer

							
Square3 Integer

							
Square4 Integer

							
Struct StandardProductInfoSizeStruct

The following table lists the fields defined in "StandardProductInfoSizeStruct":

Field Data Type Documentation
Width Double
Width in millimeter
Height Double
Height in millimeter
Abbrevation WideString
An abbreviation for this particular size.
Itemnumber WideString
If Itemnumber is not empty, this size is stockable.
StockInfo StockStruct
Infromation about stocklevels for the article (identified by Itemnumber).
PricelistPrice Currency
The grossprice from the pricelist for the given pricelist
EAN WideString
The EAN-13 number for this size.
NOBB WideString
The NOBB article number for this size.
Struct StockStruct

The following table lists the fields defined in "StockStruct":

Field Data Type Documentation
Itemnumber WideString

							
Stocklocation WideString

							
QtyInStock Double
Quantity in stock at the moment
QtyOrdered Double
Quantity bound to salesorders (outbound)
QtyInProduction Double
Quantity in production (inbound)
QtySupply Double
Quantity on order from purchases (inbound)
QtyAvailable Double
Quantity available. That is QtyInStock - QtyOrdered + QtyInProduction + QtySupply.
Struct StoreToTableColumnMapping

The following table lists the fields defined in "StoreToTableColumnMapping":

Field Data Type Documentation
ColumnName WideString
The column name in the table
IsIdentifier Boolean
The service will try to delete records in the table based on columns with IsIdentifer=True
ValueType TStoreToTableValueType
Indication of value type to be stored in the column
Value Variant
Value depends on the ValueType.
Struct TColumn

The following table lists the fields defined in "TColumn":

Field Data Type Documentation
Name WideString
The name of the column
CharSize Integer
The length in chars for string columns
DataType TColumnDataType
The column datatype
Optional Boolean
True if the column can be null
Precision Integer
Number columns are declared as Number(Precision,Scale)
Scale Integer
Number columns are declared as Number(Precision,Scale)
Struct TDocumentLinkInfo

The following table lists the fields defined in "TDocumentLinkInfo":

Field Data Type Documentation
CategoryId Int64
Category Id for the document.
CategoryName WideString
Category Name for the document.
Description WideString
Description of the document.
DocumentSource TDocumentSource
The source of the document.
0=DocumentArchive, 1=SalesHeaderDocuments, 2=ProjectDocuments.
FileMimeType WideString
File MimeType of the document.
URI WideString
An id to be used to reference the document from the CwServer document dispatcher
FileName WideString
Filename of the document
Id Int64
Id in the database table where the document is stored.
LinkSource TDocumentLinkSource
Identifies the document link source type.
0=SalesHeader, 1=Project, 2=Product, 3=Item, 4=Option, 5=Component.
LinkSourceDescription WideString
Description of the document link source.
TagNames TTagNameArray
TagNames names for the document.
Struct TDrawingImageOptions

The following table lists the fields defined in "TDrawingImageOptions":

Field Data Type Documentation
Struct TimeZoneStruct

The following table lists the fields defined in "TimeZoneStruct":

Field Data Type Documentation
Id WideString
The name of the time zone registry key on the server.
Status DSTEnum
Current status of Daylight Saving Time.
Bias Integer
The current bias for local time translation (UTC to local) on the server, in minutes.
StandardName WideString
A description for standard time.
StandardBias Integer
The bias value to be used during local time translations that occur during standard time. This value is added to the value of the Bias to form the bias used during standard time. In most time zones, the value of this member is zero.
DaylightName WideString
A description for daylight saving time (DST)
DaylightBias Integer
The bias value to be used during local time translations that occur during daylight saving time. This value is added to the value of the Bias member to form the bias used during daylight saving time. In most time zones, the value of this member is -60.
Struct TInventoryCommonItem

The following table lists the fields defined in "TInventoryCommonItem":

Field Data Type Documentation
Itemnumber WideString

							
Qty Double

							
Struct TInventoryCorrectionItem

The following table lists the fields defined in "TInventoryCorrectionItem":

Field Data Type Documentation
Struct TInventoryStocktakingItem

The following table lists the fields defined in "TInventoryStocktakingItem":

Field Data Type Documentation
InventoryGroupId Integer

							
Struct TInventoryTransferItem

The following table lists the fields defined in "TInventoryTransferItem":

Field Data Type Documentation
FromStocklocation WideString

							
ToStocklocation WideString

							
TransferDate DateTime

							
Struct TStoreToInfo

The following table lists the fields defined in "TStoreToInfo":

Field Data Type Documentation
ColumnMappings StoreToTableColumnMappings

							
TableName WideString

							
Struct UserStruct

The following table lists the fields defined in "UserStruct":

Field Data Type Documentation
Userid Integer

							
Name WideString

							
Fullname WideString

							
Employee EmployeeStruct

							
Struct VariableValue

The following table lists the fields defined in "VariableValue":

Field Data Type Documentation
Name WideString
Name of the variable which the Value is for.
Value Variant
Value of the variable identified by Name.
Struct VolumeDiscountUpdateOptionsStruct

The following table lists the fields defined in "VolumeDiscountUpdateOptionsStruct":

Field Data Type Documentation
DoUpdate Boolean
Should the volume discount be updated?
UseOverrides Boolean
If True AmountLimit and DiscountPercent will be used instead of the volume disocunt rules defined in the system.
AmountLimit Currency
The currency amount that was passed to get this discountpercent. (currently if this field is greater than 0, information about the volumediscount will be shown in the CalWin construction form).
DiscountPercent Currency
The discount percent to use.
Struct WorklogStruct

The following table lists the fields defined in "WorklogStruct":

Field Data Type Documentation
Worklogid Int64

							
CwUser UserStruct

							
Qty Double

							
StartStop StartStopEnum

							
Errorcode Integer

							
Errortext WideString

							
Workinfo WorkStruct

							
Time DateTime

							
OperatorInfo EmployeeStruct

							
Parameters WideString

							
Struct WorkStruct

The following table lists the fields defined in "WorkStruct":

Field Data Type Documentation
WorkId Int64
Unique id of the Checkpoint.
Checkpoint CheckpointStruct

							
Qty Double
Total quantity for this Checkpoint on the orderline.
QtyFinished Double

							
QtyStarted Double

							
TimeFinished DateTime

							
TimeStarted DateTime

							
SaleslineIdent SaleslineIdentStruct
Pointer to the Salesline
Enums

The following table lists the Enums defined in "CalWinLibrary":

ActivityKindEnum

						
AppUpdateChangeTypeEnum
Used by the OnAppChangedEvent to tell why the event is rised.
AutoExpandRuleEnum
Should the variant category autoexpand (show childs)?
ChangeUsernameAndPasswordStatusEnum

						
CurrencyModeEnum
Which currency mode to use for price fields in the OrderService.
CwDiaryEventCategoryEnum

						
DBNotificationKindEnum

						
DiaryEventStateEnum
A diary events state.
DiaryEventTypeEnum

						
DrawingColorStyleEnum
Color styled used by slGetImage
DSTEnum
Daylight Saving Time status
EMailContentTypeEnum

						
EndUserPriceCalcRuleEnum
How enduserprice should be calculated
FeedbackTypeEnum

						
ImageFormat
Image format that a product drawing can be returned in.
InstallAppxResultEnum

						
LevelEnum

						
LoginUserStatusEnum

						
PropertyDetailsEnum

						
ReportDatatypeEnum

						
ReportExportFormat
Which format a report executed via the ReportService should be exported in.
SalesHeaderKind

						
SalesHeaderSourceEnum
The source of a CalWin quote/order/purchase etc.
SaleslineInformationKindEnum

						
SaleslineProductSource

						
SendNewPasswordStatusEnum

						
StartStopEnum
A chekpoint signing can be either; comment, start or stop. This type is used by the Worklog struct.
TColumnDataType

						
TcwPropertyType

						
TDocumentLinkSource

						
TDocumentSource

						
TElementKind
Component kind
TExecuteSQLInclude
Which elements to return in the ExecuteSQL operation
TInventoryKind

						
TProductType
Enumerated type for product type as stored in SALESLINE.PRODUCTTYPE
TQueryVariablesEditorType

						
TSalestype
CalWin has 9 sales types, ranging from quotes, orders, puarchase to re-production order.
Salestype is part of the primary key on the SalesHeader table
TStoreToTableValueType

						
TVariantKind

						
TViewSide

						
Enum ActivityKindEnum

The following table lists the values defined in "ActivityKindEnum":

Value Documentation
akUndefined

							
akPrintout

							
akChange

							
akLogEntry

							
akApointment

							
akNote

							
akVisit

							
akEmail

							
akPurchaseConfirmDate

							
akEdi

							
akSMS

							
akReceivedEMail

							
akLetter

							
akCwDealerQuote

							
akTask

							
akMachineLink

							
akEQuote

							
Enum AppUpdateChangeTypeEnum

The following table lists the values defined in "AppUpdateChangeTypeEnum":

Value Documentation
aucUpgrade

							
aucParameterChanged

							
aucUninstalled

							
aucActivated

							
aucDeactivated

							
Enum AutoExpandRuleEnum

The following table lists the values defined in "AutoExpandRuleEnum":

Value Documentation
aeNever

							
aeAlways

							
aeExpandIfHasValues

							
Enum ChangeUsernameAndPasswordStatusEnum

The following table lists the values defined in "ChangeUsernameAndPasswordStatusEnum":

Value Documentation
cusOK

							
cusUsernameInUse

							
cusInvalidPassword

							
cusUnknownUser

							
Enum CurrencyModeEnum

The following table lists the values defined in "CurrencyModeEnum":

Value Documentation
cmInstallationCurrency

							
cmUserLocationCurrency

							
Enum CwDiaryEventCategoryEnum

The following table lists the values defined in "CwDiaryEventCategoryEnum":

Value Documentation
decDefault

							
decFollowup

							
decTask

							
decAppointment

							
Enum DBNotificationKindEnum

The following table lists the values defined in "DBNotificationKindEnum":

Value Documentation
dnfkInsert

							
dnfkUpdate

							
dnfkDelete

							
Enum DiaryEventStateEnum

The following table lists the values defined in "DiaryEventStateEnum":

Value Documentation
tlsFree

							
tlsTentative

							
tlsBusy

							
tlsOutOfOffice

							
Enum DiaryEventTypeEnum

The following table lists the values defined in "DiaryEventTypeEnum":

Value Documentation
etNone

							
etPattern

							
etOccurrence

							
etException

							
etCustom

							
Enum DrawingColorStyleEnum

The following table lists the values defined in "DrawingColorStyleEnum":

Value Documentation
dcsColor

							
dcsBW

							
dcsGreyed

							
dcsGrayPen

							
Enum DSTEnum

The following table lists the values defined in "DSTEnum":

Value Documentation
dstUknown

							
dstStandard

							
dstDaylight

							
Enum EMailContentTypeEnum

The following table lists the values defined in "EMailContentTypeEnum":

Value Documentation
ectPlainText

							
ectHTML

							
Enum EndUserPriceCalcRuleEnum

The following table lists the values defined in "EndUserPriceCalcRuleEnum":

Value Documentation
eupcNone

							
eupcCostpriceAddition

							
eupcGrossMarginRate

							
eupcGrossDiscount

							
Enum FeedbackTypeEnum

The following table lists the values defined in "FeedbackTypeEnum":

Value Documentation
fbInfo

							
fbWarning

							
fbError

							
Enum ImageFormat

The following table lists the values defined in "ImageFormat":

Value Documentation
ifBmp

							
ifJpg

							
ifEmf

							
ifPng

							
Enum InstallAppxResultEnum

The following table lists the values defined in "InstallAppxResultEnum":

Value Documentation
iarNone

							
iarInstalled

							
iarUpgraded

							
Enum LevelEnum

The following table lists the values defined in "LevelEnum":

Value Documentation
levUndefined

							
levOne

							
levTwo

							
levThree

							
Enum LoginUserStatusEnum

The following table lists the values defined in "LoginUserStatusEnum":

Value Documentation
lusOk

							
lusUnknowUsername

							
lusWrongPassword

							
lusPasswordExpired

							
lusNotAbleToLogin

							
Enum PropertyDetailsEnum

The following table lists the values defined in "PropertyDetailsEnum":

Value Documentation
evdNone

							
evdItems

							
evdItemsAndSelections

							
Enum ReportDatatypeEnum

The following table lists the values defined in "ReportDatatypeEnum":

Value Documentation
dtBoolean

							
dtDate

							
dtTime

							
dtDateTime

							
dtInteger

							
dtSingle

							
dtDouble

							
dtExtended

							
dtCurrency

							
dtChar

							
dtString

							
dtVariant

							
dtLongint

							
dtBlob

							
dtMemo

							
dtGraphic

							
dtNotKnown

							
dtLargeInt

							
dtGuid

							
Enum ReportExportFormat

The following table lists the values defined in "ReportExportFormat":

Value Documentation
refPDF

							
refRTF

							
refHTML

							
refBMP

							
refJPEG

							
refEMF

							
refExcel

							
refGIF

							
refWMF

							
refXHTML

							
refText

							
refTextLayout

							
refPDFOld

							
refXLSData

							
refXLSX

							
refXLSXData

							
refRAF

							
refDOCX

							
Enum SalesHeaderKind

The following table lists the values defined in "SalesHeaderKind":

Value Documentation
shkQuotation

							
shkOrder

							
shComplaintOrder

							
Enum SalesHeaderSourceEnum

The following table lists the values defined in "SalesHeaderSourceEnum":

Value Documentation
shsCalWin

							
shsWEB

							
shsEDI

							
Enum SaleslineInformationKindEnum

The following table lists the values defined in "SaleslineInformationKindEnum":

Value Documentation
sikSalesComment

							
Enum SaleslineProductSource

The following table lists the values defined in "SaleslineProductSource":

Value Documentation
psProduct

							
psStandardProduct

							
psStocktable

							
psSemistock

							
Enum SendNewPasswordStatusEnum

The following table lists the values defined in "SendNewPasswordStatusEnum":

Value Documentation
snpsOK

							
snpsUnknownUsername

							
snpsInvalidEmailAddress

							
Enum StartStopEnum

The following table lists the values defined in "StartStopEnum":

Value Documentation
ssComment

							
ssStarted

							
ssFinished

							
Enum TColumnDataType

The following table lists the values defined in "TColumnDataType":

Value Documentation
Integer

							
Float

							
otString

							
Long

							
Date

							
LongRaw

							
Boolean

							
CLOB

							
NCLOB

							
BLOB

							
BFile

							
Cursor

							
otObject

							
Reference

							
Char

							
PLSQLString

							
Subst

							
Timestamp

							
Varchar2

							
Number

							
Varchar

							
RowId

							
Raw

							
MLSLabel

							
RowidDesc

							
TimestampTZ

							
TimestampLTZ

							
IntervalYM

							
IntervalDS

							
BinaryFloat

							
BinaryDouble

							
Unknown

							
Enum TcwPropertyType

The following table lists the values defined in "TcwPropertyType":

Value Documentation
ptString

							
ptUpperCaseString

							
ptInteger

							
ptFloat

							
ptDate

							
ptIntBoolean

							
ptText

							
ptGraphics

							
Enum TDocumentLinkSource

The following table lists the values defined in "TDocumentLinkSource":

Value Documentation
SalesHeader

							
Project

							
Product

							
Item

							
Option

							
Component

							
Archive

							
Enum TDocumentSource

The following table lists the values defined in "TDocumentSource":

Value Documentation
DocumentArchive

							
SalesHeaderDocuments

							
ProjectDocuments

							
Enum TElementKind

The following table lists the values defined in "TElementKind":

Value Documentation
ekUndefined

							
ekFrameElement

							
ekSashElement

							
ekTransom

							
ekMullion

							
ekHorBar

							
ekVertBar

							
ekHinge

							
ekLock

							
ekStain

							
ekTrim

							
ekJamb

							
ekGlass

							
ekPanel

							
ekSill

							
ekGlazingBead

							
ekSile

							
ekEdgeList

							
ekPiece

							
ekPieceDoorBlade

							
ekLayer

							
ekSpandrel

							
ekHorSileDivider

							
ekVertSileDivider

							
ekBrake

							
ekVent

							
ekOutsideStain

							
ekInsideStain

							
ekGrilleSashElement

							
ekAstragal

							
ekGasket

							
ekWindowStool

							
ekPieceFrame

							
ekPieceSash

							
ekPieceGrilleSash

							
ekPieceEdgelist

							
ekPieceGasket

							
ekPieceJamb

							
ekPieceTrim

							
ekPieceTranMullSquare

							
ekPieceBarSquare

							
ekPieceGrilleSquare

							
ekPieceSileDividerSquare

							
ekHorGrille

							
ekVertGrille

							
ekExtra

							
ekPieceInclinedEnd

							
ekSimpleProductElement

							
ekChildElement

							
ekFrameFastning

							
ekFrameBead

							
ekPieceFrameBead

							
ekScreen

							
ekPieceScreen

							
ekFireList

							
ekCasingBead

							
ekHingeDir

							
ekCoupler

							
ekProfile

							
ekDrainageBead

							
ekPieceDrainageBead

							
ekTrim2

							
ekSashFraming

							
ekPieceSashFraming

							
ekGlassSpacer

							
ekGlassGas

							
ekPieceArced

							
ekWindowShade

							
ekGlassPane

							
ekGlazingMethod

							
ekGasket2

							
ekPieceGasket2

							
ekPieceGlazingBead

							
ekPieceFrameSquare

							
ekDrainageHole

							
ekGlassFilm

							
ekGlassObscure

							
ekPackers

							
ekSashLead

							
ekStackPanel

							
ekJambOutside

							
ekPieceJambOutside

							
ekHeadDripExtension

							
ekSillDripExtension

							
ekSweeperGasket

							
ekPieceExtra

							
ekHorGrilleInside

							
ekVertGrilleInside

							
ekMailSlot

							
ekPeepHole

							
ekPanelDecor

							
ekKickPlate

							
ekGlassGasket

							
ekPieceProduct

							
ekPiecePreparedFor

							
ekFrameGuard

							
ekSashEdgeGuard

							
ekPushPlate

							
ekColorContrastFilm

							
ekSlidingDoorSystem

							
ekPieceSashStruct

							
ekPanelDecorTrim

							
ekPanelDecorPlate

							
ekGroove

							
ekFrameFastningCover

							
ekGrilleBondingTape

							
ekGlassSealant

							
ekDoorFurniture

							
ekArchSegment

							
ekSteelCore

							
ekHorGrilleInGlass

							
ekVertGrilleInGlass

							
ekPieceGlazingBeadStruct

							
ekPieceBarModel

							
ekPieceUserDefinedArea

							
ekFrameStop

							
ekPieceFrameStop

							
ekGeneral

							
ekPieceGrilleSquareArea

							
Enum TExecuteSQLInclude

The following table lists the values defined in "TExecuteSQLInclude":

Value Documentation
All

							
Data

							
ColumnDefinitions

							
Enum TInventoryKind

The following table lists the values defined in "TInventoryKind":

Value Documentation
ikInventory

							
ikTransfer

							
ikCorrection

							
Enum TProductType

The following table lists the values defined in "TProductType":

Value Documentation
prtRegular

							
prtCw65Product

							
prtRawMaterial

							
prtLengthMeterBased

							
prtLengthQtyBased

							
prtDiscount

							
prtSemistock

							
prtPCBTax

							
prtSelectedParts

							
prtStockTableSumLine

							
prtSubLineSumLine

							
prtTotalDiscount

							
prtCancellationCharge

							
prtAutoline

							
prtFacade

							
Enum TQueryVariablesEditorType

The following table lists the values defined in "TQueryVariablesEditorType":

Value Documentation
qveText

							
qveDate

							
qveInteger

							
qveFloat

							
qveComboValue

							
qveComboIndex

							
qveComboSQLValue

							
Enum TSalestype

The following table lists the values defined in "TSalestype":

Value Documentation
otQuote

							
otOrder

							
otStock

							
otComplaint

							
otDelivery

							
otPurchase

							
otInternalOrder

							
otReturnorder

							
otReproduction

							
Enum TStoreToTableValueType

The following table lists the values defined in "TStoreToTableValueType":

Value Documentation
stFileContent

							
stFileName

							
stFilenameNoExtension

							
stValue

							
Enum TVariantKind

The following table lists the values defined in "TVariantKind":

Value Documentation
vkNone

							
vkAstragal

							
vkBar

							
vkBarFrame

							
vkBarModel

							
vkBasic

							
vkCasingBead

							
vkCladding

							
vkColorContrastFilm

							
vkCoupler

							
vkDoorFurniture

							
vkDrainageBead

							
vkDrainageHole

							
vkEdgeList

							
vkExtras

							
vkFireList

							
vkFormBar

							
vkFrame

							
vkFrameBead

							
vkFrameDripExtension

							
vkFrameFastning

							
vkFrameFastningCover

							
vkFrameGuard

							
vkGasket

							
vkGlass

							
vkGlassFilm

							
vkGlassGas

							
vkGlassGasket

							
vkGlassObscure

							
vkGlassSealant

							
vkGlassSpacer

							
vkGlazingBead

							
vkGlazingMethod

							
vkGrille

							
vkGrilleBondingTape

							
vkGroove

							
vkHinge

							
vkHingeDir

							
vkJamb

							
vkKickPlate

							
vkLock

							
vkMailSlot

							
vkMaterial

							
vkMullion

							
vkPackers

							
vkPanel

							
vkPanelDecor

							
vkPanelDecorPlate

							
vkPanelDecorTrim

							
vkPeepHole

							
vkProfile

							
vkPushPlate

							
vkSash

							
vkSashBottom

							
vkSashEdgeGuard

							
vkSashFraming

							
vkScreen

							
vkSileDividers

							
vkSill

							
vkSlidingDoorSystem

							
vkSpandrel

							
vkStainColor

							
vkStainType

							
vkSteelCore

							
vkSweeperGasket

							
vkTransom

							
vkTrim

							
vkVent

							
vkWindowShade

							
vkWindowStool

							
vkFrameStop

							
vkGeneral

							
Enum TViewSide

The following table lists the values defined in "TViewSide":

Value Documentation
vsDefault

							
vsFromOutside

							
vsFromInside

							
Arrays

The following table lists the Arrays defined in "CalWinLibrary":

Array Element Type Documentation
AppGetAppParameterRequestArray AppGetAppParameterRequest

						
AppParameterArray AppParameter

						
AppParameterRecordArray AppParameterRecord

						
AppParameterValueRecordArray AppParameterValue

						
AppUserRightArray AppUserRightStruct

						
BinaryFiles BinaryFile
Array of BinaryFiles. Used when returning several files from a method.
CalWinUserIds Int64
A list of CalWin user id numbers. (USERS.USERID)
ChildArray ChildStruct

						
DistributionGroupIds Int64
A list of CalWin Distribution id numbers. (USERDISTRIBUTIONGROUP.ID)
DocidArray Integer
A list of CalWin Document id numbers. (DOCUMENTS.DOCID)
DocumentArray DocumentStruct

						
EmailRecipients EmailRecipient

						
FeedbackArray FeedbackStruct

						
FieldDataArray FieldDataStruct

						
FieldDisplayDataArray FieldDisplayDataStruct

						
FindSimilarArray FindSimilarStruct

						
GoodsDeliveryLines GoodsDeliverLine

						
LocationSalesDatesArray LocationSalesDatesStruct

						
NotificationDataArray NotificationDataStruct

						
NotificationRecipientArray NotificationRecipientStruct

						
NotificationValueArray NotificationValueStruct

						
ParameterArray ParameterStruct

						
ProductcodeArray ProductCodeStruct

						
PropertyCategoryArray PropertyCategory

						
PropertyItemAlternativeArray PropertyItemAlternative

						
PropertyItemAlternativeExtraValueInfoArray PropertyItemAlternativeExtraValueInfo

						
PropertyItemArray PropertyItem

						
PropertyUpdateArray PropertyUpdateStruct

						
QueryVariableArray QueryVariableStruct

						
ReportExportFileList ReportExportFile

						
ReportPackageArray ReportPackageStruct

						
ReportParameterArray ReportParameterStruct

						
ReportTemplateList WideString

						
RowdataDisplayArray RowdataDisplayStruct

						
SaleslineStructOSArray SaleslineStructOS

						
SelectionAreaIdRecArray SelectionAreaIdRecStruct

						
SMSRecipients SMSRecipient

						
StandardProductInfoSizeArray StandardProductInfoSizeStruct

						
StoreToTableColumnMappings StoreToTableColumnMapping

						
StringArray WideString
A generic string array
TColumns TColumn

						
TDocumentLinkInfoArray TDocumentLinkInfo

						
TInventoryCorrectionItems TInventoryCorrectionItem

						
TInventoryStocktakingItems TInventoryStocktakingItem

						
TInventoryTransferItems TInventoryTransferItem

						
TRecord Variant

						
TRecords TRecord

						
TROArray_System_Integer_ Integer

						
TTagNameArray WideString

						
UserIdArray Integer
An array of CalWin user ids.
VariableValues VariableValue
Array of VariableValue
VariantArray Variant
A generic variant (untyped) array
WorklogStructArray WorklogStruct
A array of WorklogStruct. A WorklogStruct represents a checkpoint signing with time, employee, qty etc.
WorkStructArray WorkStruct
An array of WorkStructs.
Exceptions

The following table lists the Exceptions defined in "CalWinLibrary":

EAppException
This is the base exception class for all exceptions raised by CalWin Server logic, and not CalWin.
EBusinessObjects(ECustomException)

						
EConsignmentNotFound(EConsignmentServiceException)
Raised if methods (lik Load) dont find the given consignmnetnumber.
EConsignmentServiceException(ECustomException)
Base Exception for the ConsignmentService. All other exceptions derived from this.
ECustomException

						
ELoginService(ECustomException)

						
ELogisticsService(EAppException)

						
EMachinelinkService(EAppException)

						
EMessageService(EAppException)
Base exception class for exception in the MessageService.
EMessageService_SendMessage(EMessageService)
Expcetion that is thrown by the MessageService.SendMessage method.
EMiscServiceSession(EAppException)

						
EMiscServiceSession_Activity(EMiscServiceSession)
Base exception class for MiscServiceSession.GetActivity and MiscServiceSession.AddOrUpdateActivity.
EMiscServiceSession_Activity_NonExistence(EMiscServiceSession_Activity)
Exception thrown if a non existing activty is referenced.
EMiscServiceSession_Diary(EMiscServiceSession)
Exception thrown by MiscServiceSession.GetDiaryEvent og MiscServiceSession.AddOrUpdateDiaryEvent.
EMiscServiceSession_Diary_UnknownEventId(EMiscServiceSession_Diary)
Thrown if the referred Diary Event Id does not exists.
EMiscServiceSession_Parameters(EMiscServiceSession)
Exception thrown by MiscServiceSession.UpdateParameter or MiscServiceSession.SaveParameters.
ENotificationService(EAppException)
Base exception class for NotificationServices
ENotificationService_GetNextDBChange(ENotificationService)
Exception raised by the NotificationService.GetNextDBChange method
EObjectStateError(EBusinessObjects)
Will be thrown if a method is not allowed for a given state of the server object.
EOrderService(ECustomException)
Generic OrderService Exception
EPathError(EBusinessObjects)
Raised if something is wrong with the path argument in the Delete, InsertChild, Refetch or Update operations.
EQueueDispatcher(ECustomException)

						
EReadOnlyProperty(EBusinessObjects)
Raised when an update is tried on a read only property.
EReportService(EAppException)
Base exception class for exceptiona in the ReportService.
EServerObjectNotFound(EBusinessObjects)

						
EServiceNotImplemented(ECustomException)
Raised if a published service is not implemented yet.
EUnknownPropertyName(EBusinessObjects)
Raised when Update i called with a property name that is unknown for the business object.
Exception EAppException

The following table lists the fields defined in "EAppException":

Field Data Type Documentation
Exception EBusinessObjects

The following table lists the fields defined in "EBusinessObjects":

Field Data Type Documentation
Exception EConsignmentNotFound

The following table lists the fields defined in "EConsignmentNotFound":

Field Data Type Documentation
Exception EConsignmentServiceException

The following table lists the fields defined in "EConsignmentServiceException":

Field Data Type Documentation
Exception ECustomException

The following table lists the fields defined in "ECustomException":

Field Data Type Documentation
Exception ELoginService

The following table lists the fields defined in "ELoginService":

Field Data Type Documentation
Exception ELogisticsService

The following table lists the fields defined in "ELogisticsService":

Field Data Type Documentation
Exception EMachinelinkService

The following table lists the fields defined in "EMachinelinkService":

Field Data Type Documentation
Exception EMessageService

The following table lists the fields defined in "EMessageService":

Field Data Type Documentation
Exception EMessageService_SendMessage

The following table lists the fields defined in "EMessageService_SendMessage":

Field Data Type Documentation
Exception EMiscServiceSession

The following table lists the fields defined in "EMiscServiceSession":

Field Data Type Documentation
Exception EMiscServiceSession_Activity

The following table lists the fields defined in "EMiscServiceSession_Activity":

Field Data Type Documentation
Exception EMiscServiceSession_Activity_NonExistence

The following table lists the fields defined in "EMiscServiceSession_Activity_NonExistence":

Field Data Type Documentation
ActivityId Int64
The activity id that is unknown to the system.
Exception EMiscServiceSession_Diary

The following table lists the fields defined in "EMiscServiceSession_Diary":

Field Data Type Documentation
Exception EMiscServiceSession_Diary_UnknownEventId

The following table lists the fields defined in "EMiscServiceSession_Diary_UnknownEventId":

Field Data Type Documentation
EventId Int64
The give EventId that don't exists.
Exception EMiscServiceSession_Parameters

The following table lists the fields defined in "EMiscServiceSession_Parameters":

Field Data Type Documentation
Exception ENotificationService

The following table lists the fields defined in "ENotificationService":

Field Data Type Documentation
Exception ENotificationService_GetNextDBChange

The following table lists the fields defined in "ENotificationService_GetNextDBChange":

Field Data Type Documentation
Exception EObjectStateError

The following table lists the fields defined in "EObjectStateError":

Field Data Type Documentation
Exception EOrderService

The following table lists the fields defined in "EOrderService":

Field Data Type Documentation
Exception EPathError

The following table lists the fields defined in "EPathError":

Field Data Type Documentation
Exception EQueueDispatcher

The following table lists the fields defined in "EQueueDispatcher":

Field Data Type Documentation
Exception EReadOnlyProperty

The following table lists the fields defined in "EReadOnlyProperty":

Field Data Type Documentation
PropertyName WideString

							
Exception EReportService

The following table lists the fields defined in "EReportService":

Field Data Type Documentation
Exception EServerObjectNotFound

The following table lists the fields defined in "EServerObjectNotFound":

Field Data Type Documentation
Exception EServiceNotImplemented

The following table lists the fields defined in "EServiceNotImplemented":

Field Data Type Documentation
Exception EUnknownPropertyName

The following table lists the fields defined in "EUnknownPropertyName":

Field Data Type Documentation
PropertyName WideString

							
Used RODL Files

The following table lists the external RODL files used by library "CalWinLibrary":