recipes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
recipes [2020/06/01 13:40] – emozolyak | recipes [2022/01/15 15:41] (current) – ↷ Links adapted because of a move operation 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ network: | ||
======Recipes====== | ======Recipes====== | ||
Line 7: | Line 8: | ||
* Recipe list can be used as a handy tool for analysing user choice from different options. In this case recipe names in the list or category serve as a placeholders for the selection listbox. The selected id is returned to the lua script which then can process the selection. | * Recipe list can be used as a handy tool for analysing user choice from different options. In this case recipe names in the list or category serve as a placeholders for the selection listbox. The selected id is returned to the lua script which then can process the selection. | ||
- | ===== Recipe setup page ===== | + | ===== Recipes |
The recipe management menu resides in a ' | The recipe management menu resides in a ' | ||
- | {{ :: | + | {{ network: |
The main spots of the recipe management page are: | The main spots of the recipe management page are: | ||
Line 22: | Line 23: | ||
- Edit/ | - Edit/ | ||
- | {{ :: | + | {{ network: |
===== Recipe setup===== | ===== Recipe setup===== | ||
Line 35: | Line 36: | ||
***Add register to recipe** button expands the list with a new entry | ***Add register to recipe** button expands the list with a new entry | ||
- | {{ :: | + | {{ network: |
+ | The // | ||
+ | {{ network: | ||
+ | ===== Using recipe on the dashboard ===== | ||
+ | When placing a recipes selection listbox on a dashboard, there are some specific attributes you must specify: | ||
- | Recipes can have sub-categories, i.e. the list of recipes | + | * // |
+ | * The // | ||
+ | * '// | ||
+ | * '// | ||
- | {{ : | ||
- | And also be available to specific users. | + | {{ network: |
- | {{ :recipes3.png? | + | If the user has right to edit the recipe, he can do this right in the selectoin box: |
- | When placing a list of recipes on a dashboard, you must specify: | + | {{ network:quick_rcp_apply_edit.gif |}} |
- | * Category of recipes, or a complete list of all categories | + | ===== Using recipes in scripts |
- | * Drop-down or multiline list | + | |
- | * Number of the register where the recipe number will change. (changing this register can be monitored | + | |
- | * Whether to apply the recipe immediately or not (in the second case, only the register number will change where the current recipe number is stored) | + | |
- | {{ :recipe4.png? | + | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. The example of such script: |
- | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. After it is executed, if a list is displayed on one of the dashboards, the contents of the recipe from the ApplyRecipe function, you must also write the recipe number in the register tied to the list - to synchronize the display of the list. | + | <code lua> |
+ | function main (userId) | ||
+ | local id = GetReg(" | ||
+ | | ||
+ | AddInfoMessage(" | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | {{ network: |
recipes.txt · Last modified: 2022/01/15 15:41 by 127.0.0.1