Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
void pccBatchDataBeginWorkorders( long txnId )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which you want create a list of work orders


Info
titleExample


Code Block
pccBatchDataBeginWorkorders(cycle.TxnId);

will allow the session context field in the cycle UDR with the stated transaction ID to be populated with a list of work orders.

...

Code Block
void pccBatchDataAddWorkorder( long txnId, Workorder data )

Parameters

ParameterDescription

txnId

The transaction ID of the session context in which a work order should be added.

data

The work order to add.


Info
titleExample


Code Block
pccBatchDataAddWorkorder(txnId, wo);

will add the wo work order for the session context with the transaction ID determined by the txnID variable.

...

Code Block
void pccBatchDataBeginWorklog ( long txnId )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which you want to create a list of work logs.


Info
titleExample


Code Block
pccBatchDataBeginWorklogs(cycle.TxnId);

will create a list of work logs for the session context with the transaction ID given in the TxnId field in the cycle UDR.

...

Code Block
void pccBatchDataAddWorklog( long txnId, Worklog data )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which you want to add a work log.

data

The work log you want to add.


Info
titleExample


Code Block
pccBatchDataAddWorklog(txnId, wl);

will add the wl work order for the session context with the transaction ID determined by the txnID variable.

...

Code Block
void pccBatchDataAddWorklogs( long txnId, List<Worklog> data )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which you want to add a list of work logs.

data

The list of work logs you want to add.


Info
titleExample


Code Block
pccBatchDataAddWorklogs(txnId, logs);

will add the logs list with work orders for the session context with the transaction ID determined by the txnID variable.

...

Code Block
void pccBatchDataSuspendWorklogs( long txnId )

Parameters

ParameterDescription

txnID

The transaction ID of the session context for which to suspend work logs.


Info
titleExample


Code Block
pccBatchDataSuspendWorklogs((long) mapGet(sc, S_TXNID));

will suspend the work logs for the session context with the transaction ID returned by the mapGet function.

...

Code Block
void pccBatchDataResumeWorklogs( long txnId )

Parameters

ParameterDescription

txnID

The transaction ID of the session context for which to resume work logs.


Info
titleExample


Code Block
pccBatchDataResumeWorklogs(cycle.TxnId);

will resume the work logs for the session contexts with the transaction ID given in the TxnId field in the cycle UDR.

...

Code Block
list<Workorder> pccBatchDataGetWorkorders( long txnId )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which to retrieve a list with work orders.

Returns:

A list with work logs.


Info
titleExample


Code Block
list<Workorder> orders = pccBatchDataGetWorkorders(cycle.TxnId);

will return a list named orders containing the work orders for the session context with the transaction ID given in the TxnId field in the cycle UDR.

...

Code Block
list<Worklog> pccBatchDataGetWorklogs( long txnId )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which to retrieve a list with work logs.

Returns:

A list with work logs.


Info
titleExample


Code Block
list<Worklog> logs = pccBatchDataGetWorklogs(cycle.TxnId);

will return a list named logs containing the work logs for the session context with the transaction ID given in the TxnId field in the cycle UDR.

...

Code Block
void pccBatchDataRemove( long >txnId )

Parameters

ParameterDescription

txnId

The transaction ID of the session context for which you want to remove the batch


Info
titleExample


Code Block
pccBatchDataRemove((long) mapGet(sc, S_TXNID));

will remove the batch data for the session context with the transaction ID returned by the mapGet function.

Scroll pagebreak