> On 23 Jun 2020, at 19:39, MSV <[email protected]> wrote:
> 
> hi,
> as part of swp, we are logging some information when ever we process a file.
> we use below code for logging
> 
> <ui:group let:t1="{= smf:trace ('loading file {?filename} ')}"/>
> 
> now i would like to use global variable and print the same in the above trace 
> message.
> 
> want to use ui:globalVarValue but not able to use it correctly.
> can some one post an example for this ?

You'd want something like:

    smf:trace('loading file {?1}', ui:globalVarValue('filename'))

Depending on which version you are using, might be more convenient than 
smf:trace:

    <ui:log ui:info="loading file {= ?filename }"/>
    <ui:log ui:error="Error evaluating {= ui:globalVarValue('arg1') }"/>

Richard


> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/871f97f2-6b0e-4588-b315-01bf9baf5b00o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/871f97f2-6b0e-4588-b315-01bf9baf5b00o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/C6130D31-59AC-44AE-B8AA-8E6227F9CC6C%40topquadrant.com.

Reply via email to