Sistema Fenix Posted February 23, 2016 Share Posted February 23, 2016 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 More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2016 Administrators Share Posted February 23, 2016 Yes, I updated the rules and cleaned up what remained from initial versions. Please see updated PDF file. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2016 Administrators Share Posted February 23, 2016 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 More sharing options...
Sistema Fenix Posted February 23, 2016 Author Share Posted February 23, 2016 Thanks Farshad. I was putting "../uni-0.99.80.1270". I put full path and worked. Best regards. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2016 Administrators Share Posted February 23, 2016 Or simply: .\[uni] Link to comment Share on other sites More sharing options...
Sistema Fenix Posted February 23, 2016 Author Share Posted February 23, 2016 But for me, this option not work. In my case leave like this: ExtjsPath='H:\sistema\[ext]' UniPath='H:\sistema\[uni]' UniMobilePath='H:\sistema\[unim]' I do not use the installer, just copy the directory to the server. Regards Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2016 Administrators Share Posted February 23, 2016 Have you changed The ServerRoot? Link to comment Share on other sites More sharing options...
Sistema Fenix Posted February 23, 2016 Author Share Posted February 23, 2016 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 More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2016 Administrators Share Posted February 23, 2016 Where do you assign these values? At design time? Link to comment Share on other sites More sharing options...
Sistema Fenix Posted February 23, 2016 Author Share Posted February 23, 2016 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 More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2016 Administrators Share Posted February 23, 2016 I fixed the issue. Thanks Link to comment Share on other sites More sharing options...
Sistema Fenix Posted February 23, 2016 Author Share Posted February 23, 2016 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts