TdaMetaCache.GetFields
Hello
I regularly get the error :
TdaMetaCache.GetFields when running apps on clients networks , that work ok
on development PC.
Here the scenario.
Advantage 7.01, RB 7 Ent. Not using data dictionary.
Reports created on development pc and copied to network work ok, except
that, if within the end user desginer I try to add new fields, fields,
tables etc. are empty and when try to create a search I get the error above.
User has Administrator rights in all cases as a test.
Reports created on the network cannot be created because can;t choose any
tables in query wizard.
I usually use an ADSConnection and assign the alias name to it, then in
dataview query designer chose this AdsConnection as database. It always has
the same name as configured in the app.
I decided to try and use the alias name instead but it is not available in
the end user designer query wizard.
Also,
in the Tdataset there is an option for CheckRights in AdsTables but this is
not available within report builder so we have to give full access to users
for the data folder which defeats the idea of CheckRights= false.
Thanks for any help
Andy Dyble
This discussion has been closed.
Comments
If I copy the ads.ini from the program folder into c:\windows then it works.
It is ignoring settings from the ads.ini it it's path. All data in the
program is accessed this way with no problem.
We can't use windows folder for ads.ini because many machines have
restricted access to it.
Thanks
Andy
You will need to modify the DADE plug-in, daADS.pas.
There is a TdaADSIniFile that contains a class function called 'FileName'.
The function returns the windows path plus Ads.ini.
Should be a simple change. Rather than the windows directory, get the app
directory.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
We have modified that today.
Tadsdataset looks for the ads.ini in the app folder first then windows
folder after. Would it be worth changing this for future releases to match
TDarasets behaviour ?
Thanks
Yes, thanks for the suggestion - we will make this ehancement for the next
release..
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com