Goal

Step-by-step guide

  1. Take a look image below for Widget Id Binding #2 below in red label.
  2. Widget ord replacer binding #3 below in red label.

 

Image

<?xml version="1.0" encoding="UTF-8"?>
<!-- Niagara Presentation XML -->
<px version="1.0" media="workbench:WbPxMedia">
<import>
  <module name="baja"/>
  <module name="bajaui"/>
  <module name="basDashboard"/>
  <module name="converters"/>
  <module name="gx"/>
  <module name="kitPx"/>
</import>
<content>
<CanvasPane viewSize="1000.0,530.0">
  <BoundLabel layout="210.0,460.0,260.0,50.0" font="bold 24.0pt Tahoma">
    <BoundLabelBinding ord="station:|slot:/replaceOrdDemo/China/Population">
      <ObjectToString name="text" format="%out.value%"/>
    </BoundLabelBinding>
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetIdBinding group="country" id="population" attribute=""/>
  </BoundLabel>
  <BoundLabel layout="210.0,410.0,260.0,50.0" text="Population" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
  </BoundLabel>
  <BoundLabel layout="510.0,460.0,260.0,50.0" font="bold 24.0pt Tahoma">
    <BoundLabelBinding ord="station:|slot:/replaceOrdDemo/China/GDP">
      <ObjectToString name="text" format="%out.value%"/>
    </BoundLabelBinding>
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetIdBinding group="country" id="gdp" attribute=""/>
  </BoundLabel>
  <BoundLabel layout="510.0,410.0,260.0,50.0" text="GDP" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
  </BoundLabel>
  <BoundLabel layout="390.0,360.0,260.0,50.0" font="bold 24.0pt Tahoma">
    <BoundLabelBinding ord="station:|slot:/replaceOrdDemo/China/GDP">
      <ObjectToString name="text" format="%out.value%"/>
    </BoundLabelBinding>
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetIdBinding group="country" id="gdp" attribute=""/>
  </BoundLabel>
  <BoundLabel layout="390.0,320.0,260.0,50.0" text="GDP" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
  </BoundLabel>
  <BoundLabel layout="350.0,0.0,260.0,50.0" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <BoundLabelBinding ord="station:|slot:/replaceOrdDemo/China">
      <ObjectToString name="text" format="%displayName%"/>
    </BoundLabelBinding>
    <WidgetIdBinding group="country" id="title"/>
  </BoundLabel>
  <BoundLabel layout="220.0,50.0,560.0,270.0">
    <BoundLabelBinding ord="station:|slot:/replaceOrdDemo/China/imageOrd/ord">
      <OrdToImage name="image"/>
    </BoundLabelBinding>
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetIdBinding group="country" id="cImage"/>
  </BoundLabel>
  <BoundLabel layout="30.0,50.0,160.0,50.0" text="China" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetOrdReplacerBinding find="Russia;Turkey;US" replace="China" group="country"/>
  </BoundLabel>
  <BoundLabel layout="30.0,100.0,160.0,50.0" text="Russia" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetOrdReplacerBinding find="China;Turkey;US" replace="Russia" group="country"/>
  </BoundLabel>
  <BoundLabel layout="30.0,150.0,160.0,50.0" text="Turkey" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetOrdReplacerBinding find="China;Russia;US" replace="Turkey" group="country"/>
  </BoundLabel>
  <BoundLabel layout="30.0,200.0,160.0,50.0" text="US" font="bold 24.0pt Tahoma">
    <WsAnnotation name="wsAnnotation" value="2,2,8"/>
    <WidgetOrdReplacerBinding find="China;Russia;Turkey" replace="US" group="country"/>
  </BoundLabel>
</CanvasPane>
</content>
</px>