KB-27662: Saving values when the application stops.

Question:

Can I save values configured at run time when stopping an application, in order to load them later?

Solution:

Yes; to do so, you must use Recipes and create two scripts: one to load the values at OnStartRunning() event, and another one save them at OnStopRunning() event. They are accessed via Organizer at Application item.

Examples:

OnStartRunning() event:
if recipe.GetRecCount() > 0
recipe.LoadRecipe(1)
endif

OnStopRunning() event:
if recipe.GetRecCount() < 1
recipe.CreateNewRecord(“Persistent tags”)
endif
recipe.SaveRecipe(1)

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

,

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *