Page 1 of 1

View of the objects

Posted: Mon Mar 18, 2013 1:12 pm
by claudio
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....)

Re: View of the objects

Posted: Mon Mar 18, 2013 1:21 pm
by EViews Gareth
That's a little cryptic. Could you provide more information?

Re: View of the objects

Posted: Mon Mar 18, 2013 1:38 pm
by claudio
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".

Re: View of the objects

Posted: Mon Mar 18, 2013 2:23 pm
by EViews Gareth
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.

Re: View of the objects

Posted: Mon Mar 18, 2013 2:48 pm
by claudio
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.

Re: View of the objects

Posted: Mon Mar 18, 2013 3:50 pm
by EViews Gareth
Sorry, I'm not sure I follow what you mean.

Re: View of the objects

Posted: Tue Mar 19, 2013 4:02 pm
by claudio
My problem is that I make two subroutines for graphs and sample and any description for this objects appears on "details +/-".

Re: View of the objects

Posted: Tue Mar 19, 2013 4:29 pm
by EViews Gareth
Still not sure what you're saying.

Re: View of the objects

Posted: Tue Mar 19, 2013 4:51 pm
by claudio
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?

Re: View of the objects

Posted: Wed Mar 20, 2013 7:42 am
by EViews Gareth