How do I tell DAB which exported file to use for the lexicon and reversal index when making the next version of the app?


#1

Once an app is created it’s necessary to be able to update it as changes are made to the data in FLEx.

Imagine that the first file was exported as dictionary_150418.xhtml
Then I’ve updated the data in FLEx and exported dictionary_250618.xhtml

The Lexicon tab shows the path to the file but it’s all in grey. There is no obvious option for changing that path and file name prior to making an updated app.

How do I tell DAB which exported file to use for the lexicon and reversal index when making the next version of the app?


#2

It is best to use a generic name then replace that file with the new one. Then in the Lexicon section a button appears “Update from source …” since the file is changed that les you reload the lexicon. For the Indexes you can just delete them and reimport them.


#3

I think I have may have found a work around.

  1. Export the updated dictionary from FLEx and give it the new (more generic name) .xhtml

  2. Close DAB

  3. Find the app Definition file:
    On my computer it is in Documents\App Builder\Dictionary Apps\Seimat
    the is only one file and it has the extension .appDef

  4. Right click on the appDef file and edit it with Notepad.

  5. Near the top of the file is the path and name of the file that is used to build the app.

  6. Change the path and filename so that it matches the path and file created in step 1.

  7. Save this file and close notepad.

  8. Open DAB and Build the app, see if it works.

Perhaps a developer could comment on whether this is a ‘safe’ and sufficient procedure.


#4

David,

I have done that too but as not everyone understands when they are breaking the .appdef file I don’t see it is best practice.

Ian