<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Edit-parameter</id>
	<title>Edit-parameter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Edit-parameter"/>
	<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Edit-parameter&amp;action=history"/>
	<updated>2026-10-23T19:25:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>https://wiki.dafne.bi-services.sk/index.php?title=Edit-parameter&amp;diff=87&amp;oldid=prev</id>
		<title>Dafne: Documentation import</title>
		<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Edit-parameter&amp;diff=87&amp;oldid=prev"/>
		<updated>2026-08-06T13:36:50Z</updated>

		<summary type="html">&lt;p&gt;Documentation import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A [[Parameter]] is a user-defined value substituted into statements as &amp;lt;code&amp;gt;%u:name%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Creating a parameter ==&lt;br /&gt;
# Open &amp;#039;&amp;#039;&amp;#039;Author&amp;#039;&amp;#039;&amp;#039; → &amp;#039;&amp;#039;&amp;#039;Parameters&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# Click the create button above the list.&lt;br /&gt;
# Fill in the fields below and click &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;ID&amp;#039;&amp;#039;&amp;#039; || Assigned automatically; read-only.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Name&amp;#039;&amp;#039;&amp;#039; || Mandatory and unique. Maximum 100 characters; letters, digits, space and &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039; || Free text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Connection&amp;#039;&amp;#039;&amp;#039; || The connection used to evaluate the query. Leave as &amp;#039;&amp;#039;- None -&amp;#039;&amp;#039; for a parameter that only has a default value.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Default value&amp;#039;&amp;#039;&amp;#039; || Maximum 2000 characters.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Query&amp;#039;&amp;#039;&amp;#039; || An SQL statement returning the value. &amp;#039;&amp;#039;&amp;#039;Only shown once a connection is selected.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Query&amp;#039;&amp;#039;&amp;#039; field appearing only after a connection is chosen is the single thing most likely to cause confusion here. To create a query-based parameter, select the connection first.&lt;br /&gt;
&lt;br /&gt;
== Static or query-based ==&lt;br /&gt;
* Leave &amp;#039;&amp;#039;&amp;#039;Connection&amp;#039;&amp;#039;&amp;#039; empty for a &amp;#039;&amp;#039;&amp;#039;static&amp;#039;&amp;#039;&amp;#039; parameter — it always resolves to its default value. Suitable for values that differ between environments but not between runs, such as a schema name or a file path.&lt;br /&gt;
* Set a connection and a query for a &amp;#039;&amp;#039;&amp;#039;query-based&amp;#039;&amp;#039;&amp;#039; parameter, whose value is obtained at planning time.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Add variable&amp;#039;&amp;#039;&amp;#039; button beside the query lists the placeholders available in it. These are the scenario-level placeholders, so a parameter can be derived from the state of previous processings. See [[Placeholders]].&lt;br /&gt;
&lt;br /&gt;
== When the value is taken ==&lt;br /&gt;
Query-based parameters are evaluated &amp;#039;&amp;#039;&amp;#039;once, when the processing is planned&amp;#039;&amp;#039;&amp;#039; — not per task, and not again during the run. The value is therefore fixed for the whole processing, which keeps a long run internally consistent but means a parameter cannot carry information between tasks.&lt;br /&gt;
&lt;br /&gt;
Only the parameters actually used by the tasks in the scenario are evaluated.&lt;br /&gt;
&lt;br /&gt;
The values resolved for a given run are visible through &amp;#039;&amp;#039;&amp;#039;Show processing details&amp;#039;&amp;#039;&amp;#039; in the [[Monitor console]].&lt;br /&gt;
&lt;br /&gt;
== Practical notes ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Keep a default value&amp;#039;&amp;#039;&amp;#039; on query-based parameters where a sensible fallback exists. A parameter that resolves to nothing substitutes as empty rather than failing visibly.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Names are global.&amp;#039;&amp;#039;&amp;#039; Parameters are not scoped to a scenario, so a name like &amp;#039;&amp;#039;schema&amp;#039;&amp;#039; will not stay unambiguous. Use a qualified name.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Quote in the statement, not the value.&amp;#039;&amp;#039;&amp;#039; Substitution is textual and unquoted. Prefer passing parameters as procedure arguments over concatenating them into SQL — see [[Placeholders#Quoting]].&lt;br /&gt;
* Only the &amp;#039;&amp;#039;&amp;#039;default value&amp;#039;&amp;#039;&amp;#039; is available where a parameter is used in a scenario planning query, since the processing does not yet exist at that point.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Parameter]]&lt;br /&gt;
* [[Placeholders]]&lt;br /&gt;
* [[Authoring items]]&lt;/div&gt;</summary>
		<author><name>Dafne</name></author>
		
	</entry>
</feed>