Code Error in Custom Widget

Hello~!

We are trying to build a dynamic auto label print that triggers off ReadyToInvoice. Our code is giving this error, however: “BPM009 Member declaration is not allowed inside code block.”

Please see attached for what we have so far.

Thank you.

ChooseLabels.cs (556 Bytes)

Dropped the error message into Search and found this…solution mentions use of a function inside a method. Looping in @NateS as he opened that thread, maybe he has some recollection…

I did take a look at this. I think you want to use the func that is the answer in that thread. Here is some more information from one of the func masters, @klincecum. Func - Create DataTable From Table With Map - Little Quickie For you - Code Review / Sharing - Epicor User Help Forum