Hi all,
I've noticed I can't make objects transmit evaluations into channels, if that's the right way to put it - for example, if I have an object joined to a ComSys channel, it won't transmit the evaluated results of attributes containing softcode, it just transmits the plain text.
Example:
The object I use to handle updates to the SQL database (SQL Handler) has been joined to a channel called SysInfo, intended to inform admins of any returned SQL errors. The attribute on SQL Handler is as follows:
QUERY.S1: @if rserror()={@pemit %#=Rows: [rsrows()];@if rsrows()={@trig me/QUERY.S2}},{sysinfo Error: [rserror()]}
It does result in SQL Handler "speaking" on the SysInfo channel, but it just says the unevaluated string:
[SysInfo] SQL Handlers says, "Error: [rserror()]"
I have encountered this issue before, and enacted a workaround where the object creates a temporary attribute containing the results of an evaluation or the output returned from a function, sends that to the channel, then removes the attribute shortly afterwards, but this is obviously a little bit clunky. If it's the only way, then so be it, but I thought it was worth asking if anybody had come across this before and had a more elegant solution, or perhaps I'm missing something in my MUX config...
Thanks for reading!
/<