Jump to content

UniServerModule (extroot and uniroot)


Sistema Fenix

Recommended Posts

Hi Farshad,

 

After update to 0.99.80.1270 (1263 is work) is not work source below:

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
  ServerConfig: TInifile;
begin
 serverConfig := TInifile.create(gsAppPath + 'unigui.ini');
 port := serverConfig.readinteger('AppWeb', 'ServerPort', 1980);
 extroot := serverConfig.readstring('AppWeb', 'ExtjsPath', '');
 uniroot := serverConfig.readstring('AppWeb', 'UniPath', '');
 FreeAndNil(serverConfig);
end;
This version is not finding files extjs and unigui specified manualy.
Did you change anything?

 

 

Best regards

Link to comment
Share on other sites

  • Administrators

Some Examples:
ExtRoot = "[ext]"     ExtJS Files are in \FMSoft\Framework\uniGUI/ext-x.y.z.build\ (*Recommended method )
ExtRoot = ".\[ext]"   ExtJS Files are in \ext-x.y.z.build\
ExtRoot = "C:\ExtJS\[ext]"    ExtJS Files are in C:\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\[ext]"    ExtJS Files are in \ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\ext"     ExtJS Files are in \ExtJS\ext\

Link to comment
Share on other sites

No,

 

That did not work:

ExtjsPath='H:\sistema\[ext]'
UniPath='H:\sistema\[uni]'
UniMobilePath='H:\sistema\[unim]'
 
I had to change to: 
ExtjsPath='H:\sistema\ext-4.2.5.1763\'
UniPath='H:\sistema\uni-0.99.80.1270\'
UniMobilePath='H:\sistema\unim-0.99.80.1270\'
 
My aplications are in:
h:\sistema\empresa1\client
h:\sistema\empresa2\client
...
 
Is there any way to just get the folder version?
example
[extVersion] = ext-4.2.5.1763
[uniVersion] = uni-0.99.80.1270
[unimVersion] = unim-0.99.80.1270
 
In manual you placed:
 
Some Examples:
ExtRoot = "[ext]" ExtJS Files are in <Runtime Package InstallFolder>\FMSoft
\Framework\uniGUI/ext-x.y.z.build\ (*Recommended method)
ExtRoot = ".\[ext]" ExtJS Files are in <server root>\ext-x.y.z.build\
ExtRoot = "C:\ExtJS\[ext]" ExtJS Files are in C:\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\[ext]" ExtJS Files are in <server root>\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\ext" ExtJS Files are in <server root>\ExtJS\ext\

 

I not understand why my does not work, because as the party who left bold indicates that only picks up the folder version.

 
I thought of something like:

ExtRoot = C:\myfolder\[ext] = C:\myfolder\ext-x.y.z.build\ = C:\myfolder\ext-4.2.5.1763\'

Link to comment
Share on other sites

In runtime:

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
ServerConfig: TInifile;
begin
serverConfig := TInifile.create(gsAppPath + 'unigui.ini');
port := serverConfig.readinteger('AppWeb', 'ServerPort', 1980);
extroot := serverConfig.readstring('AppWeb', 'ExtjsPath', '');
uniroot := serverConfig.readstring('AppWeb', 'UniPath', '');
FreeAndNil(serverConfig);
end;

for now let this way:

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
 ServerConfig: TInifile;
begin
 serverConfig := TInifile.create(gsAppPath + 'unigui.ini');
 extroot := serverConfig.readstring('AppWeb', 'ExtjsPath', 'c:\myFolder\');
 uniroot := serverConfig.readstring('AppWeb', 'UniPath', 'c:\myFolder\');
 uniMobileroot := serverConfig.readstring('AppWeb', 'UniMobilePath', 'c:\myFolder\');
 if Extroot <> '[ext]\' then
    extroot := extroot + 'ext-'+ ExtJSVersion + '\';
 if uniroot <> '[uni]\' then
    uniroot := uniroot + 'uni-'+ UniguiVersion + '\';
 if uniMobileroot <> '[unim]\' then
    uniMobileroot := uniMobileroot + 'unim-'+ UniguiVersion + '\';
 FreeAndNil(serverConfig); 
end;
Link to comment
Share on other sites

×
×
  • Create New...