Successfully!

Error!

[General] JS Jump to Specify Tab Block

  • Last update:  2021-12-24
  • I. Version

     App version  HTML5 version
      App10.1 and later  10.1 and later

    II. Description

    Pass through showCardByIndex(Number cardID) Can jump to the specified Tab block

      parametertype   instruction 
      cardID  Number  Required, the displayed Tab number, starting from 0

    III. Examples

    1. Template settings

    Create a new decision report, add a Tab, add two Tab widgets, and drag the chart into the Tab block (it is convenient to distinguish the Tab block when jumping), as shown in the following figure:

    1.png

    Select the body block and add the initialization event, as shown in the figure below:


    2.png

    setInterval(function(){   
        var aa=_g().getWidgetByName("tabpane0").getShowIndex(); 
        if(aa==2){ 
          _g().getWidgetByName('tabpane0').showCardByIndex(0); 
        }
        else
          _g().getWidgetByName('tabpane0').showCardByIndex(aa+1); 
        } 
    },3000);


    2. Mobile effect

    1) App preview effect

    Add the template to the decision-making system, and access the template on the mobile terminal. App preview effects are as follows:

    3.gif

    2) H5 preview effect

    4.gif

    IV. Template download

    For the completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\JS\[General]_JS_Jump _to_Specify_Tab_Block.frm

    Click to download the template:

    [General]_JS_Jump _to_Specify_Tab_Block.frm

    Attachment List


    Theme: Fine Mobile
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback