|
28.10.2006, 16:40 | #1 |
Участник
|
Dynamics AX Geek: Deleting all objects from a custom layer
Источник: http://AxGeek.spaces.live.com/Blog/c...DB13!129.entry
============== An entire layer can safely be deleted by removing these two files: <span>ax.aod aod stands for “application object data”. This file holds all objects for the layer it is named after. For example, axusr.aod for the usr-layer, axcus.aod for the cus-layer etc. axapd.aoi aoi stands for “application object index”. It tells Axapta where to find each individual object. The file will be rebuild the next time you log on to Axapta. Note: Deleting these will not delete any labels. Labels are stored in files using this naming convention: <span>ax.ald Application label data <span>ax.alc application label comments <span>ax.ali application label index If you delete entire layers frequently and are prefer to automate repetitive tasks, you can easily create a batch file to do the job for you. move /Y "F:\Program Files\Axapta30_SP3\Application\Appl\Standard\axusr.aod" "F:\Program Files\Axapta30_SP3\Application\Appl\Standard\axusr.aod_bak" move /Y "F:\Program Files\Axapta30_SP3\Application\Appl\Standard\axapd.aoi" "F:\Program Files\Axapta30_SP3\Application\Appl\Standard\axapd.aoi_bak" This example has the added benefit of moving the file to *_bak instead of deleting it outright. If for some reason I need the old version back I can restore it by simply moving them back to their original names. It goes without saying that no user should be logged into Axapta when you delete or move these files. ============== Источник: http://AxGeek.spaces.live.com/Blog/c...DB13!129.entry |
|