New attribute for database objects?

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

New attribute for database objects?

Postby chester » Thu Jun 16, 2016 12:38 pm

When you right-click > 'Preview' an object in an EViews database, the default attributes shown are usually Description, Display Name and History. How do you add custom columns for metadata such as 'Source' or 'Units'?

Any help is appreciated. :D

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13315
Joined: Tue Sep 16, 2008 5:38 pm

Re: New attribute for database objects?

Postby EViews Gareth » Thu Jun 16, 2016 1:51 pm

The preview window lists all non-empty attributes. As long as the object has an attribute, the preview window will show it.
Follow us on Twitter @IHSEViews

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

Re: New attribute for database objects?

Postby chester » Fri Jun 17, 2016 7:19 am

How can I add an attribute though?
As far as I know, you can only specify leading columns to be Name or Description.
I just want a column that shows metadata when I click 'Preview'.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13315
Joined: Tue Sep 16, 2008 5:38 pm

Re: New attribute for database objects?

Postby EViews Gareth » Fri Jun 17, 2016 7:26 am

You add an attribute to the object in the object's label view. Once the object has that attribute and is stored in the database, the preview will display it.
Follow us on Twitter @IHSEViews

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

Re: New attribute for database objects?

Postby chester » Fri Jun 17, 2016 10:42 am

I've added the attribute in the Label view by typing it out in an empty row but when I store it in the DB and click Preview, it does not show the new attribute. Any reason why?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13315
Joined: Tue Sep 16, 2008 5:38 pm

Re: New attribute for database objects?

Postby EViews Gareth » Fri Jun 17, 2016 12:06 pm

Which version of EViews?
Follow us on Twitter @IHSEViews

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

Re: New attribute for database objects?

Postby chester » Mon Jun 20, 2016 12:03 pm

So I got it to work. I was trying to add the new attribute from the workfile window instead of in the object window.
My next question is whether it is possible to do this programmatically?
In other words, how can I get EViews to recognize a column in Excel and add it as custom attribute for the corresponding object?

Thanks Gareth.


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 11 guests