有三个文本框,只有一个可以根据字段来看,即AAA,BBB和CCC。
三个文本框txtBodyText_1,txtBodyText_2,txtBodyText_3
如果Field数据返回AAA,则可见txtBodyText_1,其他隐藏。
如果Field数据返回BBB,则可见txtBodyText_2,其他隐藏
如果Field数据返回CCC,则可见txtBodyText_3,其他隐藏
已用于可见性隐藏文本框属性:
txtBodyText_1:
=iif(Dept.value, "EmpDetails")="AAA",true,false)
txtBodyText_2:
=iif(Dept.value, "EmpDetails")="BBB",true,false)
txtBodyText_3:
=iif(Dept.value, "EmpDetails")="CCC",true,false)
任何有关更好解决方案的想法......
答案 0 :(得分:2)
如果你切换" ="到"<>"他们应该按你的意愿工作。
MockHttpServletResponse:
Status = 401
Error message = null
Headers = {X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate, no-store], Pragma=[no-cache, no-cache], Expires=[0], X-Frame-Options=[DENY], WWW-Authenticate=[Bearer realm="oauth2-resource", error="unauthorized", error_description="Full authentication is required to access this resource"], Content-Type=[application/json;charset=UTF-8]}
Content type = application/json;charset=UTF-8
Body = {"error":"unauthorized","error_description":"Full authentication is required to access this resource"}
Forwarded URL = null
Redirected URL = null
Cookies = []
请注意,在对话框中,属性名为Visibility,但在属性窗口中,它名为Hidden。 True =隐藏,False =可见。
这相当于Dept.value<> " AAA",隐藏txtBodyText_1,否则显示txtBodyText_1。