Dynamic variable based of incoming context values

Greetings,

I was wondering if it is currently possible to dynamically build a variable that would use several incoming values from context message.

As an example, i did buid a context message from a particular panel in M3 that sends 3 variables to a "stat widget". This widget is using EXPORTMI dataservice which requires variable QERY properly setup to run. QERY should use all variables coming from the InforContext.

QERY = xxxx from yyyy where zzWHLO = {id1} and zzITNO = {id2} and zzBANO = {id3}

Everything should be hard-coded except id1, id2, id3 coming from context message

Can we do this in OS portal ?

Thanks.