Forum OpenACS Development: dynamic-types question

Collapse
Posted by Claudio Pasolini on
I started playing with the package, adding a couple of new attributes to an existing object type and defining a form to manage the object.

So far so good, but now I don't know how to proceed to deploy the newly created form: could someone point me to a working example or some documentation, if it exists?

Collapse
2: Re: dynamic-types question (response to 1)
Posted by Orzenil Silva Junior on
Hi Claudio,

Project-manager in HEAD uses dynamic-types to process aditional form elements.

Maybe you could see how dynamic-types works looking project-manager code. Install package and add new elements to pm_project object type or just take a look at:

http://cvs.openacs.org/cvs/*checkout*/openacs-4/packages/project-manager/templates/project-ae.tcl?rev=1.6

using dtype::form::add_elements and dtype::form::process

Hope it helps

Collapse
3: Re: dynamic-types question (response to 1)
Posted by Claudio Pasolini on
Thank you Orzenil.

Looks interesting, even if the lack of documentation makes it difficult to understand the package capabilities without digging into the code.

Actually I don't understand if there is a recommended way to deal with the dynamic attributes of an object (ams, dynamic-types, others). Hope that the new year will clarify this matter.

Happy New Year!

Collapse
Posted by Orzenil Silva Junior on
Claudio,

that is what i hope too 😊

we are using ams and dynamic-types following new developments and looking for pieces of code that implement this packages capabilities. And learn from it

ams was used for us to extend register info like in http://www.teknedigital.com.br:8000/register/user-new.

dinamic-types was used in a intranet for a project-manager install and works good (i did not find how to get form elements as required fields yet but i'm trying)

a small doc was prepared as a guide for our projects using ams but it is in portuguese(BR) language only. i think i could translate it and add to docs.

Happy New Year!

Collapse
5: Re: dynamic-types question (response to 1)
Posted by Dave Bauer on
I'll try to write up an example. There are actually procedures that will write the forms for you in the API that I have used to build a demo.