From 6c94aa289831ceec66d342aa8ef02ded26b93dae Mon Sep 17 00:00:00 2001 From: TobiasNx <61879957+TobiasNx@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:07:47 +0200 Subject: [PATCH] Update Fix-User-Guide.md --- docs/fix/Fix-User-Guide.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/fix/Fix-User-Guide.md b/docs/fix/Fix-User-Guide.md index 748cd4d..1e65eaa 100644 --- a/docs/fix/Fix-User-Guide.md +++ b/docs/fix/Fix-User-Guide.md @@ -210,12 +210,15 @@ add_field("rights","$[rights]") `$[rights]` in this case is a compile-time variable which is evaluated on creation of the respective Fix object. -The `` section in the Metamorph definition can be used to set defaults: +With the fix functions `put_var` and `put_vars` you can set defaults: -```xml - - - +```perl +put_var("rights","CC0) + +put_vars( + "another_rights": "CC-BY", + "additional_rights": "CC-BY-SA" +) ``` For Java implementations: Compile-time variables are passed to Fix as a constructor parameter.