Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

Component General Interface

Note: The interface on this page applies to absolute canvas blocks, report blocks, tab blocks, chart blocks, and widgets in the body.

invisible

Methodinvisible()Set component invisible
  Parameter--
Return valuevoid
   Example

Example 1: If the obtained component is defined as widget , set it to be invisible

widget.invisible();

Example 2: Get the report block whose component name is "report0" in the dashboard and hide it

_g().getWidgetByName('report0').invisible();

Example 3: Get the chart block with the chart name "chart0" in the dashboard and hide it

_g().getWidgetByName('chart0').invisible();

Application

example

Customize a button "Hide Standard Earning Summary Form", and hide the "Standard Earnings Summary" form when the button is clicked:

Click to download the template:

Hide and Show Component.frm

1.gif

MobileSupport mobile terminal

visible

Methodvisible()Set component visible
  Parameter--
Return valuevoid
   Example

Example 1: If the obtained component is defined as widget , set it to be visible

widget.visible();

Example 2: Get the report block whose component name is "report0" in the dashboard and show it

_g().getWidgetByName('report0').visible();

Example 3: Get the chart block with the chart name "chart0" in the dashboard and show it

_g().getWidgetByName('chart0').visible();

Application

example

Customize a button "Show Standard Earning Summary Form", and show the "Standard Earnings Summary" form when the button is clicked:

Click to download the template:

Hide and Show Component.frm

2.gif

MobileSupport mobile terminal

setVisible

MethodsetVisible(visibility)
Set component visible/invisible
  Parametervisibility: boolean

Whether component is visible,boolean

  • true:visible

  • false:invisible

Return valuevoid
   Example

Example 1: If the obtained component is defined as widget , set it to be invisible

widget.setVisible(false);

Example 2: Get the report block whose component name is "report0" in the dashboard and hide it

_g().getWidgetByName('report0').setVisible(false);

Example 3: Get the chart block with the chart name "chart0" in the dashboard and hide it

_g().getWidgetByName('chart0').setVisible(false);

Application

example

After hiding the Standard Earnings Summary table, click the button to make it appear:

Click to download the template:

Hide and Show Component.frm

3.gif

MobileSupport mobile terminal

isVisible

MethodisVisible()Return whether the component is visible
  Parameter-

-

Return value

boolean

Whether component is visible,boolean

  • true:visible

  • false:invisible

   Example

Example 1: If the obtained component is defined as widget , return whether it is visible or not

widget.isVisible();

Example 2: Get the report block whose component name is "report0" in the dashboard, and return whether it is visible or not

_g().getWidgetByName('report0').isVisible();

Example 3: Get the chart block with the chart name "chart0" in the dashboard, and return whether it is visible or not

_g().getWidgetByName('chart0').isVisible();

Application

example

Click the button to see if the Earnings Summary Table is visible:

Click to download the template:

View component visible status.frm

4.gif

MobileSupport mobile terminal


Attachment List


Theme: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback