Thanks I did not know that GetAs("name") will delete the view :)
Murat
-----Original Message-----
From: Jean-Claude Wippler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 3:18 AM
To: Metakit mailing list
Subject: Re: [Metakit] Question on how to remove top level views
Berk, Murat wrote:
> We used to store a view name in one view (instead of marking cell as
> subview) so that we can do getAs(name) and use it.
>
> I do not want to change a lot of things, but when we try to delete the
> rows in the first view, the only thing we can do is to remove all
> elements of the second view but I cannot really delete it.
>
> view1
> name <field1> <field2> <field3>
> name1 data...
> name2 data...
>
> __name1__
> prop1 prop2 prop3
>
> __name2__
> prop1 prop2 prop3
>
>
> When we delete name1 from the first view, I want to remove the whole
> view
> called __name1__. How can I do this..
storage.GetAs("__name1__")
IOW, omit the usual "[...]" part. Am I missing something?
> Since everything is a view including database itself, in theory this
> should be possible.
Yes.
The one confusing part could be that the view won't go away until
committed. All properties, including subviews, including therefore
also top-level views, stay around afetr a restructure, and only truly
vanish on commit (that makes it possible to re-structure, copy over,
then commit).
-jcw
_______________________________________________
metakit mailing list - [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit
_______________________________________________
metakit mailing list - [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit