View of the objects

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

claudio
Posts: 5
Joined: Mon Mar 18, 2013 1:01 pm

View of the objects

Postby claudio » Mon Mar 18, 2013 1:12 pm

I wrote the following lines:
for !i=1 to !j
tobjetos(!i+1,1)=!i
tobjetos(!i+1,2)=%lista{!i}
tobjetos(!i+1,3)={%lista{!i}}.@type
tobjetos(!i+1,4)={%lista{!i}}.@description
next

I have a problem because when open any object on the archive eviews generated, this show the label and not the object (graph, table....)

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

Re: View of the objects

Postby EViews Gareth » Mon Mar 18, 2013 1:21 pm

That's a little cryptic. Could you provide more information?

claudio
Posts: 5
Joined: Mon Mar 18, 2013 1:01 pm

Re: View of the objects

Postby claudio » Mon Mar 18, 2013 1:38 pm

Ok. I wrote large program with 373 object: graphs, tables, svectors, and so on. Finally because i needed to write all description of the object I write the description
on the objects list on svector_lista_objetos:

svector_lista_objetos=@wsplit(@wlookup("*"))

for !i=1 to @rows(svector_lista_objetos)
%lista{!i}=svector_lista_objetos(!i)
svector_tipo_objetos(!i)={%lista{!i}}.@type
next
for !i=1 to 220
{%lista{!i}}.label(c)
next
for !i=303 to 343
{%lista{!i}}.label(c)
next
for !i=1 to !j
tobjetos(!i+1,1)=!i
tobjetos(!i+1,2)=%lista{!i}
tobjetos(!i+1,3)={%lista{!i}}.@type
tobjetos(!i+1,4)={%lista{!i}}.@description
next

the problem is that when I open any object on the eviews file generated for the program, the object show the following view the "Object Description", for example:
table: view "table description":
Name:
Display Name:
Last Update:
Description:
Source:
Units:
Remarks:

And if I want to see the object I have select: View>Table. I need please that when I open any object this it open on "object view" and not on "object description".

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

Re: View of the objects

Postby EViews Gareth » Mon Mar 18, 2013 2:23 pm

Ah, I see.

When you do the label(c) proc from an object it changes the current view to the label view, then when you next open the object by double clicking, it will be on that label view. Change all of your label(c) lines to be:

Code: Select all

do {%lista{!i}}.label(c)
The "do" at the front should stop the label view from becoming the default.

claudio
Posts: 5
Joined: Mon Mar 18, 2013 1:01 pm

Re: View of the objects

Postby claudio » Mon Mar 18, 2013 2:48 pm

Wonderful Gareth it works very good :D, thanks a lot.

Sorry, but I have other problem. Some objects: all descriptions "sample" object and a few descriptions "graph" objects not appears on the "Details +/-". The code that I used is for example:

{%lista136}.label(d) Gráfico de serie histórica

thanks.

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

Re: View of the objects

Postby EViews Gareth » Mon Mar 18, 2013 3:50 pm

Sorry, I'm not sure I follow what you mean.

claudio
Posts: 5
Joined: Mon Mar 18, 2013 1:01 pm

Re: View of the objects

Postby claudio » Tue Mar 19, 2013 4:02 pm

My problem is that I make two subroutines for graphs and sample and any description for this objects appears on "details +/-".

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

Re: View of the objects

Postby EViews Gareth » Tue Mar 19, 2013 4:29 pm

Still not sure what you're saying.

claudio
Posts: 5
Joined: Mon Mar 18, 2013 1:01 pm

Re: View of the objects

Postby claudio » Tue Mar 19, 2013 4:51 pm

Garreth,

I wrote the "description" to the object "graph" and "sample" with the following sentences:

{%lista136}.label(d) Gráfico de serie histórica

But the description no appears o I can´t see on the "Details +/-". I think that graphs and sample that I can´t see the descriptions were generated with
two subroutines or command fail on this 2 objtect: graph and sample.

Do you understand me now?

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

Re: View of the objects

Postby EViews Gareth » Wed Mar 20, 2013 7:42 am



Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests