在Grid中除了字段之外,另外增加一个变量&xuhao,标示grid中每条记录的序号(从1开始);
Rules中,写入color('WHT/BLU+',UID) if &xuhao1=&xuhao;
Event中,写入:
Event UID.click
&xuhao1=&xuhao
Refresh Keep
EndEvent
Event Refresh
&i=0
EndEvent
Event Load
&i+=1
&xuhao=&i
load
EndEvent
本文介绍了一种在Grid中为每条记录分配唯一序号的方法,并通过规则和事件脚本实现了特定条件下的颜色标记及刷新操作。
在Grid中除了字段之外,另外增加一个变量&xuhao,标示grid中每条记录的序号(从1开始);
Rules中,写入color('WHT/BLU+',UID) if &xuhao1=&xuhao;
Event中,写入:
Event UID.click
&xuhao1=&xuhao
Refresh Keep
EndEvent
Event Refresh
&i=0
EndEvent
Event Load
&i+=1
&xuhao=&i
load
EndEvent
6028

被折叠的 条评论
为什么被折叠?