Composite Genies: How to pass literal value to contained genie parameter?

Is there any way to pass a literal value to a genie parameter inside a composite genie?

From the example composite genies I can only see how to pass a reference to a composite genie 'template parameter', e.g.:

<Content ItemId="301">
<Parameters>
<Parameter Name="Label" TemplateParameter="SPLabel" />
</Parameters>
</Content>

What I really want is to specify the value of the genie parameter directly, i.e. I want %Label% to be substituted by the string "SP":

<Content ItemId="301">
<Parameters>
<Parameter Name="Label">SP</Parameter>
</Parameters>
</Content>

I've had a brief look at the CompositionTemplate.xsd for inspiration but wasn't able to find a solution.

Parents
  • Well you can preset a parameter and then pass that to the genie...

    <GlobalCondition Id="IsFalse">
      <ParameterCondition Name="Equipment" Comparison="IsEqualTo" Value="DoesNotExist" />
    </GlobalCondition>
    <Parameter Name="SPLabel" Label="SP Label" Type="String" DefaultValue="SP">
      <Dependency>
        <GlobalConditionRef Id="IsFalse" />
      </Dependency>
    </Parameter>
    <Content ItemId="301">
      <Parameters>
        <Parameter Name="Label" TemplateParameter="SPLabel" />
      </Parameters>
    </Content>

    The GlobalCondition is just to ensure the user can't see/change the parameter when the composite is edited.  As far as I'm aware there is no way to pass varying values for the SPLabel parameter without using multiple <Content..> groups with VisibleWhen enabling/disabling each one as required.

  • Thanks Steve, that is exactly what I did for a work around (inc. the always false global condition). More clunky than passing a value directly to the genie parameter, but it definitely achieves the result I was after.

Reply Children
No Data