c4_ViewProp viewprop("subview");
c4_View aview=viewprop(datas[idx]);When you add the row datarow, the subview is created for you
Andrew West wrote:
Hi,
I'm following this tutorial on metakit,
http://support.articque.com/metakit/metakit_tutorial.html
but I'm confused about creating subviews (not sure if this is the right term for it)
c4_View maps=database.GetAs("maps[mid:S,subview[mwidth:I,mheight:I,mpath:S]]");
c4_View viewsec=database.GetAs("sec[_H:I,_R:I]");
view=view.Hash(viewsec,1);
Basically, exactly how do I add information to this view?
From previous in the tutorial it gives this example for how to add information.
c4_View datas=database.GetAs("datas[did:S,dmapid:S,dpath:S]"); c4_StringProp did("did"),dmapid("dmapid"),dpath("dpath"); c4_Row datarow; did(datarow)="1"; dmapid(datarow)="A"; dpath(datarow)="/home/A1.txt"; datas.Add(datarow);
But how do I apply this to the subview?
Sorry if this is a simple question or has already been answered before but I can't seem to find a way to search the mailing list archives and the documentation for metakit seems a bit lacking :(
all the best,
Andrew
_____________________________________________ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
-- Riccardo Cohen
Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
_____________________________________________ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
