我想实现的功能:
如果user属于customer组,那么将他的email字段填写成
user@163.com
如果user属于其他组,那么将他的email字段填置为空
脚本写在了email的INNITIAL_VALUE里面
dim session
dim userGroup
set sessionobj1 = GetSession
userGroup = sessionobj1.GetUserGroups
if IsEmpty(userGroup) then
SetFieldValue fieldname, ""
else
For Each group in userGroup
if group="Customer" then
set sessionobj = GetSession
userphone = sessionobj.GetUserPhone
SetFieldValue fieldname, userphone+"@163.com"
Else
SetFieldValue fieldname, ""
end if
Next
end if
现在的问题:当user仅属于Customer组时,传值成功;如果user同时属于Customer组和其他组的时候,传值失败
请高手执教
[
本帖最后由 没有蛀牙 于 2008-4-22 12:02 编辑 ]