Dynamic XY positioning and sizing of components

The ability to move components around dynamically as well as changing their size is a useful feature new to SAP BusinessObjects Dashboards 4.1. For example, there may be a case where the placement of a chart is different depending on user selection. Instead of having to duplicate the chart, you can change its XY positioning.

Note

Although dynamic XY positioning and sizing is a great feature, not all components support this. There is a trick that we will show you so that you can take advantage of dynamic XY positioning. However, it will not work for dynamic sizing.

The following components support both dynamic XY positioning and sizing:

  • Background
  • Image Component
  • Rectangle
  • Ellipse
  • Horizontal Line
  • Vertical Line

The following components support dynamic XY positioning only:

  • Canvas Container
  • Tab Set
  • Input Text Area
  • Label
  • Input Text
  • Input Text2
  • Query Refresh Button

Getting ready

Our example will consist of a Image Component that supports both dynamic XY positioning and sizing, as well as four sliders that can reposition and resize the component.

Getting ready

How to do it…

  1. For the component that you want to reposition and resize, bind the XY axis as well as the width/height to the appropriate Excel cells.
    How to do it…
  2. Bind the data output from each slider to the appropriate Excel cell.
  3. Set the minimum and maximum values of the sliders to whatever values suit your range.
    How to do it…
  4. Preview the dashboard and you will see that as you move the sliders around, the component will reposition or resize appropriately.

There's more…

As mentioned earlier, not all components support dynamic XY repositioning and sizing. For the components that do not support this feature, we can still enable dynamic XY repositioning.

All you need to do is put the component inside a Canvas Container and then control the XY positioning from the Canvas Container, as shown in the following screenshot:

There's more…

You'll notice that the component(s) will move along with the Canvas Container.

There's more…

Note

Note that resizing an image to a larger size may deteriorate the quality of the image.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset