Web Connection
Set the data folder path for my application.
Gravatar is a globally recognized avatar based on your email address. Set the data folder path for my application.
  Naeem Afzal
  All
  Jan 27, 2019 @ 06:05am

I tried this "customerList" example written in help file.

SELECT company, careof as Name, address, phone ;
   FROM wwDemo\TT_CUST ;
   ORDER BY Company ;
   INTO CURSOR TQuery

and changed the data folder path to "DATA"

SELECT company, careof as Name, address, phone ;
   FROM DATA\TT_CUST ;
   ORDER BY Company ;
   INTO CURSOR TQuery

Do I have to put this setting in the following code block so that it can be changed via .ini file ?

*** Configuration class for the WebTestProcess Process class
DEFINE CLASS WebTestProcessConfig as wwConfig

cHTMLPagePath = "C:\inetpub\wwwroot\WebTest\"
cDATAPath = ".DATA\"
cVirtualPath = "/WebTest/"

ENDDEFINE

Thanks

Gravatar is a globally recognized avatar based on your email address. re: Set the data folder path for my application.
  Rick Strahl
  Naeem Afzal
  Jan 27, 2019 @ 02:14pm

Totally unrelated issues.

Standard FoxPro Path processing applies when you run a SQL query.

My preferred way to handle paths is to include any paths that I need access to for data using SET PATH TO <path> ADDITIVE so that I don't have to worry for data locations.

The configuration setting has no bearing on a query unless you explicitly use that configuration setting (Process.oConfig.cDataPath typically).

+++ Rick ---

© 1996-2019