Powered By Blogger

Tuesday, July 7, 2015

Dynamic value from Database in Content Model

1. Placed share-config-custom.xml in the location C:\Users\bp823602\Workspace\Projects\Patil\AlfrescoServershare\tomcat\shared\classes\alfresco\web-extension
       
           
                       

                                               
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                                                           
                                                     
                                                                       
                                                                       
                                                                                   
                                               

                                               
                                                                                                                               
                                                                           
                                                                                                  /share/page/patil/clearCache
                                                                           

                                                                       
     
                                               

                       

         

     

2. Placed patilModel .xml in the location C:\Users\bp823602\Workspace\Projects\Patil\AlfrescoServer\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\intranet\model and registered the new model file.
                                                                        Vehicle Component Information
                                                                        cm:content
                                                                       
                                                                                               
                                                                                                                        Component Year
                                                                                                                        d:text                                                                                                        
                                                                                               
                                                                                               
                                                                                                                        Component Model
                                                                                                                        d:text                                                                                                        
                                                                                               
                                                                                               
                                                                                                                        Component Keywords Dynamic value
                                                                                                                        d:text
                                                                                                                       
                                                                                                                                               
                                                                                                                       
                                                                                               
                                                                                                
                                                                       
                                               

3. Placed the autocomplete.ftl in the location C:\Users\bp823602\Workspace\Projects\Patil\AlfrescoServershare\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form\controls
4. Place the webscript definition file in the location C:\Users\bp823602\Workspace\Projects\Patil\AlfrescoServershare\tomcat\webapps\share\WEB-INF\classes\alfresco\webscripts\com\patil\surf
a. Place the clearCache.get.desc.xml
b. Place the  clearCache.get.json.ftl file
c. Place the .jar file , which will have the logic to connect to DB and get the values from DB
d. Place the –context.xml with the webscript registered
       
           
                 
           
       
   
5. Update form.get.html.ftl file to include the autocomplete.css and .jar file
C:\Users\bp823602\Workspace\Projects\Patil\AlfrescoServershare\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form


No comments:

Post a Comment