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 14:42] – [Using recipe on the dashboard] 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 11: | Line 12: | ||
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 // | The // | ||
- | {{ :: | + | {{ network: |
===== Using recipe on the dashboard ===== | ===== Using recipe on the dashboard ===== | ||
Line 44: | Line 45: | ||
When placing a recipes selection listbox on a dashboard, there are some specific attributes you must specify: | When placing a recipes selection listbox on a dashboard, there are some specific attributes you must specify: | ||
- | * Category of recipes, or a full list. | + | * //Category// of recipes, or a full list. |
- | * The register accosiated with the dropdown list which will keep the id of the selected recipe. | + | * The //register// accosiated with the dropdown list which will keep the //id// of the selected recipe. |
- | * 'Allow change value' checkbox. If you want the user be able to expand the list, check it, otherwise the user won't be able to select and expand the list. With unchecked option, the recipes can be itereated with the lua script and extra buttons which return next/ | + | * '//Allow change value//' checkbox. If you want the user be able to expand the list, check it, otherwise the user won't be able to select and expand the list. With unchecked option, the recipes can be itereated with the lua script and extra buttons which return next/ |
- | * 'Apply immediately' | + | * '//Apply immediately//' checkbox. The values from the set will be written at once after selection, or you can check register change in a lua script and first do some steps before applying a recipe. |
- | {{ :: | + | {{ network: |
- | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | + | If the user has right to edit the recipe, he can do this right in the selectoin box: |
+ | |||
+ | {{ network: | ||
+ | |||
+ | ===== Using recipes in scripts ===== | ||
+ | |||
+ | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | ||
+ | |||
+ | <code lua> | ||
+ | function | ||
+ | local id = GetReg(" | ||
+ | ApplyRecipe(id, userId) | ||
+ | AddInfoMessage(" | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | {{ network: |
recipes.1591022534.txt.gz · Last modified: 2020/06/01 14:42 by emozolyak