cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a simple form to collect data from the user

yogesh_prabhu
Champ in-the-making
Champ in-the-making
Hi,

I am using Alfresco-community-edition-3.3

Is it possible to create a [size=125]Simple form [/size]in alfresco that contains some fields to collect data from the user and this gets stored in the database..

The next time i want to view the data, i can show it in a jsp page by retreiving the data from the database..

Any kind of suggestions are welcome..

Thanks..
4 REPLIES 4

zladuric
Champ on-the-rise
Champ on-the-rise
Absolutely. The simplest approach I can think of is:

1. Create a new dashlet - and build this simple form you need.
2. Create a webscript or java-backed webscript to update the database or store this info somewhere.
3. Have the dashlet use this webscript when the user clicks "Save" or something.
4. Retrieve your info from wherever you have placed it.

An excellent example of this approach is here.

Try repeating what's there, and you can go on from there with much more understanding.

yogesh_prabhu
Champ in-the-making
Champ in-the-making
Hi zladuric,

Thank you very much..
That was of some great help..

Let me know if this is possible..

I referred to a wiki http://wiki.alfresco.com/wiki/Web_Scripts_Examples#Folder_Browse.2FRSS_Feed

According to this i can view a Folder hierarchy..and i am able to see that..

Now, i want to view that folder hierarchy in my custom dashlet..

Is it possible??

Thanks in Advance..!!

zladuric
Champ on-the-rise
Champ on-the-rise
I don't see why not. From the example, you can see how your share dashlet can interact with alfresco webscripts.

For example: share dashlet has a server side javascript that's executed before sending the response to the client. also, there is a client-side javascript that can call another webscript or webscripts - depending on how you design it.

yogesh_prabhu
Champ in-the-making
Champ in-the-making
Thank you very much zladuric..

Will definitely try it out..Thanks!!