기본 콘텐츠로 건너뛰기 보완적인 콘텐츠로 건너뛰기

Data binding

You use the assets from your Qlik Sense app as the data sources for your report. In your PixelPerfect report template, add data bindings for the app data and images you want to use in the report. Then, connect these data bindings to objects in your template. Data bindings are added in the Database icon with plus symbol Field List menu in the PixelPerfect designer.

Data bindings in the Field List

Image showing the 'Field List' menu expanded in the right side panel of the designer. The 'Field List' menu shows several example data bindings that have been added, such as levels and tables

What is a data binding?

A data binding is a reusable entity that you create in your report template, which contains the data from the app that you then use in your report content. When you add a data binding, the data source to which it refers becomes usable in your template.

A data binding can be reused across multiple objects and bands in your report. For example, you could add a table data binding for a specific pie chart in the app. This data binding could be connected to different objects in the app – for example, it could be used in a native PixelPerfect bar chart and a Cross Tab.

Types of data bindings

Data bindings are added in the Database icon with plus symbol Field List menu that is available on the right side panel in the designer. From this menu, you can add the following types of data bindings.

Levels

Add a field or chart in the app as a level data binding. Level data bindings are often used to bind to bands, looping the creation of distinct content filtered for each value in a dimension.

For more information about using levels to loop over dimensions, see:

You can also add a level data binding and connect it directly to an object in the template. For example, you want to add a label and use it as a title for a section containing looped charts.

Level data bindings are a key element of highly formatted PixelPerfect tables. For more information, see Creating highly formatted tables.

Images

Add images of your Qlik Sense visualizations directly onto your report.

For more information, see Adding images to the report template.

Tables

Add the source table for a visualization as a table data binding. The visualization does not have to be a table. Some Qlik Sense chart types – for example, treemap – cannot be added as table data bindings.

Table data bindings cannot be dragged and dropped directly from the Database icon with plus symbol Field List menu. Instead, they are mainly used to create the following:

Variables

Add variables from the Qlik Sense app as variable data bindings. Variables created in the script, as well as those created when editing sheets, can be used.

For more information, see Working with variables and expressions in your PixelPerfect template.

Expressions

Add calculated expressions, that are evaluated using the Qlik engine, as expression data bindings. For example, you could add an expression such as sum(Sales) as a data binding so that it can be used in native PixelPerfect labels with other natural language, or you could reference it in conditional formatting.

For more information, see Working with variables and expressions in your PixelPerfect template.

Adding a data binding

  1. Open the Database icon with plus symbol Field List menu available from the right-side panel in the designer.

  2. Click the plus icon next to the type of data binding you want to add. For details about each type and how it is used, see Types of data bindings.

  3. When applicable, expand the sheet containing the item you want to add, or search for items.

  4. Click the Plus icon next to the item.

    The data binding is added.

How to use data bindings

After you create a data binding, it is not automatically added to your report content. Instead, it is simply now available for use in the report content. To use a data binding in report content, it needs to be connected to an object or band in the template.

Depending on the type, you can use data bindings in the following ways:

  • If available, drag and drop the data binding directly from the Database icon with plus symbol Field List menu onto the canvas.

  • Add an object from the toolbox panel on the left side of the designer, and then connect it to the data binding. This process varies from object to object. The process usually involves selecting a Data Member and/or similar properties for the object.

  • You can sometimes reference the data binding in the Expression Editor.

For full details, refer to Visualizing app data in your report and related topics.

Refreshing data bindings

다음에서 사용된 소스 앱 데이터를 새로 고칠 수 있습니다.

  • 수준에 따라 추가된 차트에 대한 데이터 바인딩 개체. 이러한 개체는 더하기 기호가 있는 데이터베이스 아이콘 필드 목록 > 수준에 추가됩니다.

  • 기본 PixelPerfect 차트, 크로스 탭 및 스파크선에 사용되는 소스 테이블에 대한 데이터 바인딩 개체. 이러한 개체는 더하기 기호가 있는 데이터베이스 아이콘 필드 목록 > 테이블에 추가됩니다.

다음과 같은 경우 유용합니다.

  • 데이터 바인딩을 만든 이후 소스 차트에 차원과 측정값이 추가되거나 제거되었습니다.

  • 데이터 바인딩을 만든 이후 소스 차트에서 차원과 측정값의 정의가 변경되었습니다.

데이터 바인딩 소스를 새로 고치면 차트 구성이 변경될 때 새 개체를 만들지 않고도 더하기 기호가 있는 데이터베이스 아이콘 필드 목록 메뉴에 동일한 개체를 유지할 수 있습니다.

  1. 시작하기 전에 템플릿에서 제거되거나 업데이트된 열과 필드의 모든 인스턴스를 제거합니다. 차트를 업데이트할 때 새 열이나 필드만 추가하는 경우에는 이 작업이 필요하지 않습니다.

    여기에는 다음 중 하나가 포함될 수 있습니다.

    • 보고서 밴드의 속성에서 제거된 필드 또는 열에 대한 참조를 제거합니다.

    • 차트 수준, 스파크선 및 크로스 탭의 경우 수준을 선택한 후 식 편집기를 사용하여 삭제된 필드에 대한 참조를 제거합니다.

    • 기본 PixelPerfect 차트의 경우 개체 속성에서 삭제된 열에 대한 참조를 제거합니다. 이 작업은 차트 디자이너에서 수행됩니다.

  2. 디자이너의 오른쪽 패널에서 더하기 기호가 있는 데이터베이스 아이콘 필드 목록 메뉴를 엽니다.

  3. 수준 또는 테이블을 두 번 클릭하여 확장합니다.

  4. 새로 고치려는 항목 위에 커서를 올려놓으십시오.

  5. 새로 고침(필드 업데이트 또는 열 업데이트) 아이콘을 클릭합니다.

    필드 목록 메뉴에서 수준 데이터 바인딩 새로 고침

    '필드 업데이트' 아이콘을 클릭하여 수준 데이터 바인딩 새로 고침

    필드 목록 메뉴에서 테이블 데이터 바인딩 새로 고침

    '열 업데이트' 아이콘을 클릭하여 테이블 데이터 바인딩 새로 고침

    새로 고침 중에 차트 요소가 변경되면 각 변경 내용을 나열한 알림이 나타납니다. 변경 내용에는 추가, 업데이트 또는 제거된 열과 필드가 포함될 수 있습니다.

  6. 사용 사례에 맞게 계속하여 템플릿을 개발합니다. 여기에는 기존 콘텐츠를 재구성하거나 새 콘텐츠를 추가하는 작업이 포함될 수 있습니다. 이제 데이터 바인딩을 새로 고친 후 새로 추가된 차트 열을 더하기 기호가 있는 데이터베이스 아이콘 필드 목록 메뉴에서 사용할 수 있습니다.

이 페이지가 도움이 되었습니까?

이 페이지 또는 해당 콘텐츠에서 오타, 누락된 단계 또는 기술적 오류와 같은 문제를 발견하면 알려 주십시오!