Successfully!

Error!

Template Adaptive Attributes

  • Last update:  2024-03-06
  • I. Overview

    1. Version

    Report Server VersionJAR PackageFunctional Change
    10.02018-12-27--
    10.0.19.032021-10-291. Changes to the PC terminal adaptive attributes interface of general reports

    2. Changes to the adaptive attributes interface of the PC terminal report block of the dashboard

    Note 1: JAR packages before 2018-12-27 need to install the adaptive plugin

    Note 2: This article is only applicable to the PC terminal, please refer to the mobile terminal adaptation method: [General] Mobile Terminal Self-adaptation


    2. Application scenarios

    On the PC terminal, the user preview template hopes to adapt to the screen resolution.


    3. Function introduction

    For general reports and aggregation reports, table adaptation (horizontal adaptive, bidirectional adaptive) and font adaptation can be set.

    Dashboard can be set to form adaptive (default, horizontal adaptive, bidirectional adaptive), font adaptive.

    Note: Data Analysis Preview does not support adaptive properties.

    II. General report

    1. Setting method

    Click Template > PC Adaptive Attr, click the PC Adaptive Attr pane, you can choose Use server report view settings or Individually set for the template, as shown in the following figure:

    1.png

    1) Use server report view settings

    By default, Use server report view settings is selected, and the settings are valid for all templates under Use server report view settings under the designer. As shown below:

    2.png

    2) Individually set for the template

    Select Individually set for the template, the adaptive settings of "Font" and "Form" will only take effect for the current template. As shown below:

    3.png


    2. Adaptive logic

    Adaptive

    Attributes

    EffectZooming logic Attention  
    Font-No AdaptiveFont size is output as is--
    Font-AdaptiveFont size is zoomed according to the size of the browserZoom ratio = browser page width / old report page configuration width

    When the form is not adaptive, the font adaptive does not take effect

    Form- No AdaptiveForm size is output as is--
    Form-HorizontalThe template horizontally fills the browser window width

    New page width = browser width

    New page height = browser page width / (the width set by the old report page / the height of the old report page)


    When there are too many horizontal cells, cells can only be reduced to a certain ratio, horizontal forced paging

    Form-BidrectionalThe template fills the browser window size in both directions

    New page width = browser width

    New page height = browser height


    When there are too many cells, the cell can only be reduced to a certain ratio, the horizontal page is forced, and the scroll bar appears vertically

    Note 1: A certain ratio is 0.4, the width and height of the report in the browser / body width and height < 0.4

    Note 2: The parameter pane is not adaptive.

    Note 3: When "Freeze Row" is set, the row height is limited, and the bidirectional adaptive does not take effect, which is equivalent to "horizontal adaptive or no adaptive".

    III. Dashboard

    1. Setting method

    Click Template > PC Adaptive Attr, and the PC Adaptive Attr pane will pop up. You can choose Use server report view settings or Individually set for the template. The usage is the same as above, please refer to Section II.1 of this article. As shown below:

    4.png


    2. Adaptive logic

    Adaptive AttributesEffect Zooming effect Attention  
    Font-No AdaptiveFont size is output as is--
    Font-AdaptiveFont size is zoomed according to the size of the browser

    1) When the table is adapted horizontally:

    zoom ratio = older report page configuration width and browser page width / report block content body width whichever is greater

    2) When the table is adaptive in both directions:

    zoom ratio = horizontal zoom ratio and the lesser of browser page height / report block content body height

    When the form is not adaptive, the font adaptive does not take effect.

    When the report block is frozen, font adaptive does not take effect.

    Note: The font adaptive is zoomed according to the ratio of the screen (mobile phone, browser), and it is impossible to make the preview font size on each device exactly the same.

    Form-No AdaptiveForm size is output as is--

    Form-Default

    Form-Horizontal

    The form in the report block is filled horizontally

    Width scaling = browser width / report block content width

    height scaling = width scaling

    Note: When the report block is frozen, the table is not adaptive.

    When there are too many horizontal cells, the cell can only be reduced to a certain ratio, and a scroll bar appears horizontally.

    Form-BidirectionalThe form in the report block is filled in both directions

    Width scaling = browser width / report block content width

    Height scaling = browser height / report block content height

    Note: When the report block is frozen, the table is not adaptive.

    When there are too many cells, cells can only be reduced to a certain percentage, scroll bars appear horizontally, and scroll bars appear vertically.

    Note 1: A certain ratio is 0.4, the width and height of the report in the browser / body width and height < 0.4

    Note 2: When the report block is frozen, the sadaptive of the report block does not take effect.

    Note 3: IE8 and below browsers do not support dashboard adaptive.

    Note 4: The lazy loading logic of the dashboard takes effect only when the form is adaptive by default, and does not take effect under other adaptive logic.

    Note 5: After the font adaptive is enabled, the font size of the report block component and the report block in the Tab block cannot be completely consistent when previewing.

    When the report is previewed after adaptive is enabled, the rendering effect of the report on the browser terminal is related to the screen resolution.

    The body size represents the real size of the canvas. When the body size is the same as the screen resolution, the template preview will display the real size without zooming; when the body size is inconsistent with the screen resolution, it will zoom in proportion to screen resolution and body size. The same template has a larger zooming ratio when previewed on a low-resolution computer, so scroll bars are more likely to appear when a report suitable for a high-resolution screen is previewed on a low-resolution screen. As shown below:

    When a user designs a report, if the report needs to be previewed on a computer with different resolutions, it is recommended to create a template on a low-resolution computer, and font adaptive needs to be enabled. After the template is completed, test preview on a high-resolution computer. , if there is a slight incompatibility problem, you can fine-tune it.


    3. Layout

    After the preview, the browser window is zoomed, which is related to the layout of the body, as shown in the following figure:

    6.png

    IV. Mobile adaptive

    The PC Adaptive Attr in this article does not take effect on the mobile terminal.

    For mobile adaptive settings, please refer to: [General] Mobile Terminal Self-adaption

    V. Attention

    1. After the template is set to be horizontal adaptive, the preview font is blurred

    Problem Description:

    After the template is set to be horizontal adaptive, the preview font is blurred.

    Solution:

    The scroll bar is reserved for horizontal adaptive, so there is a little blank space on the right side, which makes the font display slightly blurred, which is a normal effect.

    If the user wants the font to be clear, bidirectional adaptive can be set.


    2. There are still scroll bars after setting the bidirectional adaptive

    Problem Description:

    The dashboard is set to be bidirectional adaptive on the PC terminal, the body is bidirectional adaptive, and after the report block is bidirectional adaptive, the scroll bar will still appear when the page size of the browser is changed.

    Cause Analysis:

    It is a system DPI problem. When the resolution is 1920*1080 and the zoom ratio is 125%, a horizontal scroll bar will appear, and the scroll bar will be hidden in the foreground, but the scroll bar still exists.

    Solution:

    Set zoom to 100%.

    If the scroll bar is generated due to too much content in the report block, you can remove the scroll bar by restricting the content or hiding the scroll bar.


    3. There are blanks in the adaptive report after the frozen setting

    Problem Description:

    In the dashboard, when the report block is set to freeze, in the case of adaptive, the report content does not fill the full screen, and there are blanks around it.

    Solution:

    The new adaptive plugin can be used to solve this problem. 

    If the browser is zoomed or full screen, there is a blank space below the report block, you can add an initialization event to the body to adjust the display. The content of the event code is as follows:

    $(window).resize(function () {
    var width = FR.windowWidth; //Get browser window length
    var height = FR.windowHeight;//Get browser window height
    //Adjust the length and width of the report form
    var from = _g().getWidgetByName('form')
    if (form.oriWidth === width && form.oriHeight === height) {
    return;
    }
    form.oriWidth = width;
    form.oriHeight = height;
    //Load report content
    form.loadContentPane(true);
    }
    );



    Attachment List


    Theme: Report Application
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback