cancel
Showing results for 
Search instead for 
Did you mean: 

Unique values in Web Forms

tonizz
Champ in-the-making
Champ in-the-making
Hi everybody,

I am using Web Forms to publish contents of a portal. In some types of contents like news I have an xml file for each new. I would like that alfresco could generate in each xml file a UNIQUE field for each file with the system time or something like that. I had thought in the date, but it could not be unique.
1 REPLY 1

freedev
Champ in-the-making
Champ in-the-making
Hi tonizz,

look at WCM2_1-Product-Evaluation-Guide.pdf. You'll see the  extras-wcm/forms/press-release.xsd web form. This web form have a field that is the product of a jsp call.

<xs:include schemaLocation="/media/releases/get_company_footer_choices_simple_type.jsp"/>

This jsp is used to produce dynamically the type company_footer_choices, i.e. produce dinamically a listbox with a list of items.

IMHO I don't like very much this solution, but I think you can put inside the jsp every kind of logic do you want to produce a new type with the unique value you need.

Bye,
Vincenzo