Skip to content

MACRos with OnDemand do not work in a dynamic grid #16

@PatrickKutch

Description

@PatrickKutch
 <GridMacro Name="CPU_FREQ">
        <Grid row="$(NextRowAlias)" column="$(CurrentColumnAlias)" Height="$(CHART_HEIGHT)" Width="95%">
            <OnDemand TriggeredIdToken=".">
                <NamespaceTriggerPattern>$(NS)</NamespaceTriggerPattern>
                <IDTriggerPattern>CPU.CoreCount</IDTriggerPattern>
            </OnDemand>

            <Widget File="CPU\ChartBarFrequency.xml" row="1" column="1" Height="100%g" Width="100%g">
                <Title>CPU Frequency</Title>
                <xAxis MaxEntries="$(TriggeredValue)" />
                <yAxis Label="CPU Frequency (GHz)" MaxValue="$(FrequencyMax)" />
                <MinionSrc ID="CPU.Frequency" Namespace="$(NS)" Scale="$(CPU_FREQ_SCALE)" />
                <StyleOverride>
                    <Item>-fx-legend-visible:false;-fx-bar-gap:1;-fx-category-gap:1;</Item>
                </StyleOverride>
            </Widget>
        </Grid>
    </GridMacro>

	<DynamicGrid row="$(CurrentRowAlias)" column="$(CurrentColumnAlias)">
		<GridFile Source="$(AppDir)\Grid.Util.Frequency.xml"  ID="1"/>
		<GridFile Source="$(AppDir)\Grid.Util.Frequency.Power.xml"  ID="2"/>
		<Initial ID="1"/>
		<MinionSrc ID="ChartFlip" Namespace="DemoNamespace"/>
	</DynamicGrid>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions