Share via


LedgerJournalTable.isWFUserPermittedToEdit Method

Indicates whether the current user is a valid workflow user for the current workflow status.

Syntax

public boolean isWFUserPermittedToEdit(WorkflowWorkItemTable _workflowWorkItemTable, [WorkflowUser _workflowUser])

Run On

Called

Parameters

  • _workflowWorkItemTable
    Type: WorkflowWorkItemTable Table
    A WorkflowWorkItemTable buffer that represents the work item associated to the current LedgerJournalTable buffer.

Return Value

Type: boolean
true if the current user can edit the journal in its current workflow approval state; otherwise, false.

Exceptions

Exception Condition
Error

The journal's workflow status is not correct for the use of this method.

Remarks

This method is used with journals that support workflow approvals.

The _workflowItemTable and the _workflowUser parameters are required when the LedgerJournalTable table WorkflowApprovalStatus field is in a LedgerJournalWFApprovalStatus::ChangeRequested state.

The _workflowWorkItem is needed because the user (the _workflowUser) attempting to edit the journal must be the user assigned to the workflow work item.

The _workflowUser parameter is required when the current user is not the user you want to validate against the workflow work item user.

See Also

Reference

LedgerJournalTable Table