reposted from Starkit: How do I access a metakit subview with oomk.

Klaus Robert Suetterlin <[email protected]>
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
I'm using metakit with tcl and started with oomk last week.
Unfortunately I hit a problem I could not solve by trial and error.
My post to the starkit mailing list brought no answers... and I
feel it is a very empty mailing list... so I repost to metakits
main mailing list...

Basically my problem is how to use / create a blocked subview ...
this is why I tried oomk at all.

-- original posting --

Hi again.

Ok. I found how I can access the subviews... unfortunately this
dumps core when I apply it to blocked views.

This is how I do it:

db layout named_pairs {name {pairs {k v}}}
[db view named_pairs] as npv
$npv append name "T_cpu_core"
$npv cursor npc
set npc(#) 0
[$npc(pairs) clone] as T_cpu_core
$T_cpu_core append k "12sec" v "71C"
$T_cpu_core append k "23sec" v "73C"


For blocked pairs I tried:

% db layout named_pairs {name {pairs {_B {k v}}}}
db_db.named_pairs
% [db view named_pairs] as npv
% $npv append name "T_cpu_core"
0
% $npv cursor npc
% set npc(#) 0
0
% set npc(pairs)
::view10
% [$npc(pairs) blocked] as T_cpu_core
zsh: segmentation fault (core dumped)  tclsh8.4


Any help welcome.


Regards, Robert S.
_____________________________________________
Metakit mailing list  -  [email protected]
http://www.equi4.com/mailman/listinfo/metakit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.