cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] single configuration file webscripts

ersecchio
Champ in-the-making
Champ in-the-making
You can have a unique configuration file?

instead of having:
hello.get.config.xml
byebye.get.config.xml
etc etc

combine them into one file (ie.: general.get.config.xml)
3 REPLIES 3

joan100
Champ in-the-making
Champ in-the-making
I'm learning to use Alfresco and I've had problems with single configuration file webscripts. This is a big help in my projects. thanks!

bobwinston
Champ in-the-making
Champ in-the-making
I can add this to my lists of solutions. Thanks ersecchio.

—————–
[size=85]cool math games[/size]

ersecchio
Champ in-the-making
Champ in-the-making
I solved this way, I created a file configuration.xml  and I put this file in all configurations, ie:

<configuration>
   
   <parametro>parameter</parametro>

   <parametro2>model uri</parametro2>
</configuration>
then I uploaded this file on alfresco , and to read this configuration file I have implemented these lines of code:



nodes = search.luceneSearch("ALL:configuration.xml");
var contenuto= nodes[0].content
var xml = new XML(contenuto)

var parametro=xml.parametro.toString();
var parametro2=  xml.parametro2.toString();

etc. etc.

Smiley Tongue