Help

0

How can I use XML to define a Pivot View?

In Pivot View  dropdown open this type value show in dropdown day,week,year,Quarter,Month 

  1. when i select day  [day wise filter & Data Print]

  2. when i select week [week wise filter  & Data Print] 

Xml code are below but I do not know what logic [Day,Week....etc] Plz ask


Thank You

___________

Xml Code

___________

 <div class="dropdown-menu" role="menu">

                        <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'day'" t-att-data-field="field[0]">Day</a>

                        <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'week'" t-att-data-field="field[0]">Week</a>

                        <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'month'" t-att-data-field="field[0]">Month</a>

                        <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'quarter'" t-att-data-field="field[0]">Quarter</a>

                        <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'year'" t-att-data-field="field[0]">Year</a>

                    </div>

Avatar
Discard