Page 1 of 1
New attribute for database objects?
Posted: Thu Jun 16, 2016 12:38 pm
by chester
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
Re: New attribute for database objects?
Posted: Thu Jun 16, 2016 1:51 pm
by EViews Gareth
The preview window lists all non-empty attributes. As long as the object has an attribute, the preview window will show it.
Re: New attribute for database objects?
Posted: Fri Jun 17, 2016 7:19 am
by chester
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'.
Re: New attribute for database objects?
Posted: Fri Jun 17, 2016 7:26 am
by EViews Gareth
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.
Re: New attribute for database objects?
Posted: Fri Jun 17, 2016 10:42 am
by chester
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?
Re: New attribute for database objects?
Posted: Fri Jun 17, 2016 12:06 pm
by EViews Gareth
Which version of EViews?
Re: New attribute for database objects?
Posted: Mon Jun 20, 2016 12:03 pm
by chester
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.