Skip to content

Shop Floor Insight

passing Error Message data to shop floor insight

Viewing 2 posts – 1 through 2 (of 2 total)
  • Author
    Posts
  • #8900
    Maan M.

    I am extending Shop Floor insight to do some extra validation OnBeforeClockOnWithBarcodeData

    (var precActionResponse: Record “SFI Action Response Buffer”; precConfig: Record “SFI Client Configuration”; precEmployee: Record “SFI Employee”; precTimeCard: Record “SFI Time Card Header”; precBarcodeData: Record “SFI Barcode Entry”; var precMatchingLine: Record “SFI Time Card Line”; var pbHandled: Boolean)

     

    These are the parameters above. after certain conditions I display an error. Logic is working fine but executing the error code will only give an error message that the scan was not handled. I wonder if I can somehow provide to shop floor insight a more informative error message.

     

    #10734
    Terri V.
    Insight Works

    Hello Maan,

    Create a reference to the codeunit “SFI Action Response Builder”.

    SFIActionResponseBuilder: Codeunit “SFI Action Response Builder”;

    Using that reference call the procedure “AddErrorResponse”.

    procedure AddErrorResponse(var precResponse: Record “SFI Action Response Buffer”; ptxtErrorMessage: Text)

    SFIActionResponseBuilder.AddErrorResponse(
    precActionResponse,
    ‘Your Error Message Here’​
    );

    Thank you,

Viewing 2 posts – 1 through 2 (of 2 total)
  • Sign in below to reply.