[REBOL] Dynamic Views possible
From: yvan_iigs::gmx::net at: 2-Dec-2006 14:11
Hello,
is there a way to tell a view which fields it should show by passing any
kind of parameters?
Lets assume I have a video database with the following strings per video:
title, producer, release-date, length
Now if I want to look at a video record I can do it the following way:
view layout
[
text title
text producer
text release-date
text length
]
But if I just want to see the title I would have to do the following:
view layout [ text title]
and if I just want to see the title and the producer
view layout
[
text title
text producer
]
okay, it's getting boring. I have much more than just 4 different variable
per video record and I'm looking to program a function which let's me chose
which fields of the video-record should be shown without having to program
a special view for each possible combination.
Is there a way to to this?
Cheers Yvan