Template: KVP

From Genesys Documentation
Jump to: navigation, search

Modifying the template originally developed for Callback (GMS). Now setting up to use Cargo.

The template expects KVP info to be captured in a Library book, for reuse by query in GPR, ChatServer, GIM, possibly GI2/GCXI (and GMS if the legacy display can translate seamlessly).

The template was modified in mid-2019 (around GIM Iteration 14) to include a parameter for the default value. It should be called in the following format:

{{KVP
|KVP=
|KVPDesc=
|KVPType=
|KVPDefault=
|KVPValid=
|mapsTo=
|mandatoryForGIM=
|introduced=
|modified=
|discontinued=
|KVPCategory=
|alwaysAttached=
}}

but it's intended to make specifying the |mapsTo parameter optional, ideally getting it populated by reciprocal query to the GIM PDM Library book.

The content of this template is:

{{#cargo_declare:_table=KVP|KVP=Text|KVPDesc=Wikitext(size=5000)|KVPType=Text|KVPDefault=Wikitext|KVPValid=Wikitext(size=5000)|mapsTo=Text|mandatoryForGIM=Text|introduced=Text|modified=Text|discontinued=Text||KVPCategory=Text|alwaysAttached=Text}}

{{#cargo_store:_table=KVP|KVP={{{KVP}}}|KVPDesc={{{KVPDesc}}}|KVPType={{{KVPType|}}}|KVPDefault={{{KVPDefault|}}}|KVPValid={{{KVPValid|}}}|mapsTo={{#if:{{{mapsTo|}}}|{{{mapsTo}}}|Not mapped}}|mandatoryForGIM={{{mandatoryForGIM|}}}|introduced={{{introduced|}}}|modified={{{modified|}}}|discontinued={{{discontinued|}}}||KVPCategory={{{KVPCategory|}}}|alwaysAttached={{{alwaysAttached|}}}}}

This template defines the table "KVP". View table.

Retrieved from "https://all.docs.genesys.com/Template:KVP (2024-03-29 11:55:11)"