cancel
Showing results for 
Search instead for 
Did you mean: 

component generator in alfresco

mahajanakhil
Champ in-the-making
Champ in-the-making
I am a new user of Alfresco and using it as my application's repository.

I have configured new attributes in alfresco.

The problem is that I want to add component generators for these attributes. The attributes have types 'date' and 'numeric' in my application.

<show-property name="qps:issueNumber" display-label-id="issue_number" show-in-edit-mode="true" ignore-if-missing="false" />
<show-property name="qps:issueDate" display-label-id="issue_date" show-in-edit-mode="true" />

The above are tags for which I want to add component generators. For example, I got to know from my colleague that the component generator for drop down attribute would be written like this in web-client-assign-asset.xml:

<show-property name="qps:issueMonth" display-label-id="issue_month" show-in-edit-mode="true"
            component-generator="SimpleDomainValueWithBlankSelectorGenerator" />


Please let me know if I haven't furnished any necessary details.
5 REPLIES 5

mahajanakhil
Champ in-the-making
Champ in-the-making
One more thing: How can I see the various component generators available in Alfresco setup that I am using?

billerby
Champ on-the-rise
Champ on-the-rise
As long as you in your Alfresco implementation have a custom written component-generator with the name SimpleDomainValueWithBlankSelectorGenerator and that that one corresponds to a property in the property sheet, your configuration looks ok. To find out which ComponentGenerators that are available to you I suggest you seach for all implementors of the IComponentGenerator interface in your source code (and in Alfrescos source code as well) . For instructions on how to write generators of your own please have a look at the following wiki-page:

http://wiki.alfresco.com/wiki/Component_Generator_Framework

/Erik

mahajanakhil
Champ in-the-making
Champ in-the-making
Hi.

I am not a developer, merely a DBA. But I am trying to accomplish it.

Could you please let me know where could I find the source code in Alfresco Installation Directory that would tell me about various component generators?

billerby
Champ on-the-rise
Champ on-the-rise
You will have to download the source code from the Alfresco subversion repository, its not provided in the installation packages. If you only need to browse the source code for generators, you can always try this link:

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/web-client/source/jav...

Be aware of that you are browsing the trunk of the repository using this link, aka version 3.3alfa (or something). However as far as I know there are no new development taking place for the Alfresco Explorer, so those are probably the same classes as in your version.

/Erik

soriaedu79
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to develop a component generator in Alfresco 3.3 for advanced search. In the wiki link says:

"Currently, only the property sheet uses component generators, this will spread to the advanced search as well in a future release"

Do you know if this option is already included?

Thank yoi