-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvtiger_account_Vpg.xml
18 lines (18 loc) · 1.81 KB
/
vtiger_account_Vpg.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GBPGvtiger_account"><Ctrls>
<Label Align="Right" Text="Records" Name="lb_Records" Size="60,20"/>
<TextBox Weight="30" ToolTip="ttp_records" Name="records_vtiger_account" Size="30,20" OnLoad="init" readonly="1">
<DbDetails fcsm="1">
<Index>accountid</Index>
<DbTable>vtigercrm6.vtiger_account v left join vtigercrm6.vtiger_account v0 on v.parentid=v0.accountid left join vtigercrm6.vtiger_rating v1 on v.rating=v1.rating_id left join vtigercrm6.vtiger_industry v2 on v.industry=v2.industryid left join vtigercrm6.vtiger_accounttype v3 on v.account_type=v3.accounttypeid left join vtigercrm6.vtiger_users v4 on v.created_by=v4.id left join vtigercrm6.vtiger_users v5 on v.last_update_by=v5.id</DbTable>
<Data>count(*) records</Data>
<Order>accountid</Order><Queryformat>select %{data} from (select v.accountid from %{dbtable} %{where} GROUP BY v.accountid ORDER BY v.accountid) t</Queryformat></DbDetails>
<OnEnchange>
<assign name="pgs_vtiger_account" expr="js(Math.ceil(%{records_vtiger_account}/%{vtiger_account_vLst[countsperpage]}))"/>
<assign name="pgscb_vtiger_account" expr="js('1~'+Math.ceil(%{records_vtiger_account}/%{vtiger_account_vLst[countsperpage]}))" function="setitems"/>
</OnEnchange>
</TextBox>
<!--ComboBox Weight="60" ToolTip="ttp_pgs" Name="pgscb_vtiger_account" Size="60,20"><OnSelEndOK><submit next="vtiger_account_vLst" function="GetPage(%{pgscb_vtiger_account}-1)"/></OnSelEndOK></ComboBox-->
<TextBox Weight="30" ToolTip="ttp_pgs" Name="pgs_vtiger_account" Size="30,20" readonly="1"/>
<TextBox Weight="30" ToolTip="ttp_pgcur" Name="pgcur_vtiger_account" Size="30,20"/>
<Button Text="go2Page" Name="go2pagevtiger_account_vLst" Size="50,20"><OnClick><submit next="vtiger_account_vLst" function="GetPage(%{pgcur_vtiger_account}-1)"/></OnClick></Button>
</Ctrls></GroupBox>