How to create dynamic menus with SmartProperties?


Dynamic menus let you create drop-down menus based on either :

- on TXT, CSV or XLS files

- on a database



We'll see how it works using a text file and an Excel spreadsheet.

  • Text file


First, let's create a new text file in the folder containing SmartProperties settings files.








In the case of a text file, each tab corresponds to a menu level and a property definition.

Configure your text file as follows:




In your SmartProperties mask settings, add a Dynamic Menu property and retrieve the previously created text file:





Here is the result we get in SmartProperties:




  • Excel file


In the case of an Excel file, each column corresponds to a menu level and a property definition.

Configure your file as follows:



In your SmartProperties mask settings, add a Dynamic Menu property and retrieve the previously created text file:





Here is the result we get in SmartProperties: