Page 1 of 1

Custom attribute

Posted: Mon Jan 27, 2014 8:57 am
by johansamuelsson
Hi

In the example below I'm adding a description and printing it on screen (in row 3 and 4). But if I adding a custom attribute, for example "user", how can I get access to that information. I tried something in row 7, but that does not work?

Code: Select all

wfcreate u 1 series x x.label(d) GDP @uiprompt(x.@description) %user = @env("username") x.label("user") {%user} @uiprompt(x.@user)
Regards Johan

Re: Custom attribute

Posted: Mon Jan 27, 2014 9:05 am
by EViews Gareth

Code: Select all

x.setattr("user") {%user} %user2=x@attr("user")

Re: Custom attribute

Posted: Mon Jan 27, 2014 11:25 am
by johansamuelsson
Thanks, ps typo

Code: Select all

%user2=x.@attr("user")