> I have an Active4D folder within the Active4D default directory that > includes Active4D.a4l, Active4D.ini etc. > > Do I have the correct files in the correct place? >>On Client the config files (.ini) and libraries files (.a4l) are split up into separate directories. Page 39 lists the config file search path, page 113 lists the library >>search path. >>Regards, >>Aparajita
Thanks again Aparajita. I also got in contact with Michael Larue who I noticed from earlier postings had a similar setup (4D Remote V12 connecting to 4D Server with Remote acting as web server). He was more than helpful and I now have everything up and running. I have copied his notes below (slightly edited)... ----------------------------------------------------------------- ----------------------------------------------------------- On the 4D Remote workstation computer, you should have a "com.aparajita" folder at the following location... C:\ProgramData\4d\com.aparajita\ Then, within the "com.aparajita" folder, you need 3 more folders: Active4D web web_static Then, within the Active4D folder, you need 2 more folders: conf lib Then, within the "conf" folder, you have the following files: Active4D.ini ExtensionMap.ini Realms.ini VirtualHosts.ini And, within the "lib" folder, you have the following: a4d.console.a4l a4d.debug.a4l a4d.json.a4l a4d.lists.a4l a4d.utils.a4l a4d.web.a4l Active4D.a4l Batch.a4l Breadcrumbs.a4l fusebox.a4l fusebox.conf.a4l fusebox.head.a4l RowSet.a4l In the "web" folder, you'll put all your Active4D web pages; in the "web_static" folder, you'll put any file you want 4D to serve directly (it will bypass the Active4D plugin and be served straight out by 4D; this is useful for static files such as graphics, etc., since 4D will serve these up faster instead of having to go through the Active4D plugin and interpreter). OK, that should take care of the files and folders. (Make sure permissions are set so that the 4D application can access all of them; easiest to just make everything within the "com.aparajita" folder available to all users.) Then, within your 4D code, make sure in the "A4D_Init" method, you have the following set: <>A4D_ClientIsWebServer:=True As I do testing on my stand-alone computer, I have the following little snippit to handle this automatically for me: If (Application type=4D Remote Mode) <>A4D_ClientIsWebServer:=True Else <>A4D_ClientIsWebServer:=False End if I put in the following bit directly in my code; this might help: If (Application type=4D Remote Mode) $vBasePath:="C:\\ProgramData\\4D\\com.aparajita\\" SET HTML ROOT($vBasePath+"web_static") A4D SET ROOT ($vBasePath+"web") End if ----------------------------------------------------------------- ----------------------------------------------------------------- ------ _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/
