Home DADE
New Blog Posts: Merging Reports - Part 1 and Part 2

TdaMetaCache.GetFields

edited August 2005 in DADE

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

Comments

  • edited August 2005
    I have worked whatthe cause is but not how to fix it.
    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

  • edited August 2005

    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
  • edited August 2005
    Yes


    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

  • edited August 2005

    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
This discussion has been closed.