I would like to use a gridedit widget to list instances of different
classes, with each object type having a different view. Could someone
please give me some suggestions on how to proceed?
TIA,
Andrea.
--
lisps are very close to fundamental expressions of deep truths, the
same way that Einstein's Special Relativity squarely nails the truth
that Lorentz and friends recognized but couldn't quite grasp.
-- Tom Lord
> I would like to use a gridedit widget to list instances of different
> classes, with each object type having a different view. Could someone
> please give me some suggestions on how to proceed?
Are the classes unrelated or are they part of one class hierarchy?
Right, sorry. I forgot to mention that they all have the same base
class.
--
Reclama i tuoi diritti digitali, elimina il DRM. Approfondisci su
http://www.no1984.org
Reclaim your digital rights, eliminate DRM. Learn more at
http://www.defectivebydesign.org/what_is_drm
>> Andrea Russo wrote:
>>
>>> I would like to use a gridedit widget to list instances of different
>>> classes, with each object type having a different view. Could someone
>>> please give me some suggestions on how to proceed?
>>
>> Are the classes unrelated or are they part of one class hierarchy?
>
> Right, sorry. I forgot to mention that they all have the same base
> class.
It would be nice to make the gridedit more flexible to take
multiple types into account.
In any case we have two views: a table view and a form view.
The table view needs to have a number of columns equal for
every row, so there can't be much variation here.
You can select a matching form view for the drilldown
by specializing the appropriate GRIDEDIT methods.
Specify STANDARD-OBJECT (or your base class) as DATA-CLASS.
> You can select a matching form view for the drilldown
> by specializing the appropriate GRIDEDIT methods.
>
> Specify STANDARD-OBJECT (or your base class) as DATA-CLASS.
Thanks for this suggestions Leslie. I'll try this way.
Have a nice weekend,
Andrea.
--
Do not worry about your difficulties in mathematics;
I can assure you that mine are still greater.
-- Albert Einstein