CP Hennessy wrote:
Hi,
I've a class which has several fields, some of these
fields are filled from a database and some are filled
in by the user. I'm trying to figure out what is the
correct way in CPS to do this.
My user enters a clientId and "Add" which causes data
to be retrieved from a database for a few fields. The
user should be presented with a form where the relevant
fields are populated from the database info and where
several other fields should be entered by the user
before the new object is created.
I'm currently basing my new class on CPSDocument and
I'd really like to know what I need to change to get
the behaviour mentioned above. If anyone can point me
at a simple example, then it would be even better.
Hi,
It looks like you could achieve the same behaviour by defining default
expressions on the fields that are supposed to be populated from your
database. Maybe you just have to define a way to access this database in
your application, but it does not have to be on your document class.
Regards,
--
Anahide Tchertchian
Mail: at at nuxeo.com - Tel: +33 (0)1 40 33 71 60
Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps
Gestion de contenu web / portail collaboratif / groupware / open source
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel