LINQ Query in Set Variable widget in Function

I’m trying to write a LINQ query to set a variable in a widget in a function. I can’t use Db.TableName. Is there a way I can do this or do I need to change to a custom code function and create a context, etc.?

Add RcvDtl to Tables

image

I wish it were that simple. I’ve got the table in there.

Did you set db access on the library page?

This is how I have it setup.

Add your function here.. Obviously blank out any intellectual property.

CustomizationHelpers.efxb (15.2 KB)

There’s not much to it. It’s the only function in the library and I only added one widget (which is the Set Variable widget I took a screenshot of).

Maybe I have something setup incorrectly. I knew of the two things you guys have suggested. But I am unaware of anything else.

Thanks!

Looks like Db is only allowed for widgets with code function type, not just for widgets.
If i create Widgets with Code function, i can verify that expression

OK - I can run with that. Thank you very much!! Didn’t even think of that.