Page tree
Skip to end of metadata
Go to start of metadata

Documents can be added to a folder via a search macro. The functionality may be configured to a menu in the file menu_macros.txt.

Letting the user choose search macro

If no macro is defined during the configuration, the user can choose a macro when executing the function. Use the following syntax to let the user choose a macro:

 

? FOLDER_ADD 
                                      = fnc.add.with.macro

Specifying a search macro

During configuration, a macro may be defined that is always used to fill the folder. Macros can come from different paths.

 

? FOLDER_ADD
                                     = fnc.add.with.macro(testmacro.txt)

Use the syntax above to call a macro (testmacro.txt) saved in the following path:

ECTR_INST/customize/scripts/macros/wizard/testmacro.txt

 

 

? FOLDER_ADD
                                     = fnc.add.with.macro(ugs:testmacro.txt)

Use the syntax above to call a macro (testmacro.txt) saved in the application folder "ugs". The same syntax works for other application folders. The macro called above is saved in the following path:

ECTR_INST/applications/ugs/customize/scripts/macros/wizard/testmacro.txt

 

 

? FOLDER_ADD
                                     = fnc.add.with.macro(fctr:testmacro.txt)

Use the syntax above to call a macro (testmacro.txt) saved in the add-on folder "fctr". The same syntax works for other add-on folders. The macro called above is saved in the following path:

ECTR_INST/addons/fctr/customize/scripts/macros/wizard/testmacro.txt