Scan Barcode action: dynamic data in Context

Is it possible to supply variable arguments to the Scan Barcode action Context. As I can understand, I can only build a dictionary, where each field has a constant value. As an alternative, is there a system.perspective...... call that performs the same action, but with dynamic arguments?

Thanks in advance, regards

I'm using Ignition 8.1.21

1 Like

Here is an example where a user is dynamically controlling the context value by firing a separate event to pass a unique identifier into the onBarcodeDataReceived session event. I haven't worked with this at all, so I vouch for the efficacy of this solution, but at looks like it accomplishes what you are asking: