Skip to content

KVSPSAUserSetupManagement#

Procedures#

CheckRespCenterJob(Code[10]) : Boolean#

Summary: Checks if a responsibility center is valid for the current user.

procedure CheckRespCenterJob(AccRespCenter: Code[10]): Boolean

Parameters:

  • AccRespCenter: The responsibility center to check.

Returns: Returns true, if the checked responsibility center is valid for the current user.

GetJobFilter() : Text#

Summary: Gets a filter for jobs user responsibility center for the current user.

procedure GetJobFilter(): Text

Returns: Returns a filter for jobs user responsibility center.

GetJobsUserRespCenterFilter(Code[50]) : Code[10]#

Summary: Gets the jobs user responsibility center of the current user or the default responsibility center of the company information.

procedure GetJobsUserRespCenterFilter(UserCode: Code[50]): Code[10]

Parameters:

  • UserCode: The user to find a jobs user responsibility center for.

Returns: Returns a jobs user responsibility center or the default responsibility center of the company information.

GetRespCenterJob(Code[10]) : Code[10]#

Summary: Gets the jobs user responsibility center of the current user or the passed responsibility center. A message is thrown if the job user responsibility center of the current user is different to the passed responsibility center.

procedure GetRespCenterJob(AccRespCenter: Code[10]): Code[10]

Parameters:

  • AccRespCenter: The passed responsibility center for checks against the jobs user responsibility center of the current user.

Returns: Returns a jobs user responsibility center or the passed responsibility center.

Events#

KVSPSAOnBeforeCheckRespCenterJob(Code[10], Boolean, Boolean) :#

Summary: Runs before checking if a responsibility center is valid for the current user.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckRespCenterJob(AccRespCenter: Code[10]; var ReturnValue: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUserSetupManagement", 'KVSPSAOnBeforeCheckRespCenterJob', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckRespCenterJob(AccRespCenter: Code[10]; var ReturnValue: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • AccRespCenter: The responsibility center to check
  • ReturnValue: Sets if the checked responsibility center is valid for the current user
  • IsHandled: Sets if the default code should be disregarded

KVSPSAOnBeforeGetJobFilter(Text, Boolean) :#

Summary: Runs before getting a filter for jobs user responsibility centers for the current user.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeGetJobFilter(var JobUserRespCenterFilter: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUserSetupManagement", 'KVSPSAOnBeforeGetJobFilter', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeGetJobFilter(var JobUserRespCenterFilter: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • JobUserRespCenterFilter: Sets the returned filter for jobs user responsibility center
  • IsHandled: Sets if the default code should be disregarded

KVSPSAOnBeforeGetJobsUserRespCenterFilter(Code[50], Code[10], Boolean) :#

Summary: Runs before getting the jobs user responsibility center of the current user or the default responsibility center of the company information.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeGetJobsUserRespCenterFilter(UserCode: Code[50]; var JobUserRespCenter: Code[10]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUserSetupManagement", 'KVSPSAOnBeforeGetJobsUserRespCenterFilter', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeGetJobsUserRespCenterFilter(UserCode: Code[50]; var JobUserRespCenter: Code[10]; var IsHandled: Boolean)
begin
end;

Parameters:

  • UserCode: The user to find a jobs user responsibility center for
  • JobUserRespCenter: The jobs user responsibility center to return
  • IsHandled: Sets if the default code should be disregarded