-
Notifications
You must be signed in to change notification settings - Fork 1
/
attachment_Vv.xml
15 lines (15 loc) · 1.33 KB
/
attachment_Vv.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<GroupBox Name="GBDVattachment" cols="xs12 sm12 md12 lg12"><Ctrls>
<ListCtrl Name="attachment_vLst" ToolTip="ttp_attachment_v" Size="700,450" OnLoad="init" Heading="creation_date,80;typeStr,50;description,150;created_by,50;filename,50;" loadedclick="0">
<DbDetails >
<Index>attachment_id</Index>
<DbTable>vtigercrm6.attachment a left join vtigercrm6.vtiger_users v on a.created_by=v.id left join vtigercrm6.vtiger_users v0 on a.last_update_by=v0.id</DbTable>
<Data>a.creation_date,a.typestr,a.description,v.user_name created_by,a.filename,a.location,a.path,a.attachment,a.reftbl,a.refid,a.type,v0.user_name last_update_by,a.last_update_date,a.attachment_id</Data>
<Order>attachment_id</Order></DbDetails>
<DbDetails><Where>reftbl='vtiger_projecttask' and refid='%{projecttaskid}'</Where><queryFormat>select %{data} from %{dbtable} where %{where} order by attachment_id desc limit %{StartRow},%{PgSize}</queryFormat></DbDetails>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="attachment_ops.xml"/>
<OnFecthFileEnd><assign name="topmost" expr="exec:%{attachment_vLst[file]}"/></OnFecthFileEnd>
<OnChanged>
<assign name="pgcur_attachment" expr="js(%{attachment_vLst[currentpage]}+1)"/>
<assign name="pgscb_attachment" expr="js(%{attachment_vLst[currentpage]}+1)" function="SetSel"/>
</OnChanged></ListCtrl>
</Ctrls></GroupBox>